winston
11-23-2001, 03:23 PM
Ok I had 2.20 installedd an dthe exp level hack installed. When i upgraded to 2.21 it replaced adm/ functions.php. When i resinstall teh hack in this file I get this error.
__________________________________________________ _
Parse error: parse error in ./admin/functions.php on line 296
Fatal error: Call to undefined function: getuserinfo() in ./admin/sessions.php on line 108
__________________________________________________ __
Hers the code I'm trying to get in there.
Admin/ Functions.php
###Find###
// do ip addresses
________________________________________
###Under it add###
// start of User EXP, MP, HP hack
$level = pow (log10 ($post[posts]), 3);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= $postsperday / 10;
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= ($jointime * $level) / 5;
$mp= $post[posts] / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
$mpf= floor (100 * ($mp / $zmp)) - 1;
// end of User EXP, MP, HP hack
any help would be so greatly appreciated.
__________________________________________________ _
Parse error: parse error in ./admin/functions.php on line 296
Fatal error: Call to undefined function: getuserinfo() in ./admin/sessions.php on line 108
__________________________________________________ __
Hers the code I'm trying to get in there.
Admin/ Functions.php
###Find###
// do ip addresses
________________________________________
###Under it add###
// start of User EXP, MP, HP hack
$level = pow (log10 ($post[posts]), 3);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= $postsperday / 10;
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= ($jointime * $level) / 5;
$mp= $post[posts] / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
$mpf= floor (100 * ($mp / $zmp)) - 1;
// end of User EXP, MP, HP hack
any help would be so greatly appreciated.