Jump to content
MakeWebGames

error on page


thebobby
 Share

Recommended Posts

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}] ");

Link to comment
Share on other sites

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}] "); 

Link to comment
Share on other sites

$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);

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by Someone
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...