Jump to content
MakeWebGames

pyro1423

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Everything posted by pyro1423

  1. Re: Login V2 i like yours very much but to a newb like me i would not really wanna play around with the CSS ect.. i would like something simple but i like your register and login !
  2. Re: Login V2 but to newbs this is alrite
  3. Re: Login V2 nah its alrite m8 i wanna learn php and not really kay other ppl's work (trying my best)
  4. This is my first attempt at making a login (be gratefull its free if it was not free than you could have a go) <?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-image: url([url]http://www.pimpbattles.com/background1.jpg[/url]); margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; 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: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#000000; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body onload="getme();"> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <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 "[b]<font color=white size=+1> {$set['game_name']} Log-In</font>[/b] <table width=67%> <tr> <td width=50%> </td> <td> <fieldset> <legend><font color=white size=+1.75>Login</font></legend>"; print "<form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"><font color=white size=+1.75>Username: </font><input type=text name=username> <font color=white size=+1.75> Password: </font><input type=password name=password> <font color=white size=+1.75> Remember me?</font> <input type=\"radio\" value=\"ON\" name=\"save\"><font color=white size=+1.75>Yes </font><input type=\"radio\" name=\"save\" value=\"OFF\" checked><font color=white size=+1.75>No</font> <input type=submit value=Submit></form></fieldset></td></tr></table> <h3>[url='register.php']<font color=white size=+1>REGISTER NOW!</font>[/url]</h3> [i]<center><font color=white size=+1.80> Pimp Battles ©{$year} {$set['game_owner']}.</font></center>[/i]"; print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> </html> OUT; ?> This is Straight from my game looking for opinions on maybe how to improve it not lloking for endless critisism looking for thumbs up and for idea on how to improve it This is my Login which i made no one please steal it Screenshot:
  5. Re: Just a heads up to all game owners! TC = aint shutting down any games only games they are shutting down = the ones on free servers because the owners of the servers dont want any problem and they dont nkow anythign about mccodes those that have their own servers = happy and nothing = happining to them
  6. Re: Free 2 - Gym oh yeh forgot about that thx
  7. Re: Free 2 - Gym another question how to make it that only donator's can see it on the mainmenu ??
  8. Re: Free 2 - Gym thx for that !!
  9. Re: Free 2 - Gym thx killah but where do i add that ??
  10. Re: Free 2 - Gym i want to turn it into a donator gym how to do that ?? because atm all member's can enter it could you tell me what to add where and what to post under ect.. please and thx in advance
  11. Re: usersonline.php np :0 btw i think it look sbetter on my site template ?? lol
  12. Re: usersonline.php thats the screenshot
  13. Re: usersonline.php Yes this is the best one THX !! i will be posting preview in a while
  14. Re: Whole Game Template also intrested in buying the whole combo
×
×
  • Create New...