Criminal
Members-
Posts
208 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Criminal
-
Hey i have a error on honourexchange.php v2 file thnx <?php include "globals.php"; if(!$_GET['spend']) { print "Welcome to the Honor Award Exchange Center! You have {$ir['honor']} Honor Awards. What would you like to spend your Honor Awards on? IQ - 100 IQ per Honor Award Trade for Labour Points - 3,000 Labour Points per Honor Award Trade for Defense - 3,000 Defense per Honor Award Trade for Agility - 3,000 Speed per Honor Award Trade for Strength - 3,000 strength per Honor Award Money - \$2,000,000 per Honor Award "; } else if($_GET['spend'] == 'IQ') { print "Type in the amount of Honor Awards you want to swap for IQ. You have {$ir['honor']} Honor Awards. One Honor Award = 100 IQ.<form action='HonorExchange.php?spend=IQ2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $iqgain=$_POST['honor']*100; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Honor Awards you want to swap for labour points. You have {$ir['honor']} Honor Awards. One Honor Award = 300,000 labour points.<form action='HonorExchange.php?spend=labour4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $labourgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $labourgain labour points."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Honor Awards you want to swap for Defense. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Defense.<form action='HonorExchange.php?spend=guard4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['honor']=(int) $_POST['honor']; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=mny_stripfmt($_POST['honor'], ENT_QUOTES); $_POST['honor']=abs((int)($_POST['honor'])); if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $guardgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $guardgain Defense."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Honor Awards you want to swap for Agility. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Agility.<form action='HonorExchange.php?spend=agility4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $agilitygain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $agilitygain Agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Honor Awards you want to swap for Strength. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Strength.<form action='HonorExchange.php?spend=strength4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $strengthgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $strengthgain Strength."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of Honor Awards you want to swap for \$\$\$. You have {$ir['honor']} Honor Awards. One Honor Award = \$2,000,000.<form action='HonorExchange.php?spend=money2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $iqgain=$_POST['honor']*2000000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); $_POST['money']=strip_tags($_POST['money']); $_POST['money']=abs($_POST['money']); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']},money=money+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for \$$iqgain."; } } $h->endpage(); ?> error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 35 error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 60 error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 78 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 116 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 143 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 170 sory its gt all them errors
-
Hey i have a error on honourexchange.php v2 file thnx <?php include "globals.php"; if(!$_GET['spend']) { print "Welcome to the Honor Award Exchange Center! You have {$ir['honor']} Honor Awards. What would you like to spend your Honor Awards on? IQ - 100 IQ per Honor Award Trade for Labour Points - 3,000 Labour Points per Honor Award Trade for Defense - 3,000 Defense per Honor Award Trade for Agility - 3,000 Speed per Honor Award Trade for Strength - 3,000 strength per Honor Award Money - \$2,000,000 per Honor Award "; } else if($_GET['spend'] == 'IQ') { print "Type in the amount of Honor Awards you want to swap for IQ. You have {$ir['honor']} Honor Awards. One Honor Award = 100 IQ.<form action='HonorExchange.php?spend=IQ2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $iqgain=$_POST['honor']*100; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Honor Awards you want to swap for labour points. You have {$ir['honor']} Honor Awards. One Honor Award = 300,000 labour points.<form action='HonorExchange.php?spend=labour4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $labourgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $labourgain labour points."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Honor Awards you want to swap for Defense. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Defense.<form action='HonorExchange.php?spend=guard4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['honor']=(int) $_POST['honor']; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=mny_stripfmt($_POST['honor'], ENT_QUOTES); $_POST['honor']=abs((int)($_POST['honor'])); if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $guardgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $guardgain Defense."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Honor Awards you want to swap for Agility. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Agility.<form action='HonorExchange.php?spend=agility4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $agilitygain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $agilitygain Agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Honor Awards you want to swap for Strength. You have {$ir['honor']} Honor Awards. One Honor Award = 3,000 Strength.<form action='HonorExchange.php?spend=strength4' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $strengthgain=$_POST['honor']*3000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for $strengthgain Strength."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of Honor Awards you want to swap for \$\$\$. You have {$ir['honor']} Honor Awards. One Honor Award = \$2,000,000.<form action='HonorExchange.php?spend=money2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. Back"; } else { $iqgain=$_POST['honor']*2000000; $_POST['honor']=strip_tags($_POST['honor']); $_POST['honor']=abs((int)($_POST['honor'])); $_POST['money']=strip_tags($_POST['money']); $_POST['money']=abs($_POST['money']); mysql_query("UPDATE users SET honor=honor-{$_POST['honor']},money=money+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['honor']} Honor Awards for \$$iqgain."; } } $h->endpage(); ?> error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 35 error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 60 error Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 78 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 116 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 143 Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 170 sory its gt all them errors
-
Re: Quantify Mod for V2! Tahmid learn <?php include "globals.php"; to make the code work session_start(); include "globals.php"; wont work because you missing <?php Why need session_start(); in v2 mod lol learn more before on w3schools.com oh look at more v2 files thanks no offence
-
Re: Money,crystals cap ALTER TABLE `users` CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' ALTER TABLE `userstats` CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0', ALTER TABLE `users` CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' ALTER TABLE `userstats` CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0' CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0' CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0' CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0' CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0' This will work mine one because the one with , at the end doest work so i tryed taking , and it worked then open staff_users.php v2 find (INT) And replace with (Float) thanks
-
Re: Delete I GOT IT SORTED
-
Re: Delete <?php include "sglobals.php"; //This contains user stuffs switch($_GET['action']) { case 'newuser': new_user_form(); break; case 'newusersub': new_user_submit(); break; case 'edituser': edit_user_begin(); break; case 'edituserform': edit_user_form(); break; case 'editusersub': edit_user_sub(); break; case 'invbeg': inv_user_begin(); break; case 'invuser': inv_user_view(); break; case 'deleinv': inv_delete(); break; case 'creditform': credit_user_form(); break; case 'creditsub': credit_user_submit(); break; case 'masscredit': mcredit_user_form(); break; case 'masscreditsub': mcredit_user_submit(); break; case 'reportsview': reports_view(); break; case 'repclear': report_clear(); break; case 'deluser': deluser(); break; case 'forcelogout': forcelogout(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "'", htmlspecialchars($in)); } function new_user_form() { global $db,$ir, $c; if($ir['user_level'] != 2) { die("403"); } print "Adding a new user. <form action='staff_users.php?action=newusersub' method='post'> Username: <input type='text' name='username' /> Login Name: <input type='text' name='login_name' /> Email: <input type='text' name='email' /> Password: <input type='text' name='userpass' /> Type: <input type='radio' name='user_level' value='0' />NPC <input type='radio' name='user_level' value='1' checked='checked' />Regular Member Level: <input type='text' name='level' value='1' /> Money: <input type='text' name='money' value='100' /> Crystals: <input type='text' name='crystals' value='0' /> Donator Days: <input type='text' name='donatordays' value='0' /> Gender: <select name='gender' type='dropdown'><option>Male</option><option>Female</option></select> Stats Strength: <input type='text' name='strength' value='10' /> Agility: <input type='text' name='agility' value='10' /> Guard: <input type='text' name='guard' value='10' /> Labour: <input type='text' name='labour' value='10' /> IQ: <input type='text' name='labour' value='10' /> <input type='submit' value='Create User' /></form>"; } function new_user_submit() { global $db,$ir,$c,$userid; if($ir['user_level'] != 2) { die("403"); } if(!isset($_POST['username']) || !isset($_POST['login_name']) || !isset($_POST['userpass'])) { print "You missed one or more of the required fields. Please go back and try again. > Back"; $h->endpage(); exit; } $level=abs((float) $_POST['level']); $money=abs((float) $_POST['money']); $crystals=abs((float) $_POST['crystals']); $donator=abs((float) $_POST['donatordays']); $ulevel=abs((float) $_POST['user_level']); $strength=abs((float) $_POST['strength']); $agility=abs((float) $_POST['agility']); $guard=abs((float) $_POST['guard']); $labour=abs((float) $_POST['labour']); $iq=abs((int) $_POST['iq']); $energy=10+$level*2; $brave=3+$level*2; $hp=50+$level*50; $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney) VALUES( '{$_POST['username']}', '{$_POST['login_name']}', md5('{$_POST['userpass']}'), $level, $money, $crystals, $donator, $ulevel, $energy, $energy, 100, 100, $brave, $brave, $hp, $hp, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1)"); $i=mysql_insert_id($c); $db->query("INSERT INTO userstats VALUES($i, $strength, $agility, $guard, $labour, $iq)"); print "User created!"; stafflog_add("Created user {$_POST['username']} [$i]"); } function edit_user_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Editing User</h3> You can edit any aspect of this user. <form action='staff_users.php?action=edituserform' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Edit User' /></form> OR enter a user ID to edit: <form action='staff_users.php?action=edituserform' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Edit User' /></form>"; } function edit_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $d=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us on u.userid=us.userid WHERE u.userid={$_POST['user']}"); $itemi=$db->fetch_row($d); $itemi['hospreason']=htmlspcl($itemi['hospreason']); $itemi['jail_reason']=htmlspcl($itemi['jail_reason']); print "<h3>Editing User</h3> <form action='staff_users.php?action=editusersub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> Username: <input type='text' name='username' value='{$itemi['username']}' /> Login Name: <input type='text' name='login_name' value='{$itemi['login_name']}' /> Duties: <input type='text' name='duties' value='{$itemi['duties']}' /> Staff Notes: <input type='text' name='staffnotes' value='{$itemi['staffnotes']}' /> Level: <input type='text' name='level' value='{$itemi['level']}' /> Money: \$<input type='text' name='money' value='{$itemi['money']}' /> Bank: \$<input type='text' name='bankmoney' value='{$itemi['bankmoney']}' /> Cyber Bank: \$<input type='text' name='cybermoney' value='{$itemi['cybermoney']}' /> Crystals: <input type='text' name='crystals' value='{$itemi['crystals']}' /> Mail Ban: <input type='text' name='mailban' value='{$itemi['mailban']}' /> Mail Ban Reason: <input type='text' name='mb_reason' value='{$itemi['mb_reason']}' /> Forum Ban: <input type='text' name='forumban' value='{$itemi['forumban']}' /> Forum Ban Reason: <input type='text' name='fb_reason' value='{$itemi['fb_reason']}' /> Hospital time: <input type='text' name='hospital' value='{$itemi['hospital']}' /> Hospital reason: <input type='text' name='hospreason' value='{$itemi['hospreason']}' /> Jail time: <input type='text' name='jail' value='{$itemi['jail']}' /> Jail reason: <input type='text' name='jail_reason' value='{$itemi['jail_reason']}' /> House: ".house2_dropdown($c, "maxwill", $itemi['maxwill'])." <h4>Stats</h4> Strength: <input type='text' name='strength' value='{$itemi['strength']}' /> Agility: <input type='text' name='agility' value='{$itemi['agility']}' /> Guard: <input type='text' name='guard' value='{$itemi['guard']}' /> Labour: <input type='text' name='labour' value='{$itemi['labour']}' /> IQ: <input type='text' name='IQ' value='{$itemi['IQ']}' /> <input type='submit' value='Edit User' /></form>"; } function edit_user_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $go=0; if(!isset($_POST['level'])) { $go=1; } if(!isset($_POST['money'])) { $go=1; } if(!isset($_POST['bankmoney'])) { $go=1; } if(!isset($_POST['crystals'])) { $go=1; } if(!isset($_POST['strength'])) { $go=1; } if(!isset($_POST['agility'])) { $go=1; } if(!isset($_POST['guard'])) { $go=1; } if(!isset($_POST['labour'])) { $go=1; } if(!isset($_POST['IQ'])) { $go=1; } if(!isset($_POST['username'])) { $go=1; } if(!isset($_POST['login_name'])) { $go=1; } if($go) { print "You did not fully fill out the form."; $_POST['user']=$_POST['userid']; edit_user_form(); } else { $_POST['level']=(int) $_POST['level']; $_POST['strength']=abs((int) $_POST['strength']); $_POST['agility']=abs((int) $_POST['agility']); $_POST['guard']=abs((int) $_POST['guard']); $_POST['labour']=abs((int) $_POST['labour']); $_POST['IQ']=abs((int) $_POST['IQ']); $_POST['money']=(int) $_POST['money']; $_POST['bankmoney']=(int) $_POST['bankmoney']; $_POST['cybermoney']=(int) $_POST['cybermoney']; $_POST['crystals']=(int) $_POST['crystals']; $_POST['mailban']=(int) $_POST['mailban']; $_POST['forumban']=(int) $_POST['forumban']; $maxwill=abs((int) $_POST['maxwill']); //check for username usage $u=$db->query("SELECT * FROM users WHERE username='{$_POST['username']}' and userid != {$_POST['userid']}"); if($db->num_rows($u) != 0) { print "That username is in use, choose another."; print " > Back"; $h->endpage(); exit; } $oq=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); $rm=$db->fetch_row($oq); $will=($rm['will'] > $maxwill) ? $maxwill: $rm['will']; $energy=10+$_POST['level']*2; $nerve=3+$_POST['level']*2; $hp=50+$_POST['level']*50; $db->query("UPDATE users SET username='{$_POST['username']}', level={$_POST['level']}, money={$_POST['money']}, crystals={$_POST['crystals']}, energy=$energy, brave=$nerve, maxbrave=$nerve, maxenergy=$energy, hp=$hp, maxhp=$hp, hospital={$_POST['hospital']}, jail={$_POST['jail']}, duties='{$_POST['duties']}', staffnotes='{$_POST['staffnotes']}', mailban={$_POST['mailban']}, mb_reason='{$_POST['mb_reason']}', forumban={$_POST['forumban']}, fb_reason='{$_POST['fb_reason']}', hospreason='{$_POST['hospreason']}', jail_reason='{$_POST['jail_reason']}', login_name='{$_POST['login_name']}', will=$will, maxwill=$maxwill WHERE userid={$_POST['userid']}"); $db->query("UPDATE userstats SET strength={$_POST['strength']}, agility={$_POST['agility']}, guard={$_POST['guard']}, labour={$_POST['labour']}, IQ={$_POST['IQ']} WHERE userid={$_POST['userid']}"); stafflog_add("Edited user {$_POST['username']} [{$_POST['userid']}]"); print "User edited...."; } } function deluser() { global $ir,$c,$h,$userid,$db; if($ir['user_level'] != 2) { die("403"); } $undeletable = array('1','2'); // add more IDs here, such as NPCs switch ($_GET['step']) { default: echo "<h3>Deleteing User</h3> Here you can delete a user. <form action='staff_users.php?action=deluser&step=2' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Delete User' /></form> OR enter a user ID to Delete: <form action='staff_users.php?action=deluser&step=2' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Delete User' /></form>"; break; case 2: $target = $_POST['user']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); print "<h3>Confirm</h3> Delete user ".$itemi["username"]."? <form action='staff_users.php?action=deluser&step=3' method='post'> <input type='hidden' name='userid' value='$target' /> <input type='submit' name='yesorno' value='Yes' /> <input type='submit' name='yesorno' value='No' onclick=\"window.location='staff_users.php?action=deluser';\" /></form>"; break; case 3: $target = $_POST['userid']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } if($_POST['yesorno']=='No') { die("User not deleted. >Back to main Delete Users page."); } if ($_POST['yesorno'] != ("No" || "Yes")) die('Eh'); $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); $db->query("DELETE FROM users WHERE userid='$target'"); $db->query("DELETE FROM userstats WHERE userid='$target'"); $db->query("DELETE FROM inventory WHERE inv_userid='$target'"); $db->query("DELETE FROM fedjail WHERE fed_userid='$target'"); echo "User {$itemi['username']} Deleted. >Back to main Delete Users page."; stafflog_add("Deleted User {$itemi['username']} [{$_POST['userid']}]"); break; } } function inv_user_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } print "<h3>Viewing User Inventory</h3> You may browse this user's inventory. <form action='staff_users.php?action=invuser' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='View Inventory' /></form>"; } function inv_user_view() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'"); $un=$db->fetch_single($d); $inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$_POST['user']}"); if ($db->num_rows($inv) == 0) { print "This person has no items!"; } else { print "Their items are listed below. <table width=100%><tr style='background-color:gray;'><th>Item</th><th>Sell Value</th><th>Total Sell Value</th><th>Links</th></tr>"; while($i=$db->fetch_row($inv)) { print "<tr><td>{$i['itmname']}"; if ($i['inv_qty'] > 1) { print " x{$i['inv_qty']}"; } print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print "</td><td>[Delete]"; print "</td></tr>"; } print "</table>"; } stafflog_add("Viewed user {$un} [{$_POST['user']}] inventory"); } function inv_delete() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $db->query("DELETE FROM inventory WHERE inv_id={$_GET['ID']}"); print "Item deleted from inventory."; stafflog_add("Deleted inventory ID {$_GET['ID']}"); } function credit_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } print "<h3>Crediting User</h3> You can give a user money/crystals. <form action='staff_users.php?action=creditsub' method='post'> User: ".user_dropdown($c,'user')." Money: <input type='text' name='money' /> Crystals: <input type='text' name='crystals' /> <input type='submit' value='Credit User' /></form>"; } function credit_user_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_POST['money'] = (float) $_POST['money']; $_POST['crystals'] = (float) $_POST['crystals']; $db->query("UPDATE users u SET money=money+{$_POST['money']}, crystals=crystals+{$_POST['crystals']} WHERE u.userid={$_POST['user']}"); print "User credited."; $d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'"); $un=$db->fetch_single($d); stafflog_add("Credited $un [{$_POST['user']}] \${$_POST['money']} and/or {$_POST['crystals']} crystals."); } function mcredit_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Mass Payment</h3> You can give all users money/crystals. <form action='staff_users.php?action=masscreditsub' method='post'> Money: <input type='text' name='money' /> Crystals: <input type='text' name='crystals' /> <input type='submit' value='Credit User' /></form>"; } function mcredit_user_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $_POST['money'] = (int) $_POST['money']; $_POST['crystals'] = (int) $_POST['crystals']; $db->query("UPDATE users u SET money=money+{$_POST['money']}, crystals=crystals+{$_POST['crystals']}"); print "All Users credited. Click here to add an announcement or here to send a mass mail explaining why."; stafflog_add("Credited all users \${$_POST['money']} and/or {$_POST['crystals']} crystals."); } function reports_view() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } print "<h3>Player Reports</h3> <table width=80%><tr style='background:gray'><th>Reporter</th> <th>Offender</th> <th>What they did</th> <th> </th> </tr>"; $q=$db->query("SELECT pr.*,u1.username as reporter, u2.username as offender FROM preports pr LEFT JOIN users u1 ON u1.userid=pr.prREPORTER LEFT JOIN users u2 ON u2.userid=pr.prREPORTED ORDER BY pr.prID DESC"); while($r=$db->fetch_row($q)) { print "\n<tr> <td>{$r['reporter']} [{$r['prREPORTER']}]</td> <td>{$r['offender']} [{$r['prREPORTED']}]</td> <td>{$r['prTEXT']}</td> <td>Clear</td> </tr>"; } print "</table>"; } function forcelogout() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $_POST['userid'] = abs((int) $_POST['userid']); if($_POST['userid']) { $db->query("UPDATE users SET force_logout=1 WHERE userid={$_POST['userid']}"); print "User ID {$_POST['userid']} successfully forced to logout."; stafflog_add("Forced User ID {$_POST['userid']} to logout"); } else { print "<h3>Force User Logout</h3><hr /> The user will be automatically logged out next time he/she makes a hit to the site.<form action='staff_users.php?action=forcelogout' method='post'> User: ".user_dropdown($c, 'userid')." <input type='submit' value='Force User to Logout' /></form>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! > Back"; } $h->endpage(); ?> is that ok
-
Re: [Free] Log Suspicious Users I understand if i thing he is cheating put his id and Length can we look if he injecting oh hacking
-
Re: [Free] Log Suspicious Users I understand it but why do we have to put the persons id and lenght to check wot there doing we wont know if he is cheating cuz we wont know if he is to know he is we gt to put in his id and that
-
Re: [Free] Log Suspicious Users Log Suspicious Users Add a User to be logged: User ID: Length: Current users being logged:User Length of Log View? (To delete a user just enter the ID and put 0 as the length) how ccum it doest say the user wot there doing
-
Re: [Free] Log Suspicious Users Its ok i done it thnx for making this
-
Re: [Free] Log Suspicious Users Can anyone convert it for v2 sory am busy converting it
-
Re: Delete I copyed all the file on notepad wot is it ctrl to find it
-
Re: Delete Please anyone just tell me i done the sql wot file do i edit and wot do i edit Sory am nt a fully coder Am learning on w3schools.com
-
Re: V2 battle tent error I was editing the mod and the error come and i forget wot i did rong
-
Re: V2 battle tent error Thanx m8 it works
-
In bounty hunter v2 mod Bounter hunter doest claim prize and doesn't reset to open after 24hrs) Can anyone help me why givng me the cron for it
-
Hey i have a error in v2 battle tent the file is here <?php include "globals.php"; print "<h3>Battle Tent</h3> [b]Welcome to the battle tent! Here you can challenge NPCs for money.[/b] <table width=100% cellspacing=1 class='table'><tr style='background: gray; '><th>Bot Name</th><th>Level</th><th>Times Owned</th><th>Ready To Be Challenged?</th><th>Location</th><th>Money Won</th><th>Challenge</th></tr>"; $q=$db->query("SELECT cb.*,u.*,c.npcid,cy.cityname FROM challengebots cb LEFT JOIN users u ON cb.cb_npcid=u.userid LEFT JOIN challengesbeaten c ON c.npcid=u.userid AND c.userid=$userid LEFT JOIN cities cy ON u.location=cy.cityid"); while($r=$db->fetch_row($q)) { $earn=$r['cb_money']; $v=$r['userid']; $q=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v"); $times=$db->fetch_single($q); print "<tr><td>{$r['username']}</td><td>{$r['level']}</td><td>$times</td><td>"; if($r['hp'] >= $r['maxhp']/2 and $r['location']==$ir['location'] and !$ir['hospital'] and !$ir['jail'] and !$r['hospital'] and !$r['jail']) { print "<font color=green>Yes</font>"; } else { print "<font color=red>No</font>"; } print "</td><td>{$r['cityname']}</td><td>$earn</td><td>"; if($r['npcid']) { print "[i]Already[/i]"; } else { print "[url='attack.php?ID={$r[']Challenge[/url]"; } print "</td></tr>"; } print "</table>"; $h->endpage(); ?> error UERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT count(*) FROM challengesbeaten WHERE npcid=
-
Re: Delete So do you know how to edit ur stats form staff panel v2 cuz i edit it to 69999999999 then it goes to 214768868
-
Re: Delete From v2 staff panel edit user i put my stats to 4000000000000000000 straength but it bes 21478868
-
Re: Delete klikoka this was rong ALTER TABLE `userstats` CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0', CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0', CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0', CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0', CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0', the right one is ALTER TABLE `userstats` CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0' CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0' CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0' CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0' CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0' Just by taking , that of at the end thanks for trying
-
Re: Delete Wot do i do to gt more stats and crystals then 214756885
-
Re: Delete cba looking its ok if sum posts it here thnx
-
Re: Delete And wot do i do for stats and crystals to gt more then 214775858
-
Re: Delete Do i do sumthing in myphpadmin for more money
-
Re: Delete And wot do i do to gt more money then 214768686 in v2 game