_zr_
09-08-2005, 08:16 AM
Okay. I've been working with this tutorial that a lovely person on here gave me. and I can't figure out what I'm doing wrong. The tutorial is here: http://www.champagneblue.com/skinning.php
I think I'm doing something wrong with the cookiecheck file =/
<?
$total_skins = 2;
$default_skin = 2;
if (isset($_REQUEST['newskin'])) {
$newskin=(int)$_REQUEST['newskin'];
if ( ($newskin<1) OR ($newskin>$total_skins) )
$newskin=$default_skin;
} elseif (isset($_REQUEST['skin'])) {
$newskin=(int)$skin;
if ( ($skin<1) OR ($skin>$total_skins) )
$newskin=$default_skin;
} else $newskin=$default_skin;
$skin=$newskin;
setcookie ('skin', "", time() - 3600);
setcookie('skin',$newskin,time()+(86400*365),'/');
setcookie('skin',$newskin,time()+(86400*365),'/','.s-byss.x3fusion.com');
$skin=$newskin;
$headervar = "public_html/skins/$newskin/head";
$footervar = "public_html/skins/$newskin/foot";
$extension = ".php";
?>
Any help would be greatly appreciated. If you need more information, just tell me.
I think I'm doing something wrong with the cookiecheck file =/
<?
$total_skins = 2;
$default_skin = 2;
if (isset($_REQUEST['newskin'])) {
$newskin=(int)$_REQUEST['newskin'];
if ( ($newskin<1) OR ($newskin>$total_skins) )
$newskin=$default_skin;
} elseif (isset($_REQUEST['skin'])) {
$newskin=(int)$skin;
if ( ($skin<1) OR ($skin>$total_skins) )
$newskin=$default_skin;
} else $newskin=$default_skin;
$skin=$newskin;
setcookie ('skin', "", time() - 3600);
setcookie('skin',$newskin,time()+(86400*365),'/');
setcookie('skin',$newskin,time()+(86400*365),'/','.s-byss.x3fusion.com');
$skin=$newskin;
$headervar = "public_html/skins/$newskin/head";
$footervar = "public_html/skins/$newskin/foot";
$extension = ".php";
?>
Any help would be greatly appreciated. If you need more information, just tell me.