<?php $ADMIN[defaulturl] = "img/no.gif"; $okaysites = array("http://www.5v6.com/","http://t.5v6.com/"); $ADMIN[url_1] = "http://t.5v6.com/"; $reffer = $HTTP_REFERER; if($reffer) { $yes = 0; while(list($domain, $subarray) = each($okaysites)) { if (ereg("$reffer",$subarray)) { $yes = 1; } } $theu = "url"."_"."$site"; if ($ADMIN[$theu] AND $yes == 1) { header("Location: $ADMIN[$theu]/$file"); } else { header("Location: $ADMIN[defaulturl]"); } } else { header("Location: $ADMIN[defaulturl]"); } ?>
<img src="****.php?site=1&file=demo.jpg>