hello there, thanks for the support but with more work i fix what i need ... but i still have one problem ... first time i will show my php code
Code:
<?php
// On - Script Work
$script = 'On';
// Cod Html Ads For Referer
$ads_im_referer = 'referer';
$ads_video_referer = 'referer';
// Cod Html Ads No Referer
$ads_im_normal = 'no referer';
$ads_video_normal = 'no referer';
if ($script != "On") {
// No Referer
$ads_im = $ads_im_normal;
$ads_video = $ads_video_normal;
} else {
if (preg_match("~myweb1.com~i", $_SERVER['HTTP_REFERER']) || preg_match("~myweb2.com~i", $_SERVER['HTTP_REFERER'])) {
// Referer
$ads_im = $ads_im_referer;
$ads_video = $ads_video_referer;
} else {
// No Referer
$ads_im = $ads_im_normal;
$ads_video = $ads_video_normal;
}
}
$smarty->assign('ads_im', $ads_im);
$smarty->assign('ads_video', $ads_video);
?>
is working ! but the problem is if someone is come "Referer" and is click one link on my website after that the person is show "No Referer" is possible to i make all people who come from website1 and website2 to be referer ? just to dont be referer if they EXIT (close) the website
Last edited by ZoC; 04-30-2010 at 06:54 PM..
|