function getReferer(){ // limpia el referer $ref = $_SERVER['HTTP_REFERER']; $web = str_replace(array('http://','www.'),'',$ref); $web = substr($web,0,strpos ($web, '/')); if(!empty($web)): // retorna el referer limpio return $web; else: // sin referer return 'jane.es'; endif; }
You need to create an account or log in to post comments to this site.