Merge pull request #415 from m-bene/selectSkin
make skin selection persistent
This commit is contained in:
commit
9a0eb63df2
|
@ -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' );
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue