
Gucci Mane
Members-
Posts
207 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Gucci Mane
-
I wanna buy a template similar to this
Gucci Mane replied to Gucci Mane's topic in Paid Modifications
He hasnt logged on in a month -
Game Template [$10] Can anyone do a template similar to that?? I will pay you, plz contact me here or on msn : [email protected] thx
-
help with a mod I tried coverting a bank to a crystal bank
Gucci Mane posted a topic in Game Support
This is my first time ever trying this Error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/gucci/public_html/crystalbank.php on line 72 crystalbank.php <?php include "globals.php"; print "<h3>Crystal Bank</h3>"; if($ir['bankcrystals']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>5000) { print "Congratulations, you bought a crystal bank account for \$5,000! [url='crystalbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-5000,bankcrystals=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a crystal bank account today, just \$5,000! [url='crystalbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have {$ir['crystalbank']} crystal in the bank.[/b] <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit crystal[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is \3 crystals.<form action='crystalbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Crystals[/b] There is no fee on withdrawals.<form action='crystalbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankcrystals']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { print "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 3) { $fee=3; } $gain=$_POST['deposit']-$fee; $ir['bankcrystals']+=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid"); print "You hand over \{$_POST['deposit']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankcrystals']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankcrystals']) { print "You do not have enough banked crystals to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankcrystals']-=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals-$gain, crystals=crystals+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankcrystals']} in the bank.[/b] [url='crystalbank.php']> Back[/url]"; } } $h->endpage(); ?> -
Great mod thx for adding this no bugs on this one
-
When studying php, do you advise reading over the whole tutorial a few times then trying to make a small mod? I guess I am asking hwat do you think the best way to become a great coder is when studying php?
-
I want this mod(im so broke)
-
I have been trying to fix this erro for 1 hour 13 minutes lol I been looking in google for examples and all can someone plz help me out
-
works great man no edits needed Thank you for this!!! I am sorry for so many questions just really tired lol Thanks alot +1
-
So just overwrite my out function with that
-
I want to add this mod but i dont under stand casn you plz be more specific and use code tags
-
Ok, sorry
-
I have the files inWAMP and everything how do i access it to see em all
-
once again everyone complaining about a FREE mod, so what if its basic some ppl couldnt do that!!
-
Once again Richard great mod!! xD
-
well I think you need a basic knowledge of css to edit the look of your game but you could also make it with photoshop you can amke the template, register, and login that way!! Or you can pay someone =) Hope this helps a little
-
I get this error: Fatal error: Cannot redeclare report_clear() (previously declared in /home/*****/public_html/staff_users.php:437) in /home/*****/public_html/staff_users.php on line 516 my staff_users.php <?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; case 'reportsview': reports_view(); break; case 'repstat': repstat(); 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> [b]Stats[/b] 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. [url='admin.php?action=newuser']> Back[/url]"; $h->endpage(); exit; } $level=abs((int) $_POST['level']); $money=abs((int) $_POST['money']); $crystals=abs((int) $_POST['crystals']); $donator=abs((int) $_POST['donatordays']); $ulevel=abs((int) $_POST['user_level']); $strength=abs((int) $_POST['strength']); $agility=abs((int) $_POST['agility']); $guard=abs((int) $_POST['guard']); $labour=abs((int) $_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 " [url='admin.php?action=edituser']> Back[/url]"; $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. [url='staff_users.php?action=deluser']>Back to main Delete Users page.[/url]"); } 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. [url='staff_users.php?action=deluser']>Back to main Delete Users page.[/url]"; 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 "[b]This person has no items![/b]"; } else { print "[b]Their items are listed below.[/b] <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>[[url='staff_users.php?action=deleinv&ID={$i[']Delete[/url]]"; 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'] = (int) $_POST['money']; $_POST['crystals'] = (int) $_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 [url='staff.php?action=announce']here to add an announcement[/url] or [url='staff_special.php?action=massmailer']here to send a mass mail[/url] 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'] > 5) { die("403"); } echo "<h3>Player Reports</h3> <table class='table' width='90%'> <tr> <th>Reporter</th> <th>Offender</th> <th>What they did</th> <th>Status</th> <th>Links</th> </tr>"; $sql = "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"; $q = $db->query($sql); while($rep = $db->fetch_row($q)) { if($rep['prSTATUS'] == 0) { $status = "<font color='red'>Needs handling</font>"; } else if($rep['prSTATUS'] == 1) { $status = "<font color='orange'>Pending</font>"; } else { $status = "<font color='green'>Handled</font>"; } echo "<tr>"; echo sprintf("<td class='tdcenter'>[url='viewuser.php?u=%u']%s[/url] [%s]</td>", $rep['prREPORTER'], $rep['reporter'], $rep['prREPORTER']); echo sprintf("<td class='tdcenter'>[url='viewuser.php?u=%u']%s[/url] [%s]</td>", $rep['prREPORTED'], $rep['offender'], $rep['prREPORTED']); echo sprintf("<td>%s</td>", stripslashes(nl2br($rep['prTEXT']))); echo sprintf("<td class='tdcenter'>%s</td>", $status); echo "<td class='tdcenter'>"; echo sprintf("[url='staff_users.php?action=repclear&ID=%u'][img=/imageicons/decline.png][/url] ", $rep['prID']); echo sprintf("[url='staff_users.php?action=repstat&ID=%u'][img=/imageicons/coding.png][/url]", $rep['prID']); echo "</td>"; echo "</tr>"; } echo "</table>"; } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] < 2) { echo "You don't have access"; $h->endpage(); exit; } $_GET['ID'] = abs(@intval($_GET['ID'])); $sql = sprintf("DELETE FROM preports WHERE (prID = %u)", $_GET['ID']); $log = sprintf("Cleared player report ID %u", $_GET['ID']); $db->query($sql); stafflog_add($log); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } function repstat() { global $ir, $db, $h; echo sprintf("Change the status of player report ID %u ", $_GET['ID']); if($ir['user_level'] > 5) { echo "Access Denied"; $h->endpage(); exit; } if(!isset($_POST['change'])) { echo sprintf("<form action='staff_users.php?action=repstat&ID=%u' method='post'>", $_GET['ID']); echo "<select name='change'>"; echo "<option value='0'>Not handled</option>"; echo "<option value='1'>Pending</option>"; echo "<option value='2'>Handled</option>"; echo "</select>"; echo " <input type='submit' value='Submit' />"; echo "</form>"; } else { $sql = sprintf("UPDATE preports SET prSTATUS = %d WHERE (prID = %u)", $_POST['change'], $_GET['ID']); $db->query($sql); echo "Status updated - [url='staff_users.php?action=reportsview']Back[/url]"; stafflog_add(sprintf("Updated the status of report ID %u", $_GET['ID'])); } } 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! [url='staff_users.php?action=reportsview']> Back[/url]"; } } $h->endpage(); ?>
-
My view users.php <?php include_once (DIRNAME(__FILE__) . '/globals.php'); $_GET['u'] = abs(@intval($_GET['u'])); $_GET['to'] = abs(@intval($_GET['to'])); if(!$_GET['u']) { echo 'Invalid use of file'; $h->endpage(); exit; } else { $Find = $db->query(sprintf("SELECT u.`userid`, u.`username`, u.`level`, u.`money`, u.`crystals`, u.`laston`, u.`lastip`, u.`energy`, u.`will`, u.`maxwill`, u.`brave`, u.`maxbrave`, u.`maxenergy`, u.`hp`, u.`maxhp`, u.`location`, u.`hospital`, u.`jail`, u.`jail_reason`, u.`fedjail`, u.`user_level`, u.`gender`, u.`daysold`, u.`signedup`, u.`gang`, u.`donatordays`, u.`email`, u.`display_pic`, u.`duties`, u.`staffnotes`, u.`hospreason`, u.`lastip_login`, u.`lastip_signup`, u.`last_login`, u.`friend_count`, u.`enemy_count`, c.`cityid`, c.`cityname`, h.`hID`, h.`hNAME`, h.`hWILL`, g.`gangID`, g.`gangNAME`, f.`fed_userid`, f.`fed_days`, f.`fed_jailedby`, f.`fed_reason`, uu.`userid` AS `fed_jailer_id`, uu.`username` AS `fed_jailer` FROM `users` u LEFT JOIN `cities` c ON u.`location` = c.`cityid` LEFT JOIN `houses` h ON u.`maxwill` = h.`hWILL` LEFT JOIN `gangs` g ON g.`gangID` = u.`gang` LEFT JOIN `fedjail` f ON f.`fed_userid` = u.`userid` LEFT JOIN `users` uu ON f.`fed_jailedby` = uu.`userid` WHERE u.`userid` = '%u'", $_GET['u'])); if(mysql_num_rows($Find) == '0') { echo 'Sorry, we could not find a user with that ID, check your source.'; $h->endpage(); exit; } else { $r = $db->fetch_row($Find); $CheckUserLevel = array( '0' => 'NPC', '1' => 'Member', '2' => 'Admin/Owner', '3' => 'Secretary', '4' => 'Moderator', '5' => 'Player Enquires' ); $UserLevel = $CheckUserLevel[$r['user_level']]; $LastOn = ($r['laston'] > '0') ? date('F j, Y g:i:s a',$r['laston']) : "Never"; $SignedUp = date('F j, Y g:i:s a', $r['signedup']); if($r['laston'] > '0') { $LA = time() - $r['laston']; $Unit1 = "Seconds"; if($LA >= '60') { $LA = (int) ($LA/'60'); $Unit1 = "Minutes"; } if($LA >= '60') { $LA = (int) ($LA/'60'); $Unit1 = "Hours"; if($LA >= '24') { $LA = (int) ($LA/'24'); $Unit1 = "Days"; } } $LastAction = $LA.' '.$Unit1.' ago'; } else { $LastAction="--"; } $Status = ($r['laston'] >= time()-'15'*'60') ? "<blink><font color='green'>[b]Online[/b]</font></blink>" : "<font color='red'>[b]Offline[/b]</font>"; $DD = ''; if($r['donatordays']) { $r['username'] = '<font color="#8F5C29">'.stripslashes($r['username']).'</font>'; $DD = '[img=donator.gif]'; } $UGender = ($r['gender'] == "Male") ? "His" : "Her"; $FGender = ($r['gender'] == "Male") ? "He Is" : "She Is"; echo sprintf("<h3>Profile for %s </h3>", stripslashes($r['username'])); if($r['fedjail']) { echo '[b]'; echo sprintf("<font color='#FF0000'><h3>You Cannot See %s (%s) Profile While In Federal Jail!</h3></font>", $UGender, stripslashes($r['username']), $FGender); echo sprintf("Days In Fed: %s Day(s) Left ", number_format($r['fed_days'])); echo sprintf("Reason: %s ", stripslashes($r['fed_reason'])); echo sprintf("Jailed By: [url='%s?u=%u']%s[/url]", $_SERVER['PHP_SELF'], @intval($r['fed_jailer_id']), stripslashes($r['fed_jailer'])); $h->endpage(); exit; } echo ' <table width="98%" border="1" cellspacing="1" class="table"> <tr>'; echo sprintf("<th width='50%%'>%s General Info</th>", $UGender); echo sprintf("<th width='50%%'>%s Display Picture</th>", $UGender); echo ' </tr> <tr> <td>'; echo sprintf("Name: %s [%s] %s ", stripslashes($r['username']), $r['userid'], $DD); echo sprintf("User Level: %s ", $UserLevel); echo sprintf("Duties: %s ", stripslashes($r['duties'])); echo sprintf("Level: %s ", number_format($r['level'])); echo sprintf("Cash: %s ", number_format($r['money'])); echo sprintf("Crystals: %s ", number_format($r['crystals'])); echo sprintf("Property: %s ", stripslashes($r['hNAME'])); echo sprintf("Gender: %s ", $r['gender']); Rating: <a href=rating.php?change=up&ID={$r['userid']}><img src=positive.gif></a> {$r['rating']} <a href=rating.php?change=down&ID={$r['userid']}><img src=negative.gif></a> echo sprintf("Days Old: %s ", number_format($r['daysold'])); echo sprintf("Location: %s ", stripslashes($r['cityname'])); if($ir['location'] != $r['location']) { echo sprintf("[[url='docks.php?to=%u']Travel[/url]]", @intval($r['location'])); } echo ' '; echo sprintf("Friends: %s ", number_format($r['friend_count'])); echo sprintf("Enemies: %s ", number_format($r['enemy_count'])); echo sprintf("Health: %s/%s ", number_format($r['hp']), number_format($r['maxhp'])); echo 'Gang: '; if($r['gang']) { echo sprintf("[url='crews.php?action=viewgang&ID=%u']%s[/url] ", @intval($r['gang']), stripslashes($r['gangNAME'])); } else { echo 'Not in a gang. '; } echo sprintf("Signed Up: %s ", $SignedUp); echo sprintf("Last Action: %s ", $LastAction); echo sprintf("Status: %s ", $Status); if($r['hospital']) { echo ' '; echo sprintf("[b]<font color='#FF000'>In hospital for %s minutes. ", number_format($r['hospital'])); echo sprintf("Reason: %s </font>[/b]", stripslashes($r['hospreason'])); } if($r['jail']) { echo ' '; echo sprintf("[b]<font color='#FF000'>In jail for % minutes. ", number_format($r['jail'])); echo sprintf("Reason: %s </font>[/b]", stripslashes($r['jail_reason'])); } echo ' </td> <td width="50%" style="text-align:center;">'; if($r['display_pic']) { echo sprintf("[img=%s]", $r['display_pic']); } else { echo 'This User Doesn\'t Have A Picture Up.'; } echo ' </td> </tr> <tr> <th colspan="4">Links</th> </tr> <tr> <td colspan="2" style="text-align:center;"> <table width="100%" cellspacing="0" border="1"> <tr style="font-weight:bold;" align="center">'; echo sprintf("<td colspan='4'>[[url='attack.php?ID=%u']Attack[/url]]</td>", @intval($r['userid'])); echo ' </tr> <tr style="font-weight:bold;" align="center">'; echo sprintf("<td width='50%%' colspan='2'>[[url='mailbox.php?action=compose&ID=%u']Send Mail[/url]]</td>", @intval($r['userid'])); echo sprintf("<td width='50%%' colspan='2'>[[url='contactlist.php?action=add&ID=%u']Add Contact[/url]]</td>", @intval($r['userid'])); echo ' </tr> <tr style="font-weight:bold;" align="center">'; echo sprintf("<td>[[url='sendcash.php?ID=%u']Send Cash[/url]]</td>", @intval($r['userid'])); echo sprintf("<td>[[url='sendrubies.php?ID=%u']Send Crystals[/url]]</td>", @intval($r['userid'])); echo sprintf("<td>[[url='sendbank.php?ID=%u']Bank Xfer[/url]]</td>", @intval($r['userid'])); echo sprintf("<td>[[url='threat.php?ID={$r[']Issue a Threat[/url]]</td>", @intval($r['userid'])); echo sprintf("<td>[[url='sendcyber.php?ID=%u']CyberBank Xfer[/url]]</td>", @intval($r['userid'])); echo ' </tr>'; if($ir['user_level'] == '2' || $ir['user_level'] == '3' || $ir['user_level'] == '4' || $ir['user_level'] == '5') { echo ' <tr style="font-weight:bold;" align="center">'; echo sprintf("<td colspan='2'>[[url='jailuser.php?userid=%u']Jail[/url]]</td>", @intval($r['userid'])); echo sprintf("<td colspan='2'>[[url='mailban.php?userid=%u']Mail Ban[/url]]</td>", @intval($r['userid'])); echo ' </tr>'; } if($ir['donatordays'] > '0') { echo ' <tr style="font-weight:bold;" align="center">'; echo sprintf("<td colspan='2'>[[url='friendslist.php?action=add&ID=%u']Add Friends[/url]]</td>", @intval($r['userid'])); echo sprintf("<td colspan='2'>[[url='blacklist.php?action=add&ID=%u']Add Enemies[/url]]</td>", @intval($r['userid'])); echo ' </tr>'; } echo ' </table> </td> </tr>'; if($ir['user_level'] == '2' || $ir['user_level'] == '3' || $ir['user_level'] == '4' || $ir['user_level'] == '5') { function checkblank($in) { if(!$in) { return 'N/A'; } return $in; } echo ' <tr>'; echo sprintf("<th colspan='2'>%s Staff Information</th>", $UGender); echo ' </tr> <tr> <td style="text-align:center;" colspan="2">'; $r['lastiph'] = @gethostbyaddr($r['lastip']); $r['lastiph'] = checkblank($r['lastiph']); $r['lastip_loginh'] = @gethostbyaddr($r['lastip_login']); $r['lastip_loginh'] = checkblank($r['lastip_loginh']); $r['lastip_signuph'] = @gethostbyaddr($r['lastip_signup']); $r['lastip_signuph'] = checkblank($r['lastip_signuph']); echo ' <h3>Internet Info</h3> <table width="100%" border="1" cellspacing="0" class="table"> <tr> <th></th> <th>IP</th> <th>Hostname</th> </tr> <tr> <td>Last Hit</td>'; echo sprintf("<td>%s</td>", $r['lastip']); echo sprintf("<td>%s</td>", $r['lastiph']); echo ' </tr> <tr> <td>Last Login</td>'; echo sprintf("<td>%s</td>", $r['lastip_login']); echo sprintf("<td>%s</td>", $r['lastip_loginh']); echo ' </tr> <tr> <td>Signup</td>'; echo sprintf("<td>%s</td>", $r['lastip_signup']); echo sprintf("<td>%s</td>", $r['lastip_signuph']); echo ' </tr> </table> <form action="staffnotes.php" method="post"> Staff Notes: '; echo sprintf("<textarea rows='7' cols='60' name='staffnotes'>%s</textarea>", htmlspecialchars(stripslashes($r['staffnotes']))); echo ' '; echo sprintf("<input type='hidden' name='ID' value='%u' />", @intval($_GET['u'])); echo ' <input type="submit" value="Change" /> </form> </td> </tr>'; } echo' </table> '; } } $h->endpage(); ?> The erro I get is Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/viewuser.php on line 110 line 110 is : <a href=rating.php?change=up&ID={$r['userid']}><img src=positive.gif></a> {$r['rating']} <a href=rating.php?change=down&ID={$r['userid']}><img src=negative.gif></a>
-
I added this to my game, only 1 problem is that I set an account that i wanted to ignore(as a test) and the mail still came thru and everything Do you know what could be wrong?
-
TRY: CREATE TABLE IF NOT EXISTS `implants` ( `statis` int(11) NOT NULL, `userid` int(11) NOT NULL, `stat` text(11) NOT NULL, `amount` decimal(11,4) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
says you is off line
-
what I have done so far! Download it ran the setup and installed wamp when I open it it doesnt open a window or nothing just an icon that has about refresh help language exit thats all Do you have msn? we can do this faster over there
-
wow...you guys are riddiculous Aleways gripe about free mods. Maybe gripw if you pay if you dont like dont use!! SIMPLE!!! As he said in his post " all you need to do is change the text". That means change to what you want!! Dont dis him because hes trying to help
-
I use windows! LOL I downloaded the wamp buit I dont know how to do anything on it