Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.
Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.
Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?
<?php
('error_reporting', E_ALL);
if(isset($_COOKIE['style']){
$no = intval($_COOKIE['style']);
$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';
print "<link rel='stylesheet' href='" . $style[$no] . "' />";
}
else {
print "<link rel='stylesheet' media='all' type='text/css' href='/stylesheet.css' />";
}
?>
Ok, so when I corrected that, and added it to my pages, I opened up the file on my own system, and this is what I saw:
"; } else { print ""; } ?> and then the rest of my page, with no formating. Does this help?
<?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'];
}
?>
<?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";
}
?>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=1">Normal Ditto Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=2">Shiny Ditto Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=3">Spring Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=4">Electric Style</a><br>
<link rel="stylesheet" href="<?php echo $style[$no]; ?>" type="text/css" />
if($style[$no]){
$expiration = 60 * 60 * 24 * 365 * 100 + time();
setcookie('style', $no, $expiration);
header("Location: http://ditto.ifastnet.com/home.php");
}
if(file_exists($style[$no])){
$expiration = 60 * 60 * 24 * 365 * 100 + time();
setcookie('style', $no, $expiration);
header("Location: http://ditto.ifastnet.com/home.php");
}
if(!isset($_COOKIE['style']))
{
$no = 1;
}
if($_COOKIE['style'])
{
$no = 1;
}
if(!isset($_COOKIE['style']))
{
$no = 1;
}
<link rel="stylesheet" href="<?php echo $style[$no]; ?>" type="text/css" />
<?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($_COOKIE['style'])
{
$no = 1;
}
else
{
$no = $_COOKIE['style'];
}
?>
<center><b>Styleswitcher</b><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=1">Normal Ditto Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=2">Shiny Ditto Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=3">Spring Style</a><br>
<a href="http://ditto.ifastnet.com/styleswitcher.php?style=4">Electric Style</a><br>
<?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(file_exists($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";
}
?>