-
Posts
2,146 -
Joined
-
Last visited
-
Days Won
149
Content Type
Profiles
Forums
Events
Everything posted by Magictallguy
-
Re: FREE Bug Tracker Mod I'm bored so Oxi? You can have another +1!! (I've already given you a +1 but as I said I'm bored!!)
-
Re: [mccode] Close page system Well I have an HTML tester on my Owner Panel if anyone wants it?
-
Free New City Mod For v1 and lite
Magictallguy replied to RecklessCounty's topic in Free Modifications
Re: Free New City Mod For v1 and lite Or what you could try is this... Go into your admin panel (admin.php) and add in this underneath where all the case: whatever whatever; (); stuff is case "delcity": del_city(); break; case "delcitysub": del_city_sub(); break; case 'newcity': new_city(); break; case 'newcitysub': new_city_sub(); break; case 'editcity': edit_city(); break; case 'editcitysub': edit_city_sub(); break; case 'delcity': del_city(); break; case 'delcitysub': del_city_sub(); break; Add in the link wherer you want it [[url='newcity.php?action=newcity']Create New city[/url]] [[url='newcity.php?action=editcity']Edit City[/url]] [<a href='newcity.php?action=delcity'> And go to $h->endpage and paste this above function new_city() { global $ir, $c, $h, $userid; print "<h3>Create New City</h3> This will create a new city. <form action='newcity.php?action=newcitysub' method='post'> City name: <input type='text' name='cityname' /> City desc: <input type='text' name='citydesc' /> City min level <input type='text' name='cityminlevel' /> <input type='submit' value='Create New city' /></form>"; } function new_city_sub() { global $ir, $c, $h, $userid; $_POST['cityminlevel'] = abs((int)$_POST['cityminlevel']); mysql_query("INSERT INTO cities (cityname, citydesc, cityminlevel) VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "[url='admin.php']> Back[/url]"; } function edit_city() { global $ir, $c, $h, $userid, $cityid; print "<h3>Edit City</h3> This will edit a city. <form action='newcity.php?action=editcitysub' method='post'> City City id: <input type='text' name='cityid' /> City Name EXACTLY as it appears: <input type='text' name='cityname' /> City desc: <input type='text' name='citydesc' /> City min level <input type='text' name='cityminlevel' /> <input type='submit' value='Edit city' /></form>"; } function edit_city_sub() { global $ir,$c,$h,$userid; mysql_query("UPDATE cities SET cityid='{$_POST['cityid']}',cityname='{$_POST['cityname']}', citydesc='{$_POST['citydesc']}', cityminlevel='{$_POST['cityminlevel']}' WHERE cityid='{$_POST['cityid']}'",$c); print "City edited..."; } function del_city() { global $ir, $c, $h, $userid, $cityid; print "<h3>Delete City</h3> This will delete a city. <form action='newcity.php?action=delcitysub' method='post'> City id: <input type='text' name='cityid' /> <input type='submit' value='Delete city' /></form>"; } function del_city_sub() { global $ir,$c,$h,$userid; mysql_query("DELETE FROM cities WHERE cityid='{$_POST['cityid']}'",$c); print "City deleted"; } and that's it! Nothing was changed apart from where to shove it! ;P -
Re: SQL Injections You got any defensive ideas about these? I just got hacked!!!
-
Re: [mccode] Owner Panel - Simple How about this <a href='http://.gamename.com/cpanel>cPanel</a><br/ > <a href='http://gamename.com/cpanel/path/to/your/file/manager>File Manager</a> <a href='http://gamename.com/cpanel/path/to/your/phpMyAdmin>phpMyAdmin/Database</a> That seems easier to me!! ;-P
-
Re: [mccode] Black Jack If a code has this in it: <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); Then it is v1 That can also be found in generalpage.php If it has globals.php instead of all that then it is v2!
-
Re: [mccode] View Donators I'M USING KYLE'S CODE HERE - NOTHING CHANGED. 1. Go into your public_html a.k.a www folder in the File Manager. 2. Click on 'Create New File' and call it viewdonators.php, then save it as an HTML Document 3. Click on that file you just created, click edit, and add in this code: <?php /*----------------------------------------------------- kyles donator users -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['credits'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "<center> [b]<font color=red><h1>Donators</h1>[/b] <table width=75% border=1> <tr style='background:black'><th>User</th> <th>Level</th> <th>Money</th> <th>Donator days Left</th> <th><font color=white>Status</th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE donatordays ORDER BY userid ASC", $c); while($r=mysql_fetch_array($q)) { if($r['laston'] >= time()-60*60) { $on="<font color=white>[b]Online[/b]</font>"; } else { $on="<font color=black>[b]Offline[/b]</font>"; } print "<tr> <td>[url='viewuser.php?u={$r[']<font color=red>[b]{$r['username']}[/b]</font>[/url] [{$r['userid']}]</td><td>{$r['level']}</td> <td>\${$r['money']}</td> <td>{$r['donatordays']}</td> <td>$on</td> </tr>"; } print "</table>"; $h->endpage(); ?> 4. Save the page by clicking save...dur. 5. Go to explore.php in your File Manager 6. Find this: [url='halloffame.php']Hall of Fame[/url] 7. Add underneath it [url='viewdonators.php']View Donators[/url] 8. Click save to save the file 9. Go to your game and have a look!! O_O There you go!! Happy now? Haha
-
[mccode] for any version copyright code
Magictallguy replied to KyleCrispy's topic in Free Modifications
Re: [mccode] for any version copyright code All documents, when saved are given a time-stamp. This can only be wrote once, if your $copy copyright has the time you made it, and it matches the time-stamp, there's your proof. There is some kind of program that can look into the time-stamps of a document. Police can do it no problem! ;-) -
mccode-v1 quantify items automatically
Magictallguy replied to seanybob's topic in Free Modifications
Re: [mccode] quantify items automatically Haha +1 for that...Needed to laugh! -
[mccode] [TGM] Delete Gang Option [TGM]
Magictallguy replied to Cronus's topic in Free Modifications
Re: [mccode] [TGM] Delete Gang Option [TGM] Nicely done!! Thanks...+1 -
Re: Fedjail cache Still, it's a good idea!! ;-)
-
Re: Fedjail cache I added that in but then whenever I went to another game link all I got was www.mygamelink.com/fedjail.cache/whatever.php
-
Re: FREE Bug Tracker Mod Thank you +1
-
Re: [FREE] Alarm clock [v1.1 v2 v1] Well, I could always add the alarm clock and set it to go to a po....ahem...nevermind
-
Re: [mccode] jail/hosp shoutbox Disregard last message...I got it working...My browser for some stupid reason doesn't accept the pressing of the ENTER key on the keyboard. When I press enter after typing in the shoutbox, it just refreshes the page O_o...Yet to figure out why!! :-P
-
Re: [mccode] jail/hosp shoutbox Well instead of putting it onto the jail.php I've put it on the index.php, and instead of if($ir['jailtime']>0 || $ir['user_level']==2) {include_once("jailshout.php");} I've put if($ir['user_level']==2 || $ir['user_level']==3 || $ir['user_level']==4 || $ir['user_level']==5 || $ir['user_level']==6 || $ir['user_level']==7) {include_once("shoutbox.php");} (I have called it shoutbox.php and changed the necessary things for it, yet when I post it still doesn't work :'-(
-
[mccode] adding a crime panel in admin panel
Magictallguy replied to seanybob's topic in Free Modifications
Re: [mccode] adding a crime panel in admin panel lol, i bet its cuz when this mod was made, their wasnt any crime exp... i believe thats a new edition to V2? in v1.1 and lite, i believe the Exp was calculated off the successmoney... perhaps im wrong :-D i'm using lite. i've had this same install for about 5 months. QUOTE!!! Sorry I just wanted to make a big quote box... I'll stay out of this topic now! *Goes back into the corner and stares at everyone O_O* -
Re: [mccode] Annoucement Mod I have a v1!! Lol Want that?
-
Re: [mccode] Annoucement Mod No you can post annoucements but other users can discuss about it. when you post an annoucement its a option if you want discussions to be enabled. So it's a forum then....lol
-
Re: [v1]Refill Users What I did is code them separately, and code in which I want to refil (or let out) So here you go! :) Add into whichever staff panel you want case 'cwill': update_will(); break; case 'cbrave': update_brave(); break; case 'chp': update_hp(); break; case 'cenergy': update_energy(); break; case 'chospital': update_hospital(); break; case 'call': update_all(); break; case 'cmost': update_most(); break; Add in the links [[url='STAFFPANELNAME.php?action=cwill']Refil Will[/url]] [[url='STAFFPANELNAME.php?action=cbrave']Refil Brave[/url]] [[url='STAFFPANELNAME.php?action=chp']Refil Health[/url]] [[url='STAFFPANELNAME.php?action=cenergy']Refil Energy[/url]] [[url='STAFFPANELNAME.php?action=chospital']Let everyone out of hospital[/url]] [[url='STAFFPANELNAME.php?action=cmost']Refil All Bars[/url]] [[url='STAFFPANELNAME.php?action=call']Refil All Bars And Let Everyone Out Of Hospital[/url]] Then, find $h->endpage(); ?> And, add above that: function update_will() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); print "All users have been refilled, Will! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_energy() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET energy=maxenergy",$c); print "All users have been refilled, Energy! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_brave() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET brave=maxbrave",$c); print "All users have been refilled, Brave! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_hp() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET hp=maxhp",$c); print "All users have been refilled, Health! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_hospital() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET hospital=''",$c); mysql_query("UPDATE users SET hospreason = ''",$c); print "All users have been let out of hospital! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_most() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); mysql_query("UPDATE users SET energy=maxenergy",$c); mysql_query("UPDATE users SET brave=maxbrave",$c); mysql_query("UPDATE users SET hp=maxhp",$c); print "All bars have been refilled! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_all() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); mysql_query("UPDATE users SET energy=maxenergy",$c); mysql_query("UPDATE users SET brave=maxbrave",$c); mysql_query("UPDATE users SET hp=maxhp",$c); mysql_query("UPDATE users SET hospital=''",$c); mysql_query("UPDATE users SET hospreason = ''",$c); print "All bars have been refilled and all users let out of hospital! [url='STAFFPANELNAME.php']> Back[/url]"; } And that's it :-) Enjoy! :mrgreen:
-
mccode-v1 Steal Crystals when you Mug someone...
Magictallguy replied to tranz_fusion's topic in Free Modifications
Re: [mccode] Steal Crystals when you Mug someone... Thank you!! +1 -
Re: Gift.php As far as I'm aware you don't actually need the ` around the words. It just adds it, as long as the case is right. DB's are case sensitive! ;)
-
Re: [Free] [v1] Help Bot Yea I see that now, but on my first day it wasn't there ^_^
-
Re: [Free] [v1] Profile Image Uploader Haha, oh yea! Lol. Always the little things that I miss! ^_^
-
Re: [FREE][CRYSTAL GYM] Well I used that mod but because I have 50gb/s Any train over 35,000 would shut down the game for around 5 mins so I took it off. Nice mod though!!