EOF; } function userdata($ir, $lv, $fm, $cm, $dosessh = 1) { global $c, $userid; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; mysql_query( "UPDATE users SET laston=" . time() . ",lastip='$ip' WHERE userid=$userid", $c); if (!$ir['email']) { die( "Your account may be broken. Please mail help@yourgamename.com stating your username and player ID."); } if ($dosessh && isset($_SESSION['attacking'])) { if ($_SESSION['attacking'] > 0) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid", $c); $_SESSION['attacking'] = 0; } } $enperc = (int) ($ir['energy'] / $ir['maxenergy'] * 100); $wiperc = (int) ($ir['will'] / $ir['maxwill'] * 100); $experc = (int) ($ir['exp'] / $ir['exp_needed'] * 100); $brperc = (int) ($ir['brave'] / $ir['maxbrave'] * 100); $hpperc = (int) ($ir['hp'] / $ir['maxhp'] * 100); $enopp = 100 - $enperc; $wiopp = 100 - $wiperc; $exopp = 100 - $experc; $bropp = 100 - $brperc; $hpopp = 100 - $hpperc; $d = ""; $u = $ir['username']; if ($ir['donatordays']) { $u = "{$ir['username']}"; $d = "Donator: {$ir["; } print "
Name: {$u} [{$ir['userid']}] $d
Money: {$fm}
Level: {$ir['level']}
Crystals: {$ir['crystals']}
[Emergency Logout]
Energy: {$enperc}%

Will: {$wiperc}%

Brave: {$ir['brave']}/{$ir['maxbrave']}

EXP: {$experc}%

Health: {$hpperc}%
Vote for breakthenet on various gaming sites and be rewarded!

Donate to breakthenet, it's only \$3 and gets you a lot of benefits!

"; $q = mysql_query("SELECT * FROM ads ORDER BY rand() LIMIT 1", $c); if (mysql_num_rows($q)) { $r = mysql_fetch_array($q); print "
Paid Advertisement

"; mysql_query( "UPDATE ads SET adVIEWS=adVIEWS+1 WHERE adID={$r['adID']}", $c); } print "
"; if ($ir['fedjail']) { $q = mysql_query( "SELECT * FROM fedjail WHERE fed_userid=$userid", $c); $r = mysql_fetch_array($q); die( "You have been put in the breakthenet Federal Jail for {$r['fed_days']} day(s).
Reason: {$r['fed_reason']}
"); } if (file_exists('ipbans/' . $ip)) { die( "Your IP has been banned, there is no way around this."); } } function menuarea() { include "mainmenu.php"; global $ir, $c; print "
"; } function endpage() { $year = date('Y'); print "
Powered by codes made by Dabomstew. Copyright © {$year} admin.
"; } }