X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fprefs.php;h=47e854f2cd72dcb13f1bc7cd680b35812bf1e06b;hb=26f9a94a1f7c04666c65f75dce311988df6b6a94;hp=4445f53bbc7f90e0cde9799a4254edc0887b2acc;hpb=0b97a708e71c931153cd1ceee1495c9f4e1e209b;p=squirrelmail.git diff --git a/functions/prefs.php b/functions/prefs.php index 4445f53b..47e854f2 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -3,7 +3,7 @@ /** * prefs.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This contains functions for manipulating user preferences @@ -13,16 +13,12 @@ require_once(SM_PATH . 'functions/global.php'); -if (isset($_SESSION['prefs_cache'])) { - $prefs_cache = $_SESSION['prefs_cache']; -} -if (isset($_SESSION['prefs_are_cached'])) { - $prefs_are_cached = $_SESSION['prefs_are_cached']; -} +sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION ); +sqgetGlobalVar('prefs_are_cached', $prefs_are_cached, SQ_SESSION ); $rg = ini_get('register_globals'); -if ( !session_is_registered('prefs_are_cached') || +if ( !sqsession_is_registered('prefs_are_cached') || !isset( $prefs_cache) || !is_array( $prefs_cache) || substr( phpversion(), 0, 3 ) == '4.1' ||