thebobby Posted January 9, 2013 Share Posted January 9, 2013 Deprecated: Function eregi() is deprecated in /home/mafiacri/public_html/header.php on line 1592 1591 $ids_checkpost=urldecode($_SERVER['QUERY_STRING']); 1592 if(eregi("[\'|'/'\''<'>'*'~'`']",$ids_checkpost) || strstr($ids_checkpost,'union') || strstr($ids_checkpost,'java') || strstr($ids_checkpost,'script') || strstr($ids_checkpost,'substring(') || strstr($ids_checkpost,'ord()')){ 1593 Send_Event(1, "".$user_class->formattedname." <b> Tried to use [".$_SERVER['SCRIPT_NAME']."{$ids_checkpost}] "); Quote Link to comment Share on other sites More sharing options...
Someone Posted January 9, 2013 Share Posted January 9, 2013 Try this $ids_checkpost=urldecode($_SERVER['QUERY_STRING']); if(preg_match("[\'|'/'\''<'>'*'~'`']",$ids_checkpost) || strstr($ids_checkpost,'union') || strstr($ids_checkpost,'java') || strstr($ids_checkpost,'script') || strstr($ids_checkpost,'substring(') || strstr($ids_checkpost,'ord()')){ Send_Event(1, "".$user_class->formattedname." <b> Tried to use [".$_SERVER['SCRIPT_NAME']."{$ids_checkpost}] "); Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 seems to be fixed thanks Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 $text = $this->htmlout($text); $text = ereg_replace("\", "<b>", $text); $text = ereg_replace("\", "</b>", $text); $text = ereg_replace("\", "<u>", $text); $text = ereg_replace("\", "</u>", $text); $text = ereg_replace("\", "<i>", $text); $text = ereg_replace("\", "</i>", $text); $text = ereg_replace("\", "<s>", $text); $text = ereg_replace("\", "</s>", $text); $text = ereg_replace("\[marquee]", "<marquee>", $text); $text = ereg_replace("\[/marquee]", "</marquee>", $text); $text = ereg_replace("\ ", "<center>", $text); $text = ereg_replace("\ ", "</center>", $text); $text = eregi_replace("\\([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=newwindow>\\1</a>",$text); //[user] $text = preg_replace("/\[user\](.*)\[\/user\]/e", "displayInfo('\\1')", $text); //$text = eregi_replace("\\([^\\[]*)\\[/img\\]","<img src=\"\\1\">",$text); $text = preg_replace("/\[img\](.*)\[\/img\]/e", "validateImage('\\1')", $text); $text = eregi_replace("\\[size([^\\[]*)\\]([^\\[]*)\\[/size\\]","<font size=\"\\1px\">\\2</font>",$text); $text = eregi_replace("\\*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$text); $text = ereg_replace("\[blockquote]", "<blockquote>", $text); $text = ereg_replace("\[/blockquote]", "</blockquote>", $text); Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 these errors are all for line above Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 314 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 315 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 316 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 317 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 318 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 319 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 320 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 321 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 322 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 323 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 324 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 325 Deprecated: Function eregi_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 327 Deprecated: Function eregi_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 336 Deprecated: Function eregi_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 337 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 339 Deprecated: Function ereg_replace() is deprecated in /home/mafiacri/public_html/shoutbox_functions.php on line 340 Quote Link to comment Share on other sites More sharing options...
Someone Posted January 9, 2013 Share Posted January 9, 2013 (edited) All ereg_replace( can be replaced by preg_match( All eregi_replace( <-- note the i can also be replced by preg_match( but, you should add /i to the first argument, if its suppose to be case insensitive. Think you can ignore that here, and just replace all eregi_replace( with preg_match( Edited January 9, 2013 by Someone Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 314 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 315 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 316 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 317 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 318 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 319 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/mafiacri/public_html/shoutbox_functions.php on line 320 Quote Link to comment Share on other sites More sharing options...
Someone Posted January 9, 2013 Share Posted January 9, 2013 Think we need to add the /i to those lines that throw a fit then, an example //$text = eregi_replace("\\[size([^\\[]*)\\]([^\\[]*)\\[/size\\]","<font size=\"\\1px\">\\2</font>",$text) $text = preg_match("\\[size([^\\[]*)\\]([^\\[]*)\\[/size\\]/i","<font size=\"\\1px\">\\2</font>",$text) I am no expert on expressions, in fact I find them very confusing and coming straight from hell, but there seems to be a lot of slashes in there, but if it works it works. Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 function validateInput($info) { $original = $info; $info = eregi_replace("\'", "", $info); $info = preg_match("\"", "", $info); $info = ereg_replace("\/", "", $info); $info = ereg_replace("\=", "", $info); $info = stripslashes($info); Quote Link to comment Share on other sites More sharing options...
thebobby Posted January 9, 2013 Author Share Posted January 9, 2013 these suck i am lost lol Quote Link to comment Share on other sites More sharing options...
Someone Posted January 9, 2013 Share Posted January 9, 2013 haha, there is another option //Shuts php up error_reporting(0); //or, this will still give you errors, but not warnings error_reporting(E_ERROR); If that is in a file, it will not provide error reporting. Say if its in a file like db.php or functions.php Also, perhaps consider to use a more up-to date engine. Just read this thread http://makewebgames.io/showthread.php/41888-Grpg-Worth-working-on Quote Link to comment Share on other sites More sharing options...
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.