11-06-2011, 03:26 PM
|
|
|
Ah My Balls
Industry Role:
Join Date: Feb 2007
Location: Under the gold leaf ICQ 388-454-421
Posts: 14,311
|
Quote:
Originally Posted by Tempest
Code:
<?php
$ref = getenv('HTTP_REFERER');
$anchor = preg_replace("/http:\/\//i", "", $ref);
$anchor = preg_replace("/^www\./i", "", $anchor);
$anchor = preg_replace("/\/.*/i", "", $anchor);
if( $anchor=="domain.com" ){
?>ads<?
}elseif( $anchor == "domain1.com" || $anchor == "domain2.com" || $anchor == "domain3.com" ){
?>ad space here<?
}else{
?>other ad here<?
}
?>
|
hmmm not showing it.
__________________
|
|
|