Merge pull request #415 from m-bene/selectSkin

make skin selection persistent
This commit is contained in:
Andrew Bauer 2014-07-04 12:57:37 -05:00
commit 9a0eb63df2
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ session_start();
if ( !isset($_SESSION['skin']) || isset($_REQUEST['skin']) )
{
$_SESSION['skin'] = $skin;
setcookie( "zmSkin", $skin );
setcookie( "zmSkin", $skin, time()+3600*24*30*12*10 );
}
require_once( 'includes/config.php' );

View File

@ -84,7 +84,7 @@ foreach ( $tabs as $name=>$value )
if($tab == 'skins') {
$current_skin = $_COOKIE['zmSkin'];
if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']);
setcookie('zmSkin',$_GET['skin-choice'], time()+3600*24*30*12*10 );
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
echo "<script type=\"text/javascript\">window.opener.location.reload();window.location.href=\"{$_SERVER['PHP_SELF']}?view={$view}&tab={$tab}\"</script>";
}

View File

@ -84,7 +84,7 @@ foreach ( $tabs as $name=>$value )
if($tab == 'skins') {
$current_skin = $_COOKIE['zmSkin'];
if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']);
setcookie('zmSkin',$_GET['skin-choice'], time()+3600*24*30*12*10 );
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
echo "<script type=\"text/javascript\">window.opener.location.reload();window.location.href=\"{$_SERVER['PHP_SELF']}?view={$view}&tab={$tab}\"</script>";
}