session_start();
if(isset($_GET['theme'])){
switch($_GET['theme']){
case "Beach":
$theme = 'Beach';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Blank":
$theme = 'Blank';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Droplets":
$theme = 'Droplets';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Flowers":
$theme = 'Flowers';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Forest":
$theme = 'Forest';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Nighttime":
$theme = 'Nighttime';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Purplehaze":
$theme = 'Purplehaze';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Reflection":
$theme = 'Reflection';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Shore":
$theme = 'Shore';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Sky":
$theme = 'Sky';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Summer":
$theme = 'Summer';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "XP":
$theme = 'XP';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
case "Vista":
$theme = 'Vista';
$_SESSION['theme'] = $theme;
setcookie("theme", $theme,time()+60*60*24*365);
break;
default:
$_SESSION['theme'] = 'Blank';
}
$redirectedtheme = $PHP_SELF;
header("location: $redirectedtheme");
}
if(isset($_COOKIE['theme'])){
$_SESSION['theme'] = $_COOKIE['theme'];
$theme = $_COOKIE['theme'];
}
if(!isset($_SESSION['theme'])){
$_SESSION['theme'] = 'Blank';
$theme = 'Blank';
}
?>
kLay.co.uk
$news = file_get_contents("Menus/toptext.txt");
echo $news
?>
$news = file_get_contents("Menus/news.txt");
echo $news
?>