This has happened a few times to me and someone else brought it to my attention today.
Somewhere within my site there is some kind of malware on my site. Well, maybe not malware but still.
If you click on any hyperlink or page link within the site you get a popup new page opening with
some dating site page. It has varied as to which one a few times this has happened to me.
So, how can I find where this is? It must be some common file for all the pages like Settings or something like that.
The only thing I've found was this which I commented out in Settings.php was the highlighted area below:
# Automatic Info we might need
# Automatic Info we might need
############################################################################
if(isset($_SERVER['REMOTE_ADDR'])) {$SITE['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];}
if(isset($_SERVER['REMOTE_HOST'])) {$SITE['REMOTE_HOST'] = $_SERVER['REMOTE_HOST'];}
if(isset($_SERVER['DOCUMENT_ROOT'])) {$SITE['WEBROOT'] = $_SERVER['DOCUMENT_ROOT'];}
if(isset($_SERVER['REQUEST_URI'])) {$SITE['REQURI'] = $_SERVER['REQUEST_URI'];}
if(isset($_SERVER['SERVER_NAME'])) {$SITE['SERVERNAME'] = $_SERVER['SERVER_NAME'];}
// $SITE['remote'] = "onclick=\"window.open(this.href,'_blank');return false;\"";$SITE['PHPversion'] = phpversion();
Seems like this happens occasionally on any page and after a new visit after a few days.