I'm having problem getting cmsmadesimple to read cookies.
Set Cookie
style.php
Code: Select all
<?php
setcookie ('sitestyle', $set, time()+31536000, '/', '.mydomain.com', '0');
header("Location: $HTTP_REFERER");
?>
user plugin called style
Code: Select all
<link rel="stylesheet" type="text/css"
media="screen" title="User
Defined Style" href="<?php echo
(!$sitestyle)?'style':$sitestyle ?>.css" />
I'd try using it outside cmsmadesimple, and it works.