Path : /hermes/sb_web/b744/yushibrentwood.com/ |
Current < : /hermes/sb_web/b744/yushibrentwood.com/sitechoice.php |
<?php $refering_url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $_SESSION['last_url'] = $refering_url; if ($_GET['fullsite'] == 'full') { setcookie("siteversion", 'full', time()+3600*24); } else { setcookie("siteversion", 'mobile', time()+3600*24); } $last_url = $_SESSION['last_url']; if($last_url != ''){ header( 'Location: ' . $last_url ); //header( 'Location: index.php' ); } else { header( 'Location: index.php' ); } ?>