MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b744/yushibrentwood.com/
File Upload :
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' );
	}
?>