Ghetto
Members-
Posts
413 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Ghetto
-
Re: [mccode] Owner Panel - Simple Yeah link to the Cpanel... just thought its easyer :-P I know its gunna take long but i think it will be worth it.
-
Re: [mccode] Owner Panel - Simple Im creating my own for V2 NO WHERE NEAR FINISHED but heres wat it looks like so far...
-
Re: PUB Change all your " to ' appart from the print " and the end of that "; keep them the same
-
Re: Personal Detals [free][V2] Nah lol i mean register. It was late and i was a but drunk so...
-
I thought i might add this as a extra feature on my game. Then i thought i'll post it here :-P. In preferences.php find: case 'forumchange2': do_forum_change(); break; case 'forumchange': forum_change(); break; Add below: case 'detailchange2': do_detail_change(); break; case 'detailchange': detail_change(); break; case 'eperschange2': ed_pers_change(); break; case 'eperschange': pers_change(); break; Later Find: $h->endpage(); ?> Add befor: function detail_change() { global $ir,$c,$userid,$h; print "Personal Details Yes No "; } function do_detail_change() { global $db,$ir,$c,$userid,$h; $_POST['personal']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['personal']); $db->query("UPDATE users SET personal='{$_POST['personal']}' WHERE userid=$userid"); print "People can now view your personal Details!"; } function pers_change() { global $ir,$c,$userid,$h; print "Personal Details Change Please note that you have your personal details set to off/no then people will not be able to view your personal details. Name: Last Name: Age: Aim Of The Game: MSN: AIM: AOL: Yahoo: "; } function ed_pers_change() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET name='{$_POST['name']}', last='{$_POST['last']}', age='{$_POST['age']}', aog='{$_POST['aog']}', msn='{$_POST['msn']}', aim='{$_POST['aim']}', aol='{$_POST['aol']}', yahoo='{$_POST['yahoo']}' WHERE userid=$userid"); print "Personal Details changed!"; } Then go into viewuser.php. Find: Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url] "; } else { print "N/A "; } if($r['gang']) { print "Days in gang: {$r['daysingang']}"; } else { print "Days in gang: N/A"; } if($r['fedjail']) { print " [b]In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}"; } if($r['hospital']) { print " [b]In hospital for {$r['hospital']} minutes. {$r['hospreason']}[/b]"; } if($r['jail']) { print " [b]In jail for {$r['jail']} minutes. {$r['jail_reason']}[/b]"; } Replace with: if($r['personal'] == ON) { print " [b]Name:[/b] {$r['name']} [b]Last Name:[/b] {$r['last']} [b]Age:[/b] {$r['age']} [b]Aim Of The Game:[/b] {$r['aog']} [b]MSN:[/b] {$r['msn']} [b]AIM:[/b] {$r['aim']} [b]AOL:[/b] {$r['aol']} [b]Yahoo:[/b] {$r['yahoo']} "; } else if($r['personal'] == OFF) { print " This Person Dose Not Want To Share There Personal Details."; } Then find: Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} "; Add after: Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url] "; } else { print "N/A "; } if($r['gang']) { print "Days in gang: {$r['daysingang']}"; } else { print "Days in gang: N/A"; } if($r['fedjail']) { print " [b]In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}"; } if($r['hospital']) { print " [b]In hospital for {$r['hospital']} minutes. {$r['hospreason']}[/b]"; } if($r['jail']) { print " [b]In jail for {$r['jail']} minutes. {$r['jail_reason']}[/b]"; } print" "; Im using the resiter.php thats posted on here somewhere so you might need to modify this bit a bit. Find: $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, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); Replace With: $db->query("INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, personal, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', '{$_POST['name']}', '{$_POST['last']}', '{$_POST['age']}', '{$_POST['aog']}', '{$_POST['msn']}', '{$_POST['aim']}', '{$_POST['aol']}', '{$_POST['yahoo']}', '{$_POST['personal']} md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); Add on register.php where ever you want: Real Name: Last Name: Age: Aim Of The Game: MSN: AIM: AOL: Yahoo: Show Personal Details: Yes No These Need To Go Under Username In The Users Table: ALTER TABLE `users` ADD `name` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `last` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `age` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `aog` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `msn` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `aim` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `aol` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `yahoo` varchar(255) NOT NULL default 'N/A'; ALTER TABLE `users` ADD `personal` enum('ON','OFF') NOT NULL default 'ON'; Its 2.44AM so if ive missed anything let me no.
-
Re: [mccode] Register Page i did it wrong lol just tested it. so i fixed it all tested with V2 and working perfectly here you go... <?php include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } //thx to [url]http://www.phpit.net/code/valid-email/[/url] for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } session_start(); print "<html> <head> <title>Game Name Here</title> <style> body { font-family:Verdana;font-size:9pt;color: white; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body><table width='100%' border='1' bgcolor='#333333'> <tr> <th scope='col'>[img=PIC HERE.jpg]</th> </tr> </table> <center> "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >[url='register.php']Back[/url]"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($q)) { print "Username already in use. Choose another. >[url='register.php']Back[/url]"; } else if($db->num_rows($q2)) { print "E-Mail already in use. Choose another. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. >[url='register.php']Back[/url]"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $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, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { print "<style type='text/css'> <!-- #Layer2 { position:absolute; width:200px; height:115px; z-index:1; left: 354px; top: 356px; } #Layer6 { position:absolute; width:182px; height:202px; z-index:2; left: 10px; top: 204px; } #Layer7 { position:absolute; width:200px; height:115px; z-index:3; left: 350px; top: 201px; } #Layer8 { position:absolute; width:1081px; height:33px; z-index:4; left: 71px; top: 590px; } --> </style> <body bgcolor='#444444'> <div id='Layer7'> <table width='530' height='109' border='1' bgcolor='#666666'> <tr> <th scope='col'> Game Name Registration</th> </tr> <td> <center> <form action=register.php method=post> <table width='530' border='1'> <td><div align='center'>Username:</div></td> <td><div align='center'> <input type='text' name='username' /> </div></td> </tr> <tr> <td><div align='center'>Password:</div></td> <td><div align='center'> <input type='password' name='password' /> </div></td> </tr> <tr> <td><div align='center'>Confirm Password: </div></td> <td><div align='center'> <input type='password' name='cpassword' /> </div></td> </tr> <tr> <td><div align='center'>Email Address: </div></td> <td><div align='center'> <input type='text' name='email' /> </div></td> </tr> <tr> <td><div align='center'>Promo Code: </div></td> <td><div align='center'> <input type=text name=promo /> </div></td> </tr> <tr> </tr> </table> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <input type=submit value=Submit></form><form name=tos> <input type='checkbox' name=mybox value='1'>I Agree To The Terms Of Service </form> </center></td> </tr> </table> </div> <div id='Layer6'> <table width='181' height='203' border='1' bgcolor='#333333'> <tr> <th height='39' scope='col'>Navigation</th> </tr> <tr> <td height='30'>[url='login.php']Login[/url]</td> </tr> <tr> <td height='28'>[url='register.php']Register[/url]</td> </tr> <tr> <td height='30'>[url='#']Lost Password?[/url]</td> </tr> <tr> <td height='30'>[url='#']Screenshots[/url]</td> </tr> <tr> <td height='30'>[url='#']Terms Of Service[/url]</td> </tr> </table> </div> <div id='Layer8'> <table width='98%' border='1' bgcolor='#333333'> <tr> <th scope='col'><center> | This Game Is Brought To You By You Name Here! | </center>"; } print "</body></html>"; ?>
-
Re: [mccode] Register Page Ive not tested it mind. Im gunna be changing it a lot first :-P lol.
-
Re: [mccode] Register Page Now this should work with V2 <?php session_start(); print "<html> <head> <title>Game Name Here</title> <style> body { font-family:Verdana;font-size:9pt;color: white; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body><table width='100%' border='1' bgcolor='#333333'> <tr> <th scope='col'>[img=PIC HERE.jpg]</th> </tr> </table> <center> "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } require "config.php"; global $c; if($_POST['username']) { $sm=100; if($_POST['promo'] == "") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=mysql_query("SELECT * FROM users WHERE username='{$username}'",$c); if(mysql_num_rows($q)) { print "Username already in use. Choose another."; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs((int) $_POST['ref']); $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=mysql_query("SELECT * FROM users WHERE lastip='$ip' AND userid={$_POST['ref']}",$c); $a=mysql_query("SELECT * FROM users WHERE lastip='$ip'",$c); if(mysql_num_rows($a) > 0) { die("No multi's! Your not trying to make another account are you! Sorry! Not Allowed!"); } if(mysql_num_rows($q)) { die("Creating Referral Multies Is Not Aloud."); } if($_POST['ref']) { $q=mysql_query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $r=mysql_fetch_array($q); } mysql_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, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip')", $c); $i=mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if($_POST['ref']) { require "global_func.php"; mysql_query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); } print "Thank You For Registering! Please Login. > [url='login.php']Login[/url]"; } } else { print "<style type='text/css'> <!-- #Layer2 { position:absolute; width:200px; height:115px; z-index:1; left: 354px; top: 356px; } #Layer6 { position:absolute; width:182px; height:202px; z-index:2; left: 10px; top: 204px; } #Layer7 { position:absolute; width:200px; height:115px; z-index:3; left: 350px; top: 201px; } #Layer8 { position:absolute; width:1081px; height:33px; z-index:4; left: 71px; top: 590px; } --> </style> <body bgcolor='#444444'> <div id='Layer7'> <table width='530' height='109' border='1' bgcolor='#666666'> <tr> <th scope='col'> Game Name Registration</th> </tr> <td> <center> <form action=register.php method=post> <table width='530' border='1'> <td><div align='center'>Username:</div></td> <td><div align='center'> <input type='text' name='username' /> </div></td> </tr> <tr> <td><div align='center'>Password:</div></td> <td><div align='center'> <input type='password' name='password' /> </div></td> </tr> <tr> <td><div align='center'>Confirm Password: </div></td> <td><div align='center'> <input type='password' name='cpassword' /> </div></td> </tr> <tr> <td><div align='center'>Email Address: </div></td> <td><div align='center'> <input type='text' name='email' /> </div></td> </tr> <tr> <td><div align='center'>Promo Code: </div></td> <td><div align='center'> <input type=text name=promo /> </div></td> </tr> <tr> </tr> </table> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <input type=submit value=Submit></form><form name=tos> <input type='checkbox' name=mybox value='1'>I Agree To The Terms Of Service </form> </center></td> </tr> </table> </div> <div id='Layer6'> <table width='181' height='203' border='1' bgcolor='#333333'> <tr> <th height='39' scope='col'>Navigation</th> </tr> <tr> <td height='30'>[url='login.php']Login[/url]</td> </tr> <tr> <td height='28'>[url='register.php']Register[/url]</td> </tr> <tr> <td height='30'>[url='#']Lost Password?[/url]</td> </tr> <tr> <td height='30'>[url='#']Screenshots[/url]</td> </tr> <tr> <td height='30'>[url='#']Terms Of Service[/url]</td> </tr> </table> </div> <div id='Layer8'> <table width='98%' border='1' bgcolor='#333333'> <tr> <th scope='col'><center> | This Game Is Brought To You By You Name Here! | </center>"; } print "</body></html>"; ?>
-
Re: [mccode] Register Page Its not V2. I dont think its V1 eather lol.
-
Re: Improved Estate Agents [free][V2] see thats the one thing i dont get about this forum... you post something free and then someones got to have beter. just fuckin injoy it lol.
-
Re: arcade mod v1 you chat so much shit. every 5 minutes my msn was going off with you asking for help with it!
-
The ols esate agent started to bore me and was to close together so i thought id improve it abit estate.php <?php include "globals.php"; $mpq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['willmax']}",$c); $mp=mysql_fetch_array($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq=mysql_query("SELECT * FROM houses WHERE hID={$_GET['property']}",$c); $np=mysql_fetch_array($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { mysql_query("UPDATE users SET money=money-{$np['hPRICE']},maxwill={$np['hWILL']},willmax={$np['hWILL']} WHERE userid=$userid",$c); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['willmax']}",$c); $np=mysql_fetch_array($npq); if($ir['willmax'] == 100) { print "You already live in the lowest property!"; } else { mysql_query("UPDATE users SET money=money+{$np['hPRICE']},maxwill=100,willmax=100 WHERE userid=$userid",$c); print "You sold your {$np['hNAME']} and went back to your Coffin."; } } else { print "Your current property: [b]{$mp['hNAME']}[/b] The houses you can buy are listed below. Click a house to buy it. "; if($ir['willmax'] > 100) { print "[url='estate.php?sellhouse']Sell Your Property[/url] "; } $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['willmax']} ORDER BY hWILL ASC",$c); while($r=mysql_fetch_array($hq)) { print " HouseHouse PriceHouse WillBuy?{$r['hNAME']}\$$t".money_formatter($r['hPRICE'],'')."{$r['hWILL']}Buy"; } } $h->endpage(); ?> looks like: injoy!
-
Re: Help me test this When you draw it takes the $100 off aswell
-
Re: make a game using lite, v1.1 or v2 I find V2 quite simple but ive never tried V1 so i cant really say witch is better.
-
Re: make a game using lite, v1.1 or v2 I dont no wat your on about you cant even code! you just stolen the Nuclear Wastelands codes. and started bragin about it! Cheak it out. http://www.tropicalpalace.justfreespace ... /login.php All this kid dose is steal codes!
-
Re: !!**Whore House Mod FREE**!! i converted it for V2 it not as good as a real whore house but its still good :-P
-
Re: i better warn all game owners here i no this guy he cant code anything he keeps asking me for help lol i even no his cpanel info :lol: his names kieran if anyone wants to no :-P