
Delete-please
Members-
Posts
225 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Delete-please
-
layout problem : Hi there.. basically i have a problem with my laout i have been coding on wamp. Every time the page gets bigger the menu moves down the screen can anyone help with this. thanks in advanced
-
Hello. Its been a while since i have used these forums so i thought i woud release something for you all. over write your login.php with: <?php /*----------------------------------------------------- -- Template 1 loginpage -- Coded by Yubi for The Criminal existence community -- Do not remove copy rights or attempt to sell this login page. -----------------------------------------------------*/ 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> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <link rel="stylesheet" href="loginstyle.css" type="text/css" media="all" /> </head> <body onload="getme();"> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td colspan='3'><center>[img=title.jpg]</td> 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 "<div align='center'> <table width='800' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='center' valign='top'> </td> <td align='center' valign='top'><table width='800' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='400' align='center' valign='middle'> </td> </tr> </table></td> </tr> <tr> <td></td> <td height='5'></td> </tr> <tr> <td align='center' valign='top'> </td> <td align='center' valign='top'><table width='800' border='1' bordercolordark='#470306' bordercolorlight='#79060C' cellspacing='0' cellpadding='0'> <tr> <td height='20' align='center' valign='middle' bgcolor='#000000'>{$set['game_name']}</td> </tr> </table></td> </tr> <tr> <td></td> <td height='5'></td> </tr> <tr> <td align='center' valign='top'> </td> <td align='center' valign='top'><table width='800' border='0' bordercolordark='#470306' bordercolorlight='#79060C' cellspacing='0' cellpadding='0'> <tr> <td height='128'><table width='796' border='0' cellspacing='0' cellpadding='0'> <tr> <td height='3' colspan='3' bgcolor='#000000'></td> </tr> <tr> <td width='4' height='69' bgcolor='#141414'></td> <td width='392' align='center' valign='middle' bgcolor='#141414'> {$set['game_name']} {$set['game_description']} </p> </td> <td width='400' bgcolor='#000000'><table width='400' border='0' cellspacing='0' cellpadding='0'> <form method='post' name='login_f' action='authenticate.php' method='post' name='login' onsubmit='return saveme();'> <tr> <td height='2' colspan='3'></td> </tr> <tr> <td width='18'></td> <td align='right'>[b]Username[/b] <input type='text' name='username' size='20' maxsize='20'> </td> <td width='8'></td> </tr> <tr> <td height='2' colspan='3'></td> </tr> <tr> <td width='18'></td> <td align='right'>[b]Password[/b] <input type='password' name='password' size='20' maxsize='20'> </td> <td width='8'></td> </tr> <tr> <td height='2' colspan='3'></td> </tr> <tr> <td width='18'></td> <td align='right'> <input type='submit' name='submit' value='Login'></td> <td width='8'></td> </tr> <tr> <td height='2' colspan='3'></td> </tr> <tr> <td width='18'></td> <th width=374 height=45 align='right'>[url='register.php']<span>Register</span>[/url]</th> <input type='hidden' name='do' value='login'> <td width='8'></td> </tr> <tr> <td height='2' colspan='3'></td> </tr> <tr> <td colspan='3' align='center'></td> </tr> <tr> <td height='2' colspan='3'></td> </tr> </form> </table></td> </tr> <tr> <td height='3' colspan='3' bgcolor='#000000'></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td></td> <td height='5'></td> </tr> <tr> <td align='center' valign='top'> </td> <td align='center' valign='top'><table width='800' border='1' bordercolordark='#470306' bordercolorlight='#79060C' cellspacing='0' cellpadding='0'> <tr> <td height='20' align='center' valign='middle' bgcolor='#000000'>{$set['game_name']} News</td> </tr> </table></td> </tr> <tr> <td></td> <td height='11'></td> </tr> <tr> <td align='center' valign='top'> </td> <td height='94' align='center' valign='top' bordercolorlight='#79060C' bordercolordark='#470306' bgcolor='#141414'> [b]{$set['game_news']}[/b] </span></p> </td> </tr> <tr> <td align='center' valign='top'> </td> <td align='center' valign='top'><table width='800' border='1' bordercolordark='#470306' bordercolorlight='#79060C' cellspacing='0' cellpadding='0'> <tr> <td width='800' height='20' align='center' valign='top' bgcolor='#000000'> All rights reserved {$set['game_name']} Copyrights 2008 [i]Owned by {$set['game_owner']} Login Page coded by Yubi (c) Mike Gaming Designs.[/i]</span></p> </div> </td> </tr> </table></td> </tr> </table> </div>"; OUT; ?> Now create a file called loginstyle.css and put this inside body,td,th { font-family: Times New Roman, Times, serif; font-size: 14px; color: #CCCCCC; } body { background-color: #000000; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } a { font-family: Times New Roman, Times, serif; font-size: 14px; color: #990000; font-weight: bold; } a:link { text-decoration: none; color: #B97C00; } a:visited { text-decoration: none; color: #B97C00; } a:hover { text-decoration: none; color: #c1c1c1; } a:active { text-decoration: none; color: #B97C00; } Run This SQL INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( '', 'game_news', 'Welcome' ); Now find Game Description: <textarea rows='7' cols='50' name='game_description'>{$set['game_description']}</textarea> In staff.php under add Game news: <textarea rows='7' cols='50' name='game_news'>{$set['game_news']}</textarea> And thats the login page done
-
My course days are going into minus does anyone know the fix.. here is my cron_day.php file : <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } 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; $db->query("UPDATE fedjail set fed_days=fed_days-1"); $q=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['fed_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET fedjail=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM fedjail WHERE fed_days=0"); $db->query("UPDATE users SET smuggling=csmuggling+10 WHERE csmuggling > 0"); $db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); $db->query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0"); $db->query("UPDATE users SET donatordays=donatordays-1 WHERE donatordays > 0"); $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET cybermoney=cybermoney+(cybermoney/100*7) where cybermoney>0"); $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd); $userid=$r['userid']; $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); ?> Thanks in advance
-
Re: Things A Goverment Official Wont Say.... Dammit george get out of the kitchen you fat bastered
-
Re: The last person to posts wins Lol i agree :P
-
Re: The last person to posts wins killah your one to talk you post like 30 times a day :) i win btw
-
:roll: i win :D
-
Re: Guess the next poster Nah sim next :P
-
[mccode v2] A better multi alerter for transfers.
Delete-please replied to Delete-please's topic in Free Modifications
Re: V2 A better multi alerter for transfers. Arse licker :lol: if it wasnt for me killah wouldnt of even "fixed" the mod not that there was anything wrong with it :) -
Login/register & header conversion help needed!
Delete-please replied to Delete-please's topic in General Discussion
Re: Login/register & header conversion help needed! very constructive :lol: -
Hello.. I was wondering if any one could tell me how to convert a v1 header to v2 & a v2 header to v1... The login and register would also be much appreciated but its mainly the header i am after.. If anyone can help me out would be fantastic thanks in advance. NOTE: i know there are conversion tutorials in the forum but the headers and register pages are not the same..
-
Re: Guess the next poster 1 post 50 days are you mad :lol: nice guess... danger boy next
-
[mccode v2] A better multi alerter for transfers.
Delete-please replied to Delete-please's topic in Free Modifications
Re: V2 A better multi alerter for transfers. Yw :-D -
[mccode v2] A better multi alerter for transfers.
Delete-please replied to Delete-please's topic in Free Modifications
Re: V2 A better multi alerter for transfers. Thanks in case you didnt know im a noob so yea... also wasn't you leaving because everyone isnt as good as you as your high and mighty?? :wink: -
Re: [mccode]Multi alert keep thinking that mate one day you may fool your self and others :lol:
-
[mccode v2] A better multi alerter for transfers.
Delete-please posted a topic in Free Modifications
Ok seeings as people complained about my previous multi alerter i made a better one NOTE: this has been tested and works perfectly find print "Haha, what does sending money to yourself do anyway?"; } else { $_GET['ID'] = abs((int) $_GET['ID']); in all the send files underneath add $it=$db->query("SELECT lastip FROM users WHERE userid={$_GET['ID']}"); $rm=$db->fetch_row($m); if($rm['lastip'] == $ir['lastip']) { print "An admin has been alerted that you tried to send something to a person on the same IP as you [url='index.php']> Back[/url]"; event_add(1,"<font color=red>".$ir['username']."</font> [b] tried to send cash to someone on the same Ip go check it",$c); $h->endpage(); exit; } Tested works.. -
Re: Mod Ideas i meant to click modify -.-
-
Re: [mccode]Multi alert only thing you have proven there is that you have nothing better to do with your time because your a saddo :-D
-
Re: [mccode]Multi alert dam killah i thought you was smart this has been tested and it only sends one event Every login not every page i tested it several times.
-
Re: Guess the next poster :wink: nice guess killah next
-
Re: Mod Ideas Mod ideas about time :P ok here is my idea... although i am a complete noob so i could not code this from scratch as when it comes to event_add functions im like god damit and then i kick my computer... anyways i wanted to recode the send files in mccodes like sendcash.php ect... My idea was that you can send a message with the cash like torncity please comment and maybe post :P
-
[mccode] Simple Date change web 2.0 style
Delete-please replied to mdshare's topic in Free Modifications
Re: [mccode] Simple Date change web 2.0 style no im being serious its a nice update -
[mccode] Simple Date change web 2.0 style
Delete-please replied to mdshare's topic in Free Modifications
Re: [mccode] Simple Date change web 2.0 style sweet mod :evil: :-D keep up the good work -
Re: Guess the next poster nope killah next