Anywho im just looking for some quick help:
What is the best way to do the following:
I need to make sure that a "forum" pops up only everytime you go to my site, and not when you click on something. Since one of the sites interested in that is a premade engine that i call "borg" because i changed it so much it's like super customized, anyways here is what i am doing, and wonder if there is simpler way:
Code: Select all
if ( !empty($_SERVER['HTTP_REFERRER'] )) {
$diff = $_SERVER['HTTP_REFERRER'] - $_SERVER['PHP_SELF]';
if ($diff != $_SERVER['SERVER_NAME'] ) {
$display = 'some HTML';
}
}
$display = 'some other html';