
3NG4G3
Members-
Posts
34 -
Joined
-
Last visited
Never
3NG4G3's Achievements
Newbie (1/14)
0
Reputation
-
Re: Criminal-District ill just back it up then close it down and put it under a new domain happy but in the first place how am i meant to know of all these i cant check every single game name out like 1000s before i name mine
-
Re: Criminal-District o I didntt know once i buy a domain any ways it going to be different `
-
Re: Ads nope i got this at bottom of my login page no ads just = rand(1, 5); // Choose a random number from 1 to 5 if(==1) { echo'AD1';//Ad1 }elseif(==2) { echo'AD2';//Ad2 }elseif(==3) { echo'AD3';//Ad3 }elseif(==4) { echo'AD4';//Ad4 }elseif(==5 { echo'AD5';//Ad5 }
-
Lookwww.criminal-district.co.cc Betaa sign up noww:) tell me some things tht u'd like
-
Re: Helping me learn :) i am going to start learning php aswell :) just the basic functions and that any good sites ?
-
Re: Ads ok say i put this on my login page how would i make it work beause i want it at bottom here my login page <?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() { function checkIncomingData($idata, $minsize, $maxsize) { if ( strlen($idata)<$minsize or strlen($idata)>$maxsize ) { return false; } else { return true; } } //make sure that nothing bad can be entered by the user (-->sql injection attack) function cleanIncomingData($idata) { $cleaned = trim($idata); $cleaned = mysql_real_escape_string($cleaned); return $cleaned; } 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-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); margin-top: 10px; margin-bottom: 10px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: yellow; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;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: white; } .table2 { } .lgrad { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-y; width:19px; } .linegrad { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-y; width:19px; } .dgrad { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-x; height:38px; } .dgradl { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); vertical-align:top; text-align:center; } .table { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); } .table3 { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); } .table td { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); height:22px; } .table3 td { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); } td .alt { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); height:22px; } td .h { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-x; font-weight: bold; } .table th { background-image: url("http://www.kingpinmedia.co.uk/kingpin%20images/media_pix/SGP/SGPLarge/City%20Skyline_Night.jpg"); background-repeat:repeat-x; font-weight: bold; } --> </style></head> <body onload="getme();"> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="center"></td> <td class="center">[img=CD.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 "<fieldset><legend>Game Info</legend><table width=100%><tr><td><fieldset><legend>Random User</legend>"; $gz=$db->query("SELECT userid FROM users"); $memgz=$db->num_rows($gz); print "<p align=left><u>[b]Random Player</u>[/b] "; $membgz = rand(1,$memgz); $rangz=$db->query("SELECT * FROM users WHERE userid=$membgz"); while($r=$db->fetch_row($rangz)) { print "Username: {$r['username']} [{$r['userid']}] Level: {$r['level']} Gender: {$r['gender']} "; } print "</fieldset></td><td><fieldset><legend>Top Users</legend>"; $fivgz=$db->query("SELECT * FROM users ORDER BY level DESC LIMIT 5"); print "<table cellspacing=0><tr><th>Username</th><th>Level</td></tr>"; while($r=$db->fetch_row($fivgz)) { print "<tr><td>{$r['username']} [{$r['userid']}]</td><td>{$r['level']}</td></tr>"; } print "</p></fieldset></table></td></tr></table>"; print "<h3>> {$set['game_name']} Log-In</h3> <table width=80%> <tr> <td width=50%> <fieldset> <legend>About {$set['game_name']}</legend> {$set['game_description']} </fieldset> </td> <td> <fieldset> <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']<font color='blue'>[b]REGISTER NOW BETA![/b]</font>[/url]</h3> [i]<center>Powered by codes made by Dabomstew (© {$year}). Game Copyright ©{$year} {$set['game_owner']}.</center>[/i]"; $fivgz=$db->query("SELECT * FROM users ORDER BY level DESC LIMIT 5"); while($r=$db->fetch_row($fivgz)) print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> </tr> </table> </td> </tr> </table> </body> </html> OUT; ?> Show me where to add it in thanks
-
Will some one post something so i can have like 5 ads at bottom of login page but as one that it auto changes not 5 different ads at a time v2 thanks
-
I have started my own game www.criminal-district.co.ccNice game well ive only just started it but ive added mysql injection security and things like that i want you to test my game for working bility and try mysql inject it for now once fully secure moving to proper domain :) thanks Moore
-
Looking for a In House Coder (30% Rev Share From Game)
3NG4G3 replied to spiky1471's topic in Engine Support
Re: Looking for a In House Coder (30% Rev Share From Game) you as the coder have to just do the basic game instalation and instal a couple mods (nothing to hard) remove the bugs - Market/Froums etc Then just install mods etc as we go - remove any bugs we find dont say nowt about layouts and shit thre matee -
Looking for a In House Coder (30% Rev Share From Game)
3NG4G3 replied to spiky1471's topic in Engine Support
Re: Looking for a In House Coder (30% Rev Share From Game) ill have this offer i could do this easy and im not even qualified ? -
Re: mccodes v2 help Nice this worked for me +1
-
Re: Little Error Ok here goes { die("You have already sent this user a proposal! [url='index.php']Back[/url] "); } else { $uq=$db->query("SELECT * FROM users WHERE userid=$_GET[iD]"); if($db->num_rows($uq) == 0) { die("I'm sorry a user doesn't exist with that ID!"); } if($_POST['reason'] and $_POST['user'] and $_POST['propose']) { $_POST['reason']=str_replace(row("<",">","/n"), row("",""," "), $_POST['reason']); $_POST['reason']=$_POST['reason']." [b]$ir[username] proposed to you with a [b]$_POST[propose][/b]!";
-
Re: Little Error Proposals`
-
if($db->num_rows($uq) == 0) { die("I'm sorry a user doesn't exist with that ID!"); } thats the line 23 ... Fatal error: Call to undefined function row() in /*********/*****.php on line 23
-
Re: Mccodes Lite help there will be possible some thing wrong with your function_edituser in admin.php have a look