
skull
Members-
Posts
21 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by skull
-
Re: Requesting - [Mccodes V2} Shared house mod it works but theres problem when u marry someone there shit house get replaced with your good one but when u divorce them they dont get there original house they still have the good house
-
Re: battle ladder Open attack.php find: What do you want to do with {$odata['username']} now? <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Leave Them' /></form>"; replace with: What do you want to do with {$odata['username']} now? <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Leave Them' /></form>"; } $dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid"); $you=$db->fetch_row($dert); $dert=$db->query("SELECT * FROM ladder WHERE ladderID={$odata['userid']}"); $them=$db->fetch_row($dert); if($you && $them) { print"<form action='attackladder.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Ladder Attack Them' /></form>"; } query: -- -------------------------------------------------------- -- -- Table structure for table `ladder` -- CREATE TABLE `ladder` ( `ladderID` int(11) NOT NULL default '0', `ladderRANK` int(11) NOT NULL default '0', KEY `ladderRANK` (`ladderRANK`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `ladder` -- -- --------------------------------------------------------
-
Re: battle ladder battleladder.php <?php include "globals.php"; switch($_GET['action']) { case 'won': ladder_won(); break; case 'signup': ladder_signup(); break; case 'signup2': ladder_signup2(); break; default: ladder_index(); break; } function ladder_index() { global $db,$ir,$userid; print"<center><h3>Battle Ladder</h3>"; $dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid"); $yours=$db->fetch_row($dert); if($yours) { print"You are currently rank <font color=red>{$yours['ladderRANK']}</font></br></br>"; } else { print""; } print"<table width=60%><tr><th width=20%>Place</th><th>User</th><Th width=20%>Attack</th></tr>"; $dumb=$db->query("SELECT * FROM ladder ORDER BY ladderRANK ASC LIMIT 50"); while($ladder=$db->fetch_row($dumb)) { $dert=$db->query("SELECT * FROM users WHERE userid={$ladder['ladderID']}"); $r=$db->fetch_row($dert); print"<tr><Td><center>{$ladder['ladderRANK']}</center></td><td><center>[url='viewuser.php?u={$r[']{$r['username']}[/url]</center></td><td><center>[url='attack.php?ID={$r[']Attack User[/url]</center></td></tr>"; } print"</table></br></br>"; if($yours) { die(""); } else { die("<font color=red>[b]<a href=battleladder.php?action=signup>Click Here To Sign Up For The Battle Ladder</a></center>"); } } function ladder_signup() { global $db,$ir,$userid; $dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid"); $ladder=$db->fetch_row($dert); if($ladder) { die("<center>You have already signed up to the ladder.</center>"); } print"<center><h3>Battle Ladder Sign-Up</h3><form action='battleladder.php?action=signup2' method='post'>Signing up to the battle ladder costs 10 crystals.</br></br> <input class='textbox'type='submit' value='Sign Up To The Battle Ladder' /></form></center>"; } function ladder_signup2() { global $db,$ir,$userid; $dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid"); $ladder=$db->fetch_row($dert); if($ladder) { die("<center>You have already signed up to the battle ladder.</center>"); } if($ir['crystals'] < 10) { die("<center>You do not have enough crystals to sign up.</center>"); } $dumb=$db->query("SELECT * FROM ladder ORDER BY ladderRANK DESC LIMIT 1"); $number=$db->fetch_row($dumb); if($number) { $rank=$number['ladderRANK']+1; $db->query("INSERT INTO ladder VALUES('$userid','$rank')") or die(mysql_error()); $db->query("UPDATE users SET crystals=crystals-10 WHERE userid=$userid"); print"<center>You have signed up to the battle ladder! Good Luck!</center>"; } else { $rank=$number['ladderRANK']+1; $db->query("INSERT INTO ladder VALUES('$userid','1')") or die(mysql_error()); $db->query("UPDATE users SET crystals=crystals-10 WHERE userid=$userid"); print"<center>You have signed up to the battle ladder! Good Luck!</center>"; } } $h->endpage(); ?>
-
attackladder.php <?php $atkpage=1; include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($ir['jail']) { die("This page cannot be accessed while in jail."); } $_GET['ID']=abs((int) $_GET['ID']); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { die ("Cheaters don't get anywhere."); } if($db->num_rows($od)) { $r=$db->fetch_row($od); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$r['gang']}"); $ga=$db->fetch_row($gq); if($r['hp'] == 1) { print "What a cheater u are."; } else { $half=$ir['maxenergy']/2/2; $db->query("UPDATE users SET energy=energy+$half WHERE userid=$userid"); $_SESSION['attackwon']=0; event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); if($you['ladderRANK'] < $them['ladderRANK'] && $you['ladderRANK'] == 1) { event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); die("<center>You did not lose or gain any ladder rank.</center>"); } if($you['ladderRANK'] < $them['ladderRANK'] && $you['ladderRANK'] < 22) { event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); die("<center>You did not lose or gain any ladder rank.</center>"); } if($you['ladderRANK'] < $them['ladderRANK'] && $you['ladderRANK'] > 21) { $newrank=$you['ladderRANK']-1; $otherrank=$you['ladderRANK']; $db->query("UPDATE ladder SET ladderRANK=$otherrank WHERE ladderRANK=$newrank"); $db->query("UPDATE ladder SET ladderRANK=$newrank WHERE ladderID=$userid"); die("<center>You have gained 1 position in the ladder rankings.</br>You are now rank <font color=red>[b]$newrank[/b]</font>.</center>"); } if($you['ladderRANK'] > $them['ladderRANK'] && $you['ladderRANK'] > 10) { event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); $blah=round(($you['ladderRANK']-$them['ladderRANK'])/2); $newrank=$you['ladderRANK']-$blah; $lowest=$newrank-1; $dert=$db->query("SELECT * FROM ladder WHERE ladderRANK>$lowest AND ladderRANK<{$you['ladderRANK']}") or die(mysql_error()); while($others=$db->fetch_row($dert)) { $db->query("UPDATE ladder SET ladderRANK=ladderRANK+1 WHERE ladderID={$others['ladderID']}") or die(mysql_error()); } $db->query("UPDATE ladder SET ladderRANK=$newrank WHERE ladderID=$userid") or die(mysql_error()); die("<center>You have gained $blah position(s) in rank.</br>You are now rank <font color=red>[b]$newrank[/b]</font>.</center>"); } if($you['ladderRANK'] > $them['ladderRANK'] && $you['ladderRANK'] > 6) { event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); $newrank=$you['ladderRANK']-2; $lowest=$newrank-1; $dert=$db->query("SELECT * FROM ladder WHERE ladderRANK>$lowest AND ladderRANK<{$you['ladderRANK']}"); while($others=$db->fetch_row($dert)) { $db->query("UPDATE ladder SET ladderRANK=ladderRANK+1 WHERE ladderID={$others['ladderID']}"); } $db->query("UPDATE ladder SET ladderRANK=$newrank WHERE ladderID=$userid"); die("<center>You have gained 2 positions in rank.</br>You are now rank <font color=red>[b]$newrank[/b]</font>.</center>"); } if($you['ladderRANK'] > $them['ladderRANK'] && $you['ladderRANK'] < 7) { event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you in a ladder battle.",'combat'); $newrank=$you['ladderRANK']-1; $lowest=$newrank-1; $dert=$db->query("SELECT * FROM ladder WHERE ladderRANK>$lowest AND ladderRANK<{$you['ladderRANK']}"); while($others=$db->fetch_row($dert)) { $db->query("UPDATE ladder SET ladderRANK=ladderRANK+1 WHERE ladderID={$others['ladderID']}"); } $db->query("UPDATE ladder SET ladderRANK=$newrank WHERE ladderID=$userid"); die("<center>You have gained 1 position in rank.</br>You are now rank <font color=red>[b]$newrank[/b]</font>.</center>"); } } } } $h->endpage(); ?>
-
Re: help it doesnt update the query you to battle ladder you attack you finish and it on the screen were it says leave, mug and all attack ladder button ther when press it goes to this file and thats it blank page doesnt update
-
join this game www.criminal-corruption.info/login.php
-
Re: need help it mccodes v2 i dont know might have somthing to do with validation
-
my game keeps on logging people off when they are online
-
Re: updated login.php thanks
-
Re: updated login.php thanks man
-
Re: updated login.php preview http://silent-killaz.vinehost.com
-
I edited it a little hope u like it <?php session_start(); 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']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style> body { background-color: #000000; } .text { color: white; font-family: Tahoma; } .nav a:visited,a:active,a:link { color: white;text-decoration: red; } .nav a:hover { color: green;text-decoration: bold; } </style> <center><table width='800'><tr><td> <div id="main1" style=width:900px; height:550px; z-index:0; visibility: visible;"> <center><table width='800' height='550' class='main'><tr><td class='main'> <td class="center">[img=title.jpg] <div id="login" style=left:0px; right:0px; top:182px; bottom:283px; width:172px; height:135px; z-index:0; visibility: visible;"> <center><form action='authenticate.php' method='POST'> <font color=white>Username:</font>: <input type='text' name='username'> <font color=white>Password:</font>: <input type='password' name='password'> <input type='submit' value='Login' class='button'></form> <div id="main2" style= left:50px; right:500px; top:500px; bottom:60px; width:200px; height:500px; z-index:0; visibility: visible;" class="text"> <center>{$set['game_description']} <div id="nav" style=left:600px; right:62px; top:200px; bottom:500px; width:169px; height:500px; z-index:0; visibility: visible;" class="nav"> <table width='100%'><tr><td><center> [url="register.php"]Register[/url] [url="screen.php"]Screen Shots[/url] [url="rules.php"]Rules[/url] </div> </td></tr></table> </div> </td></tr></table> EOF; ?> [Wrapped in code tags] Nyna
-
Re: new login.php ITS MY FIRST 1 SO I DONT CARE WAT U SAY SNOB
-
Re: new login.php SILENT-KILLAZ.VINEHOST.COM PREVIEW
-
<?php session_start(); 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']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: red; scrollbar-base-color: #000000; scrollbar-arrow-color: #000000; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: red;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: red; } .table2 { } --> </style></head> <body onload="getme();"> <center> <table width="970" border="1" cellpadding="2" cellspacing="4" class="table3"> <tr> <td class="lgrad"></td> <td class="center">[img=title.jpg] EOF; $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>"); } $year=date('Y'); print "<h3>> {$set['game_name']} </h3> <fieldset> <legend> {$set['game_name']}</legend> {$set['game_description']} </fieldset> </td> <td> <fieldset> <table width=50%> <tr> <td width=100%> <legend>Login</legend>"; print "<form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> Password: <input type=password name=password> Remember me? <input type=\"radio\" value=\"ON\" name=\"save\">Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked>No <input type=submit value=Submit></form></fieldset></td></tr></table> <h3>[url='register.php']REGISTER NOW![/url]</h3> [i]<center>Powered by codes made by pain (© {$year}). Game Copyright ©{$year} {$set['pain & shuhel']}.</center>[/i]"; print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="4"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> </html> OUT; ?> (Placed in code tags)