PDA

View Full Version : Các bác giúp em


flame dragon
17-12-2003, 13:47
các bác giỏi về 4rum php cho em hỏi với
mấy cái vụ HTML rắc rối quá
có 1 admin của 1 4rum (em cũng ở 4rum đấy)
muốn hack mod
tức là thêm mấy cái phần đến từ
rồi thêm mấy cái phần online offline đó
nhưng khi làm thì admin đó lại gặp trục trặc có vấn đề
em xin đưa cái đoạn code đấy lên đây
các bác xem hộ em nhá

nó báo lỗi ở cái hàng 1609
đây cái hàng đấy nó như thế này
change that code to anything you like.
if ($hp >= 1)


đây là cái đoạn hack
các bác xem hộ em xem cái dong 1609 kia sửa thế nào nhá
em cám ơn trước
// End RPG Class Hack by Saxxon

$hpmulti =round ($ppd / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= $ppd / 10; // Well, for my forums, if a user fails to achieve at least 10 posts per day, the hp starts to drop. You can change that code to anything you like.
if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
$hp= floor ($hp);
$maxhp= floor ($maxhp);
if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
$hpf= floor (100 * ($hp / $zhp)) - 1;
$maxmp= ($exp * $level) / 5;
$mp= $poster['posts'] / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);

$hpmulti =round ($ppd / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= $ppd / 10; // Well, for my forums, if a user fails to achieve at least 10 posts per day, the hp starts to drop. You can change that code to anything you like.

B?n m? sources/Profile.php
Tìm:

CODE
if ($member['bday_month'])
{
$info['birthday'] = $member['bday_day']." ".$ibforums->lang[ 'M_'.$member['bday_month'] ]." ".$member['bday_year'];
}
else
{
$info['birthday'] = $ibforums->lang['no_info'];
}



Thay nó b?ng :

CODE
if ($member['bday_month'])
{
$info['birthday'] = $member['bday_day']." ".$ibforums->lang[ 'M_'.$member['bday_month'] ]." ".$member['bday_year'];
$time = getdate();
$info['age'] = $time['year'] - $member['bday_year'];
if ($time['mon'] < $member['bday_month'] OR ($time['mon']==$member['bday_month'] AND $time['mday'] < $member['bday_day']))
{
$info['age']--;
}
if ($info['age'] < 1)
{
$info['age'] = $ibforums->lang['no_info'];
}
}
else
{
$info['age'] = $ibforums->l