inferno564 Posted May 14, 2009 Posted May 14, 2009 i dont know how or why, but my gang events and events dont work it just says ether (o) or (a) nothing else, but there is no errors or sighs to what it is. anyone have a clue how to fix this? here is some pics Quote
inferno564 Posted May 14, 2009 Author Posted May 14, 2009 Re: (help) events problem+gang events not only that now mails are doing it to ex:word is test but is changed to teet its very odd Quote
inferno564 Posted May 14, 2009 Author Posted May 14, 2009 Re: (help) events problem+gang events before AFTER Quote
inferno564 Posted May 14, 2009 Author Posted May 14, 2009 Re: (help) events problem+gang events is there any way to stop this at all? :-( Quote
Haunted Dawg Posted May 14, 2009 Posted May 14, 2009 Re: (help) events problem+gang events It seem's like you've installed something in one of the main file's that's striping out certain letter's. Only way is if we see your code. Quote
inferno564 Posted May 14, 2009 Author Posted May 14, 2009 Re: (help) events problem+gang events ok i have many mods so replacing might be a problem header.php <?php /** * Layout made by: Shaved92bravada Idea came from another post on CE * Rest of code is just standard V2 MCcodes * Made as a free mod so it is not to be sold. * This header.php is not secure by any means * Your own mods need to be done to secure it or search the forums. */ header('X-UA-Compatible: IE=EmulateIE7'); class headers { function startheaders() { global $db,$c,$userid,$ir; $back="#5A5A5A"; //Define the background colour of your site here. $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); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); 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" /> <html> <head> <title>{$set['game_name']}</title> <style> body { background: #2D2D2D; font-family:Verdana, fantasy; font-size:13px; color: black; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: black;text-decoration: none; } a:hover { color: red;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype; color: black;font-size: 12px; } .button { font-family:Verdana, fantasy; font-size:13; color:#FFFFFF; background-color: red; } input,textarea,dropdown{ font-family:Verdana, fantasy; font-size:13; color: #ffffff; background-color: #000000; border: 1px solid; } textarea,.submit input{ font-family:Verdana, fantasy; font-size:13; color:#ffffff; background-color: black; } .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; } .menu th { font-font-size: 12px; color: silver; background-image:url(th.png); background-repeat:repeat-x; font-weight: bold; background-color: #4B4B4B; } .stats td { font-font-size: 12px; color: black; font-weight: bold; } .menu td { font-font-size: 12px; color: black; text-align: center; background-image:url(tdover.png); background-repeat:repeat-x; font-weight: bold; background-color: #4B4B4B; } .menu td:hover{ color: black; background-image:url(td.png); </style> </head><body> <center><table width=1018 border=0 cellpadding=0 cellspacing=0><tr><td background="top.png" height=223 width=1018> <table width=1000 height="159"><td width=5></td></td> <td align='left' width="688" height='147' valign="top"> <div id="header"> <h1>[img=/images/banner.png]</h1> </div> <td><center><font color=white><center> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']<font color=red>Emergency Logout</font>[/url]]</font> <font color=green>[[url='cyberbank.php']<font color=yellow>Cyber Bank[/url]</font><font color=green>]</font> </center></td></tr></table> <table width=1000 class='stats'><tr><td width=5></td> <td><font color=white>|</td><td>[b]<font color=white>Energy:</font>[/b] <font color=white>{$enperc}% [url='crystaltemple.php?spend=refill'][size="1"]</font><font color=yellow>[refill]</font>[/size][/url] <img src=greenbar.png width=$enperc height=5><img src=redbar.png width=$enopp height=5></td><td><font color=white>|</td> <td><font color=white>|</td><td>[b]<font color=white>Will:</font>[/b] <font color=white>{$wiperc}% <img src=bluebar.png width=$wiperc height=5><img src=redbar.png width=$wiopp height=5></td><td><font color=white>|</td> <td><font color=white>|</td><td>[b]<font color=white>Brave:</font>[/b] <font color=white>{$ir['brave']}/{$ir['maxbrave']} <img src=yellowbar.png width=$brperc height=5><img src=redbar.png width=$bropp height=5></td><td><font color=white>|</td> <td><font color=white>|</td><td>[b]<font color=white>EXP:</font>[/b] <font color=white>{$experc}% <img src=navybar.png width=$experc height=5><img src=redbar.png width=$exopp height=5></td><td><font color=white>|</td> <td><font color=white>|</td><td>[b]<font color=white>Health:</font>[/b] <font color=white>{$hpperc}% <img src=greenbar.png width=$hpperc height=5><img src=redbar.png width=$hpopp height=5></td><td><font color=white>|</td> </tr></table></center></td> </tr> <td background='middle.png'> <table width=100% border=0 cellpadding=0 cellspacing=0> <tr valign="top"><td width=10></td><td width=145> 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']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body></td><td>Your account may be broken. Please mail help@{$domain} stating your username and player ID.</td><td width=25></td></tr> </table> <tr><td><image src='bottom.png'></td></tr></table>"); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { echo "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; } global $staffpage; $bgcolor = '#878787'; echo <<<OUT <center> <form name='Tick'> <div id='clock' name='clock'></div> </form> <script> <!-- function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn='AM' if (hours>12){ dn='PM' hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes='0'+minutes if (seconds<=9) seconds='0'+seconds document.getElementById('clock').innerHTML =hours+':'+minutes+':' +seconds+' '+dn setTimeout('show()',1000) } show() //--> </script> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("</td><td>[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]</td><td width=25></td></tr> </table> <tr><td><image src='bottom.png'></td></tr></table></body></html>"); } if(file_exists('ipbans/'.$IP)) { die("</td><td>[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</td><td width=25></td></tr> </table> <tr><td><image src='bottom.png'></td></tr></table></body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = '#878787'; echo '</td><td width=30></td><td width=775><center>'; if($ir['hospital']) { echo "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { echo "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = '#878787'; echo '</td><td width=30></td><td width=775><center>'; } function endpage() {echo "</td>"; global $db,$c,$userid, $ir; echo <<<OUT </td><td width=25></td></tr> </table> <tr><td><image src='bottom.png'></td></tr></table> OUT; } } ?> globals.php <?php /*--------------------------------- -- MCCodes 2.0 -- By Dabomstew ---------------------------------*/ session_start(); ob_start(); if(get_magic_quotes_gpc() == 0) { foreach($_POST as $k => $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; 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']; } $domain=$_SERVER['HTTP_HOST']; global $jobquery, $housequery; if($jobquery) { $is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid"); } else if($housequery) { $is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid"); } else { $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); } $ir=$db->fetch_row($is); if($ir['force_logout']) { $db->query("UPDATE users SET force_logout=0 WHERE userid=$userid"); session_unset(); session_destroy(); header("Location: login.php"); exit; } global $macropage; if($macropage && !$ir['verified'] && $set['validate_on']==1) { header("Location: macro1.php?refer=$macropage"); exit; } check_level(); $h = new headers; $h->startheaders(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); global $atkpage; if($atkpage) { $h->userdata($ir,$lv,$fm,$cm,0); } else { $h->userdata($ir,$lv,$fm,$cm); } global $menuhide; if(!$menuhide) { $h->menuarea(); } print <<<OUT <iframe name='shoutbox' id='shoutbox' src='shoutbox.php' width='95%' frameborder='0'></iframe> <form method='POST' name='shouting' target='shoutbox' action='shoutbox.php'> <input type='text' id='shout' name='shout'> <input type='submit' value='Shout!' onclick='window.location="{$_SERVER['PHP_SELF']}";'> </form> OUT; ?> Quote
inferno564 Posted May 14, 2009 Author Posted May 14, 2009 Re: (help) events problem+gang events found out what the problem was all of my sql got changed and some php files were changed easy fix though Quote
Haunted Dawg Posted May 15, 2009 Posted May 15, 2009 Re: (help) events problem+gang events Just on the note, your game's vulnerable to the IP hack. Quote
inferno564 Posted May 15, 2009 Author Posted May 15, 2009 Re: (help) events problem+gang events What ip hack? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.