The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Replace Ereg to Preg_match - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: Replace Ereg to Preg_match (/showthread.php?tid=578)



Replace Ereg to Preg_match - kirillaristov - 2010-03-24

I have find it in GS v. 2.01
Replace ereg to preg_match, because the ereg is deprecated function.
admin/changedata.php; line 23

current code:
Code:
if
((!ereg(str_replace('http://www.', '', $SITEURL), $_SERVER['HTTP_REFERER']))
or
(!ereg("edit.php", $_SERVER['HTTP_REFERER'])))
{....

my version right code:
Code:
if
(!(strpos(str_replace('http://www.', '', $SITEURL), $_SERVER['HTTP_REFERER']) === false)
or
!(strpos("edit.php", $_SERVER['HTTP_REFERER']) === false))
{.....



Replace Ereg to Preg_match - ccagle8 - 2010-03-24

thanks! i will get that done...