
Haunted Dawg
Members-
Posts
2,933 -
Joined
-
Last visited
Never -
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Haunted Dawg
-
In Need of the BEST mods - unique a plus -
Haunted Dawg replied to Cain01's topic in General Discussion
Re: In Need of the BEST mods - unique a plus - LostOne i think you read some thing wrong. From the text he said So i think he is using a mafia script. I dont re call mccodes using round's and such. -
Re: Header.php [New/More Imrpoved] Well i have read through this post and seriously makes me laugh. You all say you are so good at coding... But reading through your language... i would not even go there. Now i think you should know how to spell to do coding right? or all your codes are going to be a mess. I there for only use some slang that is mainly used and is at least understandable. Thats about basicly all the slang i use.
-
Re: advanced warning system???? Well i dont know i read this one forum and it says that quotation marks are needed in some occasions, with numbers. Well since you said it was not needed, i went and did a little test. By using some thing like $fetch_data = mysql_query("SELECT * FROM users WHERE location={$r['location']}") or die(mysql_error()); It gave me an error. So i tried this $fetch_data = mysql_query("SELECT * FROM users WHERE location=$r['location']") or die(mysql_error()); Gave me another error. So eventualy i just went with my code $fetch_data = mysql_query("SELECT * FROM users WHERE location='".$r['location']."'") or die(mysql_error()); And it never gave me no error. Maybe on your machine quotation marks are not needed or your php version or what so ever, but on my host it is required in some occasions.
-
Re: advanced warning system???? Nyna remmember quite a few weeks ago you said you do not require quotation's for numbers? Well recently i discovered in some places you need them. $fetch_data = mysql_query("SELECT * FROM warnings WHERE user='".$r['userid']."'") or die(mysql_error()); echo '<font color="red">[b]Warnings:[/b] '.mysql_num_rows($fetch_data).'</font>'; if($ir['user_level'] > 1) { echo ' ||[url="warning.php?action=index&user='.$r['userid'].'"]Managae[/url]]'; }
-
Re: Hosting for Mccodes MD www.killah-city.com has been on byethost.com for more than 5 months. I have not been shut down not once for running crons on there server.
-
Re: Hosting for Mccodes Like i said go with www.fasterhostz.com or byethost.com
-
Re: Hosting for Mccodes just make all the crons into one file. then make each one into actions. then per cron you just use curl http://www.game.com/cron_all.php?code=blah&act=daily curl http://www.game.com/cron_all.php?code=blah&act=minute curl http://www.game.com/cron_all.php?code=blah&act=hour curl http://www.game.com/cron_all.php?code=blah&act=5min Just go with a host that you know where to use crons. I would sugest the 2 i put up there they both support crons and have no problem with running them. Why get rid of them or put them on another server or what so ever? & nyna its just a little way.
-
Re: Header.php [New/More Imrpoved] I was'nt expecting it to work. I was just removing some of my code.
-
Re: Hosting for Mccodes Here: www.fasterhostz.com != good host www.byethost.com != good host Only ones i trust :D
-
Re: Header.php [New/More Imrpoved] Updated one: <?php // Check $_POST Number function SecureNumPost($key) { if(isset($_POST[$key]) && is_string($_POST[$key]) && preg_match("`^\d+$`ims", $_POST[$key])) { $value = @intval($_POST[$key]); return $value; } else { SecureError($_POST[$key]); } } // Check $_GET Number function SecureNumGet($key) { if(isset($_GET[$key]) && is_string($_GET[$key]) && preg_match("`^\d+$`ims", $_GET[$key])) { $value = @intval($_GET[$key]); return $value; } else { SecureError($_GET[$key]); } } //Check $_POST Text function SecureTextPost($key) { if(isset($_POST[$key]) && is_string($_POST[$key])) { if(get_magic_quotes_gpc()) { $value = stripslashes($_POST[$key]); } else { $value = $_POST[$key]; } return $value; } else { SecureError($_POST[$key]); } } //Check $_GET Text function SecureTextGet($key) { if(isset($_GET[$key]) && is_string($_GET[$key])) { if(get_magic_quotes_gpc()) { $value = stripslashes($_GET[$key]); } else { $value = $_GET[$key]; } return $value; } else { SecureError($_GET[$key]); } } //Deal with errors from security checks function SecureError($value) { die("You have tried passing invalid information through our system."); } // Checks to see if the ID field in the URL is numeric value if(eregi("[^0-9]", $_GET[iD])) { // Selects from the cheater table to see if they have a previous record $select_data = mysql_query("SELECT * FROM cheater_catcher WHERE cc_userid = ".$ir[userid].""); // If they dont have a previous record, Create one if(!mysql_num_rows($select_data)) { mysql_query("INSERT INTO `cheater_catcher` VALUES ('', '".$ir[userid]."', '1'"); } // Else else { // Update the cheater catcher to add 1 to their existing count $data = mysql_fetch_object($select_data); mysql_query("UPDATE `cheater_catcher` SET cc_count = cc_count + 1 WHERE cc_userid = '".$ir[userid]."'"); // Now we check what their count is, If its above or equal to 3, Fed the scumbag =P if($data->cc_count >= 3) { mysql_query("UPDATE users SET fedjail = '1' WHERE userid = '".$ir[userid]."'"); mysql_query("INSERT INTO `fedjail` VALUES ('', '".$ir[userid]."', '300', '1', 'Trying to exploit the game')"); } } // Echo some result, Kill the page and finish the function echo "Quit trying to abuse you scumbag"; $h->endpage(); exit; } class headers { function startheaders() { global $ir, $set; //FFFFFF //{$ir['tcolor']} 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> <link rel="shortcut icon" href="favicon2.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Warriors Reign - Only The Strong Survive</title> <style type="text/css"> <!-- body { background-image:url(blood2.png); margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color:silver; scrollbar-base-color: #000000; scrollbar-arrow-color: #3f3f3f; scrollbar-DarkShadow-Color: #161616; } a:visited,a:active,a:hover,a:link { color:red;text-decoration: none; } table,tr,td { font-family:helvetica, arial narrow, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color:red; } .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; border-width:1; border-color:#101010; border-style:solid; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } .table3 { background-color:#000000; } .table td { background-color:#000000; border-width:1; border-color:#101010; border-style:solid; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } td .h { background-image:url(blood2.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } .textbox { font-family: Tahoma; color:#99CC00; font-weight:bold; color:white; background-image:url(baa.jpg); background-color:#000000; border-width:1; border-color:#FFFFFF; border-style:solid; font-size: 13px; } --> </style> </head> <body> <center> <table width="100%" border="1" cellpadding="0" cellspacing="0" class="table"> <tr> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if($ir['stelth'] == 0) { $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); } if(!$ir['email']) { global $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); $power=(int) ($ir['power']/$ir['max_power']*100); $minexp=(int) ($ir['mine_exp']/$ir['mine_needed']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $pow=100-$power; $minex=100-$minexp; $d=""; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['viewforum'] = abs(@intval($_GET['viewforum'])); $_GET['viewtopic'] = abs(@intval($_GET['viewtopic'])); $u=$ir['username']; $gn=""; global $staffpage; $bgcolor = '000000'; $fbm=money_formatter($ir['bankmoney']); $fcm=money_formatter($ir['cybermoney']); $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = '000000'; print <<<OUT <table border=1 class=table bgcolor=#000000> OUT; print " </td> <td align=left WIDTH=56%> <div align=left>"; if($ir['user_level']>1) { if($ir['user_level'] == 2) { $userl="Owner"; } else if ($ir['user_level'] == 3) { $userl="Beta Tester"; } else {$userl="Unknown"; } $staff="[img=staff.gif]"; } if($ir['donatordays']) { $d="[img=donator.gif]"; } $gender="[img={$ir[]"; if($ir['course']) { $cc=$db->query("SELECT crNAME FROM courses WHERE crID={$ir['course']}"); $cc=$db->fetch_row($cc); $course="[img=course.gif]"; } if($ir['job']) { $jj=$db->query("SELECT jNAME FROM jobs WHERE jID={$ir['job']}"); $jj=$db->fetch_row($jj); $jr=$db->query("SELECT jrNAME FROM jobranks WHERE jrID={$ir['jobrank']}"); $jr=$db->fetch_row($jr); $job="[img=job.gif]"; } print "$staff $d $gender $course $job $investment $stds "; print "[url='viewuser.php?u={$ir['][b]Name:[/b] $gn{$u} [{$ir['userid']}][/url] "; print "[b]Money:[/b] {$fm} "; print "[b]Diamonds:[/b] {$ir['diamonds']}</a> "; if($ir['bankmoney']>-1) { print "[url='bank.php'][b]Bank:[/b] {$fbm}[/url] "; } if($ir['cybermoney']>-1) { print "<a href='cyberbank.php'[b]C-Bank:[/b] {$fcm}</a> "; } print "[b]Level:[/b] {$ir['level']} "; print "[b]Steps:[/b] {$ir['turns']} "; print "[b]Crystals:[/b] {$ir['crystals']} <a href=crystaltemple.php>[use]</a> "; print "[[url='gameroom.php']WR Games Room[/url]] </td><td>"; if($ir['stds']) { print "[img=title.jpg]</a> "; } elseif($ir['hospital']) { print "[url='index.php'][img=http://img512.imageshack.us/img512/9428/1234et7.png][/url] "; } elseif($ir['jail']) { print "[url='index.php'][img=http://img512.imageshack.us/img512/9428/1234et7.png][/url] "; } else { print "[url='index.php'][img=title.jpg][/url] "; } print " </td><td align=center WIDTH=45%> <div align=right> [b]Energy:[/b] {$enperc}% <img src=barblue.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=barblue.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=barblue.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=barblue.gif width=$experc height=10><img src=barred.gif width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=barblue.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10> [b]Power:[/b] {$ir['power']}/{$ir['max_power']} <img src=barblue.gif width=$power height=10><img src=barred.gif width=$pow height=10> [b]Mine Exp:[/b] {$minexp}% <img src=barblue.gif width=$minexp height=10><img src=barred.gif width=$minex height=10> </div> </td> <table cellspacing='1' border='1' class='table' width=100%> [b]<tr>"; if($ir['donatordays']) { print "<td class='h' width=50%><center>[url='donator.php']Thank You For Your Donation[/url]</center></td>"; } else { print "<td class='h' width=50%><center>[url='donator.php']Donate to {$set['game_name']} now for game benefits![/url]</center></td>"; } print " <td class='h'><center>[url='voting.php']Vote For {$set['game_name']} On Various Gaming Sites And Be Rewarded![/url]</center></td></tr> <td class='h' width=100% colspan=2><center><font color=red>{$set['announcement']}</font></center></td></tr> [/b] </table> "; echo <<<EOF <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="18%" bgcolor="#$bgcolor" valign="top"> EOF; 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 = '000000'; print ' </td><td width="100%" bgcolor="#'.$bgcolor.'" valign="top">'; print " <td width='1%' valign='top'>"; include "mainmenu2.php"; print " </td> <tr><td colspan=3> "; if($ir['user_level']==2) { print "MySQL Queries: {$db->num_queries} "; $result = (microtime(true) - (int) LOAD_START); print "Page Load Time $result second(s)"; } print <<<OUT </body> </html></table></table></table></table></table> OUT; die(""); print " <td width='1%' valign='top'>"; include "mainmenu2.php"; print " </td> <tr><td colspan=3> "; if($ir['user_level']==2) { print "MySQL Queries: {$db->num_queries} "; $result = (microtime(true) - (int) LOAD_START); print "Page Load Time $result second(s)"; } print <<<OUT </body> </html></table></table></table></table></table> OUT; die(""); } print " <td width='1%' valign='top'>"; include "mainmenu2.php"; print " </td> <tr><td colspan=3> "; if($ir['user_level']==2) { print "MySQL Queries: {$db->num_queries} "; $result = (microtime(true) - (int) LOAD_START); print "Page Load Time $result second(s)"; } print <<<OUT </body> </html></table></table></table></table></table> OUT; die(""); } } if($ir['hospital']) { print " [b]<font color='orange'>[b]Notice: You are currently in the Hospital for {$ir['hospital']} minutes.</font>[/b] "; } if($ir['jail']) { print " [b]<font color='orange'>[b]Notice: You are currently in the Jail for {$ir['jail']} minutes.</font>[/b] "; } if($ir['std']) { print " [b]<font color='orange'>[b]Notice: You currently have a Disease!</font>[/b] "; } print "<center>"; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = '000000'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db,$ir; print " <td width='1%' valign='top'>"; include "mainmenu2.php"; print " </td> <tr><td colspan=3> <center>Product & Licence Of TDP Gaming Empire All Rights Reserved "; if($ir['user_level']==2) { print "MySQL Queries: {$db->num_queries} "; $result = (microtime(true) - (int) LOAD_START); print "Page Load Time $result second(s)"; } print <<<OUT </body> </html></table></table></table></table></table> OUT; } } /* */ ?>
-
Re: [v2]Attack Ban[v2] You have not eliminated it. If your clever enough you can just type in the url like this http://www.thegame.com/attack.php?ID=1 The best way i suggest is like what Ragnar said:
-
Re: crons? Well first of all this has got nothing to do with your cpanel, nor your game. Its your host's crontab folder aint allowing it to work.
-
Re: Guess the next poster Nope klikoka
-
Re: Guess the next poster Yes klikoka NEXT
-
Re: 3 Word Game life while he
-
Re: 3 Word Game he died trying
-
Re: 3 Word Game a gun to
-
Re: Guess the next poster No klikoka
-
Re: 3 Word Game gun so he
-
Re: 3 Word Game he got shot
-
Re: 3 Word Game bed with his
-
Re: Guess the next poster No klikoka
-
Re: 3 Word Game and shot the
-
Re: 3 Word Game and so he
-
Re: 3 Word Game he did not