Jump to content
MakeWebGames

CLANG

Members
  • Posts

    69
  • Joined

  • Last visited

    Never

Everything posted by CLANG

  1. Re: [mccodes v2] Free Login they load fast
  2. I created this free login for anyone who wants to use it. Screenshot below: login.php: <?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"); $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $q=$db->query("SELECT userid FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); $r1=$db->num_rows($q); print <<<EOF <html> <head> <title>Game Name</title> <style type="text/css">textarea,input,select { font-family: tahoma; color: #ffffff; font-weight: bold; color: #ffffff; background-image:url(baa.jpg); background-color: black;a border-width: 1; border-color: #ffffff; border-style: Solid; font-size: 13px; } body { background-color: black; } a:visited,a:active,a:link { color: black;text-decoration: underline; } a:hover {color: red;text-decoration: underline; } table,tr,td { font-family:Tahoma, Tahoma, Tahoma, Tahoma;font-size: 10pt; } img { border:none; } textarea { font-family:Tahoma;font-size:10pt;color: black; } table { font-family: Tahoma;font-size:10pt;color: black; background-repeat: no-repeat; } h5.desc_abs { position:absolute; left:510px; top:325px } h5.copyright_abs { position:absolute; left:420px; top:470px } span.highlight { background-color:#202020 } .ur{background: url(loginpass.png); width: 180px; height: 25px; border: none; padding-left: 3px; padding-right: 3px; padding-top: 5px;} .loginbutton{background: url(loginbutton.png); width: 70px; height: 25; padding-bottom: 2px; cursor: pointer; border: none;} img{border: none;} </style></head> <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> 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!/font>[/b]</body></html>"); } print " <center> <table width=805 height=231 border=0 cellpadding=0 cellspacing=0 align=center> <tr><td background='top.png' width='805'></td></tr> </table> <table width=805 height=363 border=0 cellpadding=0 cellspacing=0 align=center> <tr background='bottom.png' width='805' height='363' valign='top'><td width='103'></td><td width='110'><center> [b][url='login.php']Login[/url] [url='register.php']Register[/url] [url='#']Screenshots[/url] [url='#']Contact Us[/url][/b] </td><td width='20'></td> <td> <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"><center> Game Name is an MMORPG with lots of potential. There's no sign up fee and you can play for absolutely free. Register now to see if you can be the strongest and most respected player! Username <input class=ur type=text name=username> Password <input class=ur 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=LOGIN class=loginbutton ></form></td></tr></table> "; print <<<OUT </body></html> OUT; ?> Images: bottom.png top.png blank top.png (so you can add your own game name): loginpass.png loginbutton.png CAN BE SEEN WORKING AT: http://worldsgreatestsomething.com/temp ... /login.php Please comment and please give me a +1 if you like it or use it. Thanks. Oh and yh i still use tables lol ;)
  3. Re: Item display Looking good. Its a good idea that your making an item database. Are you going to be selling it?
  4. Re: Guess the next poster nope mdshare
  5. Re: New logo anyway its really good and fits perfectly with the layout.
  6. Re: New logo Isnt it a banner?
  7. Re: Login Page's $10 These are deffinitely not worth the amount. People I can make you better ones for cheaper
  8. Re: 2 images I created looks reallly goodddd!!!!! Keep it up. I wouldnt really give any improvements as they are perfect. JUST KEEP MAKING MORE!
  9. Re: [mccodes v2] Magic 8 Ball Thanks zero-affect lol. I was actually thinking that...no sql queries....so how can there be sql injections? However as I said before i know absoloutely NOTHING about security. I better read up about it in my free time lol. I dont usually make mods which is why im not so good. But there is no harm in trying and no harm in learning so I just want everyone to know that no matter what you make, some people will always critisize it even if they are wrong. Im afraid thats just life. But just think about the amount of people who actually like it...Most of the time the proportion is more. So whatever you make, just dont worry, and be happy! And by each step you take, you'll get better and better....until eventually you get to Nynas stage :-D
  10. Re: Polls [Request] Probably is. They always seem more fun to play
  11. Re: [mccodes v2] Magic 8 Ball   I understand what you mean.
  12. Re: Polls [Request] 5 crystals :O Your players are lucky :)
  13. Re: [mccodes v2] Magic 8 Ball   Stupid comments like this are what stop Scripters from progressing. regardless of what you think of it keep it to yourself..... +1 for the script from me though.. He's shown he can use initiative and invent ideas of his own.. Weldone :) Thanks a lot mate and yes your comment is really true. While influencing comments are always great, comments like 'Terrorist' always take the most effect which is why some scripters dont progress. Im happy with what I did and im sorry some people will find it useless..But if you find it useless why cant you just NOT use it and NOT comment. It would help everyone :) Thanks illusions ;)
  14. Re: [mccodes v2] Magic 8 Ball Im not good at securing :oops: Maybe you could secure it??
  15. CLANG

    War on Gaza

    Re: War on Gaza   FUN???? Dude your sick! How can wars be fun??? Innocents being killed. Children left parentless!!! And you think itd be fun to watch it all as a tv show? YOU ARE SICK
  16. Re: [mccodes v2] Magic 8 Ball Please comment on it and give me a +1 if you use it. Thanks
  17. I dont know if this was previously done but I was bored and just made it so I thought id share it. Its a VERY VERY simple mod I know so please dont comment on that! I am just giving it for free for people who might want to use it and cant be bothered making their own. Basically users type in a question and the magic 8 ball says a random answer. I have added 25 random answers but you can add more if you like. Any problems please let me know. But it works for me. magic8ball.php <?php include "globals.php"; $question=($_POST['question']); $ask=" <form action=magic8ball.php method=POST>Question: <input type=text name=question> <input type=submit value=Ask></form>"; print "<h3>Magic 8 Ball</h3> Welcome to the magic 8 ball. Here you can type in a question about anything and the magic 8 ball will reveal the answer to you. Please note: Yes and no questions are the ones which are best answered. "; if ($question=="") { print $ask; $h->endpage(); exit; } else { if ($question=="$question") { $answer=(int) rand(1,25); if($answer == 1) {$pic="No"; } if($answer == 2) {$pic="Yes"; } if($answer == 3) {$pic="I cant answer that"; } if($answer == 4) {$pic="Very unlikely"; } if($answer == 5) {$pic="That is not correct"; } if($answer == 6) {$pic="The stars say no"; } if($answer == 7) {$pic="Definitely not"; } if($answer == 8) {$pic="That is correct"; } if($answer == 9) {$pic="Excuse me?"; } if($answer == 10) {$pic="I do not understand"; } if($answer == 11) {$pic="Of course"; } if($answer == 12) {$pic="Is that so?"; } if($answer == 13) {$pic="Right...."; } if($answer == 14) {$pic="That is 100% true"; } if($answer == 15) {$pic="Dont ask me that"; } if($answer == 16) {$pic="Wouldnt you like to know"; } if($answer == 17) {$pic="The stars seem to be saying thats true"; } if($answer == 18) {$pic="No way!"; } if($answer == 19) {$pic="That depends really"; } if($answer == 20) {$pic="I will not answer that"; } if($answer == 21) {$pic="That is not up to me to decide"; } if($answer == 22) {$pic="Im not sure"; } if($answer == 23) {$pic="I refuse to answer"; } if($answer == 24) {$pic="Yup"; } if($answer == 25) {$pic="No way at all!"; } } print "<hr />[b]$question[/b] "; print " "; print " [b]"; print "<table width=174 height=156 border=0 cellpadding=0 cellspacing=0> <tr><td background='magic8ball.png'><center>$pic</td></tr></table> "; print "$ask"; $h->endpage(); exit; } $h->endpage(); ?> Magic 8 Ball Image (magic8ball.png) Screenshots: Took a few tries to get the comment on this :-D Enjoy :D
  18. Re: [mccode V2]Login, Register and Header - (Template)[$20.00] I just want to sell this template ASAP so if anyone has any reasonable prices please just pm me
  19. Re: [Other]Game login page[$9.99] Thanks :)
  20. Re: [mccode V2]Login, Register and Header - (Template)[$20.00] "as they were definitely going to buy." He said he didnt have money afterwards. And said someone was going to make him a free one.
  21. Re: [Other]Game login page[$9.99]   Brilliant Register :p Register? Oh the page is password protected Login Sorry but this page is password protected as I do not want other people viewing it just yet. Thanks Username: Password:
  22. Re: [mccode V2]Login, Register and Header - (Template)[$20.00] Ok thanks everyone ill make original layouts next time. BTW iamwicked gets 25% of the profits anyway so it doesnt really matter. Oh and the original buyer told me to make it like that and did actually like the layout as they were definitely going to buy.
  23. Re: [mccode V2]Login, Register and Header - (Template)[$20.00] IM CHANGING THE PRICE TO $15.00 NOW!!! Wont go lower than that though
  24. Re: Logged in error Your welcome :) Glad to have helped
  25. Re: Logged in error i think this has something to do with the newspaper. Im not 100% sure but this error may occur if there is no text in the newspaper. Just try adding random text and tell me if the errors gone.
×
×
  • Create New...