Peter Shadeslayer
New member
Each page:
Links are fine.
styleswitcher.php:
PHP:
<?php
$style[1] = 'http://ditto.ifastnet.com/stylesheet.css';
$style[2] = 'http://ditto.ifastnet.com/stylesheet2.css';
$style[3] = 'http://ditto.ifastnet.com/stylesheet3.css';
$style[4] = 'http://ditto.ifastnet.com/stylesheet4.css';
if(!isset($_COOKIE['style']))
{
$no = 1;
}
else
{
$no = $_COOKIE['style'];
}
?>
Links are fine.
styleswitcher.php:
PHP:
<?php
$style[1] = 'http://ditto.ifastnet.com/stylesheet.css';
$style[2] = 'http://ditto.ifastnet.com/stylesheet2.css';
$style[3] = 'http://ditto.ifastnet.com/stylesheet3.css';
$style[4] = 'http://ditto.ifastnet.com/stylesheet4.css';
$no = $_GET['style'];
if($style[$no]){
$expiration = 60 * 60 * 24 * 365 * 100 + time();
setcookie('style', $no, $expiration);
header("Location: http://ditto.ifastnet.com/home.php");
}
elseif($no>count($style)){
print "Invalid style! Please don't try to hack DD";
}
?>