Jump to content
MakeWebGames

Danny

Members
  • Posts

    302
  • Joined

  • Last visited

    Never

Everything posted by Danny

  1. Re: IP Banning tool [v1] nice mod!
  2. Re: new login.php I converted this to v1   <?php session_start(); 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 { font-family:Verdana;font-size:9pt;color: white; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body><table width='100%' border='1' bgcolor='#333333'> <tr> <th scope='col'>[img=title.JPG]</th> </tr> </table> <center> 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>"); } print "<style type='text/css'> <!-- #Layer2 { position:absolute; width:200px; height:115px; z-index:1; left: 354px; top: 356px; } #Layer6 { position:absolute; width:182px; height:202px; z-index:2; left: 10px; top: 204px; } #Layer7 { position:absolute; width:200px; height:115px; z-index:3; left: 350px; top: 201px; } #Layer8 { position:absolute; width:1081px; height:33px; z-index:4; left: 71px; top: 590px; } --> </style> <body bgcolor='#444444'> <div id='Layer7'> <table width='530' height='109' border='1' bgcolor='#666666'> <tr> <th scope='col'>Game nameLogin</th> </tr> <table width='530' border='1' bgcolor='#666666'> <td><div align='center'><form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'>Password: <input type=password name=password> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'> 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> </div></td> <td><div align='center'> </div></td> </tr> <tr> </tr> </table> </center></td> </tr> </table> </div> <div id='Layer6'> <table width='181' height='203' border='1' bgcolor='#333333'> <tr> <th height='39' scope='col'>Navigation</th> </tr> <tr> <td height='30'>[url='login.php']Login[/url]</td> </tr> <tr> <td height='28'>[url='register.php']Register[/url]</td> </tr> <tr> <td height='30'>[url='forgot_password.php']Lost Password?[/url]</td> </tr> <tr> <td height='30'>[url='#']Screenshots[/url]</td> </tr> <tr> <td height='30'>[url='#']Terms Of Service[/url]</td> </tr> </table> </div> <div id='Layer8'> <table width='98%' border='1' bgcolor='#333333'> <tr> <th scope='col'><center> | This Game Is Brought To You By <Your name here> ! | | Game Copyright ©2008 | </center>"; print "</body></html>"; ?>   Working Tested Now
  3. Re: would this be possible Yeap add this in the header.php
  4. I have lost ym copy of it and can some one please post it or pm me
  5. Re: Need Help With [V3] N00B!!!!! :mrgreen:
  6. Re: Game Ranks i havnt put that i have made it so its easyier for people to see if they only use this forum!
  7. Add this to global_funcs.php this MUST go at the bottom of the page function get_rank($stat, $mykey) { global $ir,$userid,$c; $q=mysql_query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.$mykey > $stat AND us.userid != $userid AND u.user_level != 0", $c) ; return mysql_result($q,0,0)+1; } function get_gamerank($level, $housevalue, $stats) { $tp=($level*$level) * 3000 + ($housevalue) + (($stats['strength']+$stats['agility']+$stats['guard']+$stats['labour']+$stats['IQ']) * 10); if ( $tp < 100000 ) { return "#1 First Newbie"; } else if ( $tp < 400000 ) { return "#2 Newbie"; } else if ( $tp < 1600000 ) { return "#3 Beginner"; } else if ( $tp < 6400000 ) { return "#4 Not Experienced"; } else if ( $tp < 25600000 ) { return "#5 Rookie"; } else if ( $tp < 102400000 ) { return "#6 Average"; } else if ( $tp < 409600000 ) { return "#7 Good"; } else if ( $tp < 819200000 ) { return "#8 Very Good"; } else if ( $tp < 3276800000 ) { return "#9 Greater Than Average"; } else if ( $tp < 13107200000 ) { return "#10 Experienced"; } else if ( $tp < 52428800000 ) { return "#11 Highly Experienced"; } else if ( $tp < 209715200000 ) { return "#12 Honoured"; } else if ( $tp < 838860800000 ) { return "#13 Highly Hounoured"; } else if ( $tp < 3355443200000 ) { return "#14 Respect King"; } else if ( $tp < 6655886400000 ) { return "#15 True Champion"; } } Add this to viewuser.php [b]Rank:[/b] ".get_gamerank($r['level'],$r['hPRICE'],$r)."   This was found on www.mccodes.com
  8. Re: any idea's well i would start at like maybe editing orginal codes to look nicer e.g header.php, Login.php, Register.php
  9. Re: Potential You can make mods easilyy if you need a better login or hit me up and ill make one if anyone ever uses this code.
  10. Re: FREE SERVER THAT WORKS WITH MCCODES i sell hosting soon waiting for dns to update add me on msn if u want it full cpanel x
  11. Re: [mccode] Register Page sum sql thing
  12. Re: Crons i will add me on msn!
  13. Re: I'm Stuck :S add me on msn [email protected] or aim me cfeynnad
  14. Re: Crons u put curl init add me on msn daniel0248'hotmail.com or aim me cfeynnad
  15. Re: [v1] Updated Statistics Page TRY   <?php /*->->->->->->->->->->->->->->->->->->->->->->->->->->- -> Created by Oxidati0n from Netcodes UK -> Another free mod collection -> FREE SHAREWARE CODE ->->->->->->->->->->->->->->->->->->->->->->->->->->-*/ include "globals.php"; /** *Converted By Danny6 **/ $q=$db->query("SELECT userid FROM users",$c); $membs=mysql_num_rows($q); $q=$db->query("SELECT userid FROM users WHERE bankmoney>-1",$c); $banks=mysql_num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Male'",$c); $male=mysql_num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Female'",$c); $fem=mysql_num_rows($q); $total=0; $q=$db->query("SELECT money FROM users",$c); while($r=mysql_fetch_array($q)) { $total+=$r['money']; } $avg=(int) ($total/$membs); $totalb=0; $q=$db->query("SELECT bankmoney FROM users WHERE bankmoney>-1",$c); while($r=mysql_fetch_array($q)) { $totalb+=$r['bankmoney']; } $avgb=(int) ($totalb/$banks); $totalc=0; $q=$db->query("SELECT crystals FROM users",$c); while($r=mysql_fetch_array($q)) { $totalc+=$r['crystals']; } $totali=0; $q=$db->query("SELECT inv_qty FROM inventory",$c); while($r=mysql_fetch_array($q)) { $totali+=$r['inv_qty']; } $avgc=(int) ($totalc/$membs); $q=$db->query("SELECT mail_id FROM mail",$c); $mail=mysql_num_rows($q); $q=$db->query("SELECT evID FROM events",$c); $events=mysql_num_rows($q); $nogender1=$db->query("SELECT * FROM users WHERE gender=''",$c); $nogender=mysql_num_rows($nogender1); $maleperc=round($male/$membs*100).'%'; $femaleperc=round($fem/$membs*100).'%'; $nogenderperc=round($nogender/$membs*100).'%'; $highestdonator1=$db->query("SELECT * FROM users ORDER BY donatordays DESC LIMIT 1;",$c); $hd=mysql_fetch_array($highestdonator1); echo "<h3>Statistics Department</h3> You walk through the statistics centre and stare at the boards. <table width='90%' style='border:groove; border-color:chocolate;'><tr><th>Users</th><th>Houses</th><th><th>Cities</th></tr> <tr><td>There are currently $membs members signed up $male ($maleperc) males, $fem ($femaleperc) females and $nogender ($nogenderperc) multigenders. There are ".mysql_num_rows($db->query("SELECT * FROM users WHERE donatordays>0",$c))." donators "; if(mysql_num_rows($highestdonator1) != 0) { echo "The highest current donator is [b][url='viewuser.php?u={$hd[']{$hd['username']}[/url][/b] "; } echo "</td> <td>This how many members have amount of each house "; $q=$db->query("SELECT * FROM houses ORDER BY hPRICE,hWILL ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows($db->query("SELECT * FROM users WHERE maxwill={$r['hWILL']}",$c)); echo "[b]".$r['hNAME']."[/b] - $q3 users have it "; } echo "..and ".mysql_num_rows($db->query("SELECT * FROM users WHERE maxwill<='100'",$c))." dont have a house."; echo "</td><td>"; $q=$db->query("SELECT * FROM cities ORDER BY cityname ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows($db->query("SELECT * FROM users WHERE location={$r['cityid']}",$c)); $hmhi=round($q3/$membs*100).'%'; echo "[b]".$r['cityname']."[/b] - $q3 users have it ({$hmhi}) "; } echo "</td></tr> <tr><th>Financial</th><th>Gangs</th><th>Mail/Events</th></tr> <tr><td> Amount of cash in circulation: $".money_formatter($total,"").". The average player has: $".money_formatter($avg,"").". Amount of cash in banks: $".money_formatter($totalb,"").". Amount of players with bank accounts: $banks The average player has in their bank accnt: $".money_formatter($avgb,"").". Amount of crystals in circulation: ".money_formatter($totalc,"").". The average player has: ".money_formatter($avgc,"")." crystals.</td> <td>"; $gangs=mysql_num_rows($db->query("SELECT gangID FROM gangs",$c)); $bg1=$db->query("SELECT * FROM gangs ORDER BY gangRESPECT DESC LIMIT 1",$c); $bg=mysql_fetch_array($bg1); echo "There are currently [b]$gangs[/b] in circulation. "; if(mysql_num_rows($bg1) != 0) { echo "The best gang is [b][url='gangs.php?action=view&ID={$bg[']{$bg['gangNAME']}[/url][/b] "; } echo "</td><td><u>Mails/Events</u> ".money_formatter($mail,"")." mails and ".money_formatter($events,"")." events have been sent.</td></tr> <tr><th>Items</th><th> </th><th> </th></tr> <tr><td>There are currently ".money_formatter($totali,"")." items in circulation.</td><td></td><td></td> </tr> </table> [url='http://netcodesuk.com/']Created by 'Netcodes UK'[/url] "; $h->endpage(); ?> 1
  16. Re: Crons Curl http://yougameurl.com/cron_w/e.php?code=loada crap here
  17. Re: [mccode] Register Page Listen To Advise!!! Buy1
  18. Re: [Free] [V1] Random Explore Mod Here U go ?php /*->->->->->->->->->->->->->->->->->->->->->->->->->->- -> A product of Isomerizer -> Copyright held 2007 by Isomerizer© ->->->->->->->->->->->->->->->->->->->->->->->->->->-*/ include "globals.php"; /** * Converted By Danny6 **/ if ($answer=="no" || $answer=="") { $answer=$_POST['answer']; echo "<form action='explorecity.php' method=POST> Do you wanna explore the deep city? (It will cost 8 energy) <select name='answer'> <option value='yes'>Yes</option> <option value='no'>No</option> </select> <input type='submit' value='Explore!'> </form>"; } if ($answer =="yes") { echo "<font size=3>You Explore the the city </font>"; $currentmoney=$ir['money']; $currentenergy=$ir['energy']; $rand=rand(1,10); $randd=rand(1,10); $moneyfound=$rand*$randd; $new=$currentmoney+$moneyfound; $energy=$currentenergy-1; if ($currentenergy=="0") { echo "You do not have enough energy to explore"; } else { echo "You search the deep jungle finding $$moneyfound.. <a href=explorecity.php>Explore More</a>"; $db->query("UPDATE users SET money=$new WHERE userid=$userid", $c); $db->query("UPDATE users SET energy=$energy WHERE userid=$userid", $c); } } $h->endpage(); ?> 1
  19. Re: Investment Mod didnt oxi make that allready
  20. Re: [mccode] Ajax chat script  
  21. Re: [mccode] Admin Modifcations good mod
  22. What Bluetooth headset do u own i own 2 one 4 the pc and one for mobile so 1st is Motorola S9( i use 4 pc) For Phone Aliph JawBone
  23. Re: What Cell Phone Do You Have? Motorola K1
  24. Re: When is it ok to lie? depends on situation realluI Lie to people that no me
  25. Re: User Level in the database i think :?
×
×
  • Create New...