Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,137
  • Joined

  • Last visited

  • Days Won

    35

Everything posted by Djkanna

  1. Looks nothing like your's KDawg08, goto Specsavers -.-
  2. Don't ask me try asking the original creator -.-
  3. I'd go with Magictallguy, Immortalthug, Zero.. You get the idea 'Someone who knows what their doing.' or you could attempt it yourself.. Use Google, Php.net and tutorial site and you'd be on your way.
  4. Used Google for the MD5 encryption thingy ma bob yeah (Google FTW!!) By the way what do I win??!?? xD
  5. Welcome back AbsentCrisis :) DJK
  6. <?php class headers { function startheaders() { global $ir, $set; echo <<<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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <link rel="icon" href="favicon.ico" type="x-icon" /> <link rel="shortcut icon" href="favicon.ico" type="x-icon" /> <style type="text/css"> <!-- body { background-color: {$set['bkcolor']}; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:{$set['linksize']}px;color: {$set['nonlinkcolor']}; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: {$set['linkcolor']};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: {$set['textboxcolor']}; } .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:{$set['bkcolor1']}; vertical-align:top; text-align:center; } .table { background-color:{$set['tableborder']}; } .table3 { background-color:#000000; } .table td { background-color:{$set['tablebackground']}; height:22px; } .table3 td { background-color:#ffffff; } td .alt { background-color:#cccccc; 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> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $set, $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ($ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); //$hnperc=(int) ($ir['hunger']/$ir['maxhunger']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; //$hnopp=100-$hnperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color={$ir['usernamecolor']}>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $set, $staffpage; $bgcolor = '#ffffff'; print <<<OUT [img={$set['headerpic']}] <font color='{$set['todaymessagecolor']}' size='{$set['todaymessagesize']}'> <marquee>News: {$set['todaymessage']}</marquee> </font> <table width="100%" border="1" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="{$set['menucolor']}" valign="top"> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Level:[/b] {$ir['level']} [b]Money:[/b] {$fm} [b]Bank:[/b] \${$ir['bankmoney']} [b]Cyber Bank:[/b] \${$ir['cybermoney']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]] <hr /> [b]{$set['energyname']}:[/b] {$enperc}% <img src=greenbar.gif width=$enperc height=10><img src=redbar.gif width=$enopp height=10> [b]{$set['willname']}:[/b] {$wiperc}% <img src=bluebar.gif width=$wiperc height=10><img src=redbar.gif width=$wiopp height=10> [b]{$set['bravename']}:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=yellowbar.gif width=$brperc height=10><img src=redbar.gif width=$bropp height=10> [b]{$set['expname']}:[/b] {$experc}% <img src=bluebar.gif width=$experc height=10><img src=redbar.gif width=$exopp height=10> [b]{$set['healthname']}:[/b] {$hpperc}% <img src=greenbar.gif width=$hpperc height=10><img src=redbar.gif width=$hpopp height=10> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = ''; print '</td><td width="2" class="linegrad" bgcolor="$bgcolor"></td><td width="80%" bgcolor="$bgcolor" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/url] -|- [url='voting.php']Vote for {$set['game_name']} Now[/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></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> {$db->num_queries} queries on this page. [url='http://www.darlek-wars.com/home.html']Game Copyright 2010, Peterisgb[/url]</body> </html> OUT; } } ?>
  7. Correct me if I'm wrong but Flash in website's was more popular in the 90's now it's just plain...
  8. Yup :L
  9. Reminds me of Carmageddon now that's a good game. Wiki-Carmageddon
  10. I'll second that one. X(
  11. Whoops, forgot that one :)
  12. Removing all forms of HTML, Javascript etc from user submitted forms can help with security (won't do it all by it's self though). And say you want to allow a few HTML tags such as you could always define a whitelist. Functions that can be used to improve security to my knowledge Preg_replace() Mysql_real_escape_string() Htmlspecialchars() Htmlentities() Html_entity_decode() Stripslashes() ^ ^ Obviously there is a lot more that's just to name a few that will help you :)
  13. HTML, CSS. Remove all the styling from the original login (tables ect) and add your own created styling. The way I usually go about it is create a folder stick it somewhere on your desktop create a HTML document and a CSS document write the markup and open the index in a browser of your choice if it works nicely without a hitch then take the markup of your HTML document and place it in the appropiate places of your login. *Best bet if you don't know HTML and CSS to learn it first it can help :P* If you cannot manage to do it there is always the option to hire someone to do it, it shouldn't cost much for a simple login intergration depending on what's needed. Good luck. DJK
  14. Nah just in generalisation for everybody, out of all the genre's of games you can make a war genre of game is the hardest to achieve :)
  15. No I wasn't implying that, I was implying that it is difficult to design (war type anything) without troubles :)
  16. I was going to start my own army style game but it's extremely difficult to design for it without getting up to your ears in copyrights or obviously paying out a fortune to places like SOSFactory to get your own custom army type soilders.. My tale over -.- xD Good luck ;)
  17. Djkanna

    No I'S

    Um you made a good reply there? Ever thought to use other words that sound the same for example, 'there' for the other word. (look ma! We won.)
  18. crimgame
  19. He's a tad crazy tis all. Lol, and Karlos well I have no idea he just went on the list anyway lol.
  20. Hehe I've left the Install there myself, I've also been hacked and what I've been on CE(MWG) for around a year and a half, I came to this site later than others :P I've also been called a n00b, newb, newbie. And the funny thing is I've passed most of the people that called me n00bs and now if I felt like it I could call them n00bs. People I know who can do security: Eternal, Crazy T, Magictallguy, Karlos. Really I'm not one to talk as I left this site a couple of months after I joined it's only recently that I've come back. And it's still pretty much the same people this time their not n00bs anymore their up there with the top people :P Anyhow it's really your choice as to what you do :) DJK
  21. your prize is knowledge ROT13 Thanks :P
  22. I cannot honestly remember (talk to me on Msn if you don't get it sorted) :)
  23. "Line 31 - $_GET['buy'])) " - That would be where your error is coming from
  24. Your getting better Ben.
  25. *Bangs head on keyboard* Post what you've got and what you want adding we may be able to help you :)
×
×
  • Create New...