Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace Ereg to Preg_match
#1
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))
{.....
Reply
#2
thanks! i will get that done...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)