X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fadministrator%2Foptions.php;h=7685d9ff17b2bd6999bed191584df1ac7ef3834a;hb=0859c3c0b848fe008d6d1c33149df3fc0f061765;hp=02cdc2945cc385a7dc49810d4c80f48bdc071859;hpb=edd4a552074c0db684cd52f1d154b324716d6135;p=squirrelmail.git diff --git a/plugins/administrator/options.php b/plugins/administrator/options.php index 02cdc294..7685d9ff 100644 --- a/plugins/administrator/options.php +++ b/plugins/administrator/options.php @@ -137,6 +137,8 @@ require_once('../functions/imap.php'); require_once('../src/load_prefs.php'); require_once('../plugins/administrator/defines.php'); +GLOBAL $data_dir, $username; + $auth = FALSE; if ( $adm_id = fileowner('../config/config.php') ) { $adm = posix_getpwuid( $adm_id ); @@ -162,10 +164,28 @@ $cfgfile = '../config/config.php'; parseConfig( '../config/config_default.php' ); parseConfig( $cfgfile ); +$colapse = array( 'Titles' => FALSE, + 'Group1' => getPref($data_dir, $username, 'adm_Group1', FALSE ), + 'Group2' => getPref($data_dir, $username, 'adm_Group2', TRUE ), + 'Group3' => getPref($data_dir, $username, 'adm_Group3', TRUE ), + 'Group4' => getPref($data_dir, $username, 'adm_Group4', TRUE ), + 'Group5' => getPref($data_dir, $username, 'adm_Group5', TRUE ), + 'Group6' => getPref($data_dir, $username, 'adm_Group6', TRUE ), + 'Group7' => getPref($data_dir, $username, 'adm_Group7', TRUE ), + 'Group8' => getPref($data_dir, $username, 'adm_Group8', TRUE ) ); + +if ( isset( $switch ) ) { + $colapse[$switch] = !$colapse[$switch]; + setPref($data_dir, $username, "adm_$switch", $colapse[$switch] ); +} + echo "