PHP- Kodu:
<?php
session_start();
if(isset($_GET['css'])){
switch ($_GET['css']) {
case 'css1':
$stylesheet = '<link href="theme1.css" type="text/css" rel="stylesheet">';
$_SESSION['csschanger']=$stylesheet;
break;
case 'css2':
$stylesheet = '<link href="theme2.css" type="text/css" rel="stylesheet">';
$_SESSION['csschanger']=$stylesheet;
break;
case 'css3':
$stylesheet = '<link href="theme3.css" type="text/css" rel="stylesheet">';
$_SESSION['csschanger']=$stylesheet;
break;
case 'css4':
$stylesheet = '<link href="theme4.css" type="text/css" rel="stylesheet">';
$_SESSION['csschanger']=$stylesheet;
break;
default:
$stylesheet = '<link href="cssdefault.css" type="text/css" rel="stylesheet">';
$_SESSION['csschanger']=$stylesheet;
}
}
?>