'pub/skins/pmwiki/pmwiki.tmpl', 'myskin' => 'pub/skins/myskin/myskin.tmpl', 'classic' => 'pub/skins/classic/classic.tmpl'); If a URL requests a skin that isn't in this array, then PmWiki defaults to the skin already defined by $PageTemplateFmt. By default, the setskin cookie that is created will expire after one year. You can set it to expire at the end of the browser session by setting $PageSkinCookieExpires=0; */ SDV($PageSkinCookieExpires,$Now+60*60*24*365); if (isset($_COOKIE['setskin'])) $PageSkin = $_COOKIE['setskin']; if (isset($_GET['setskin'])) { $PageSkin = $_GET['setskin']; setcookie('setskin',$PageSkin,$PageSkinCookieExpires,'/'); } if (isset($_GET['skin'])) $PageSkin = $_GET['skin']; if (@$PageSkinTemplates[$PageSkin]) $PageTemplateFmt = $PageSkinTemplates[$PageSkin]; ?>