From: tokul Date: Sun, 12 Mar 2006 20:21:56 +0000 (+0000) Subject: removing advanced_tree configuration variable. code is moved to templates X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca885a4ff4cc1175af8db97bab02f7aa74ced73a;p=squirrelmail.git removing advanced_tree configuration variable. code is moved to templates git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10983 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/conf.pl b/config/conf.pl index 14b8e4f8..d928d0a3 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -366,7 +366,8 @@ $show_alternative_names = 'false' if ( !$show_alternative_names ); # implementation changes. options are provided by limit_languages plugin # $available_languages = 'all' if ( !$available_languages ); $aggressive_decoding = 'false' if ( !$aggressive_decoding ); -$advanced_tree = 'false' if ( !$advanced_tree ); +# available only in 1.5.0 and 1.5.1 +# $advanced_tree = 'false' if ( !$advanced_tree ); $use_php_recode = 'false' if ( !$use_php_recode ); $use_php_iconv = 'false' if ( !$use_php_iconv ); @@ -687,16 +688,15 @@ while ( ( $command ne "q" ) && ( $command ne "Q" ) && ( $command ne ":q" ) ) { print "R Return to Main Menu\n"; } elsif ( $menu == 11 ) { print $WHT. "Interface tweaks\n" . $NRM; - print "1. Advanced tree : $WHT$advanced_tree$NRM\n"; - print "2. Display html mails in iframe : $WHT$use_iframe$NRM\n"; - print "3. Use Icons : $WHT$use_icons$NRM\n"; + print "1. Display html mails in iframe : $WHT$use_iframe$NRM\n"; + print "2. Use Icons : $WHT$use_icons$NRM\n"; print "\n"; print $WHT. "PHP tweaks\n" . $NRM; - print "4. Use php recode functions : $WHT$use_php_recode$NRM\n"; - print "5. Use php iconv functions : $WHT$use_php_iconv$NRM\n"; + print "3. Use php recode functions : $WHT$use_php_recode$NRM\n"; + print "4. Use php iconv functions : $WHT$use_php_iconv$NRM\n"; print "\n"; print $WHT. "Configuration tweaks\n" . $NRM; - print "6. Allow remote configtest : $WHT$allow_remote_configtest$NRM\n"; + print "5. Allow remote configtest : $WHT$allow_remote_configtest$NRM\n"; print "\n"; print "R Return to Main Menu\n"; } @@ -856,12 +856,11 @@ while ( ( $command ne "q" ) && ( $command ne "Q" ) && ( $command ne ":q" ) ) { elsif ( $command == 4 ) { $aggressive_decoding = commandA4(); } elsif ( $command == 5 ) { $lossy_encoding = commandA5(); } } elsif ( $menu == 11 ) { - if ( $command == 1 ) { $advanced_tree = commandB1(); } - if ( $command == 2 ) { $use_iframe = commandB2(); } - elsif ( $command == 3 ) { $use_icons = commandB3(); } - elsif ( $command == 4 ) { $use_php_recode = commandB4(); } - elsif ( $command == 5 ) { $use_php_iconv = commandB5(); } - elsif ( $command == 6 ) { $allow_remote_configtest = commandB6(); } + if ( $command == 1 ) { $use_iframe = commandB2(); } + elsif ( $command == 2 ) { $use_icons = commandB3(); } + elsif ( $command == 3 ) { $use_php_recode = commandB4(); } + elsif ( $command == 4 ) { $use_php_iconv = commandB5(); } + elsif ( $command == 5 ) { $allow_remote_configtest = commandB6(); } } } } @@ -3604,28 +3603,6 @@ sub commandA5 { return $lossy_encoding; } - -# Advanced tree -sub commandB1 { - print "Enable this option if you want to use DHTML based folder listing.\n"; - print "Code is experimental, works only with some browsers and there might\n"; - print "be some glitches.\n"; - print "\n"; - - if ( lc($advanced_tree) eq 'true' ) { - $default_value = "y"; - } else { - $default_value = "n"; - } - print "Use advanced tree in folder listing? (y/n) [$WHT$default_value$NRM]: $WHT"; - $advanced_tree = ; - if ( ( $advanced_tree =~ /^y\n/i ) || ( ( $advanced_tree =~ /^\n/ ) && ( $default_value eq "y" ) ) ) { - $advanced_tree = 'true'; - } else { - $advanced_tree = 'false'; - } - return $advanced_tree; -} # display html emails in iframe sub commandB2 { print "This option can enable html email rendering inside iframe.\n"; @@ -4079,9 +4056,6 @@ sub save_data { print CF "\n"; - # boolean - print CF "\$advanced_tree = $advanced_tree;\n"; - print CF "\n"; # boolean print CF "\$use_iframe = $use_iframe;\n"; print CF "\n"; diff --git a/config/config_default.php b/config/config_default.php index 398716cb..43792afb 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -1090,15 +1090,6 @@ $lossy_encoding = false; $time_zone_type = 0; /*** Tweaks ***/ -/** - * Advanced DHTML tree control - * - * Use experimental DHTML folder listing - * @global bool $advanced_tree - * @since 1.5.0 - */ -$advanced_tree = false; - /** * Iframe sandbox code control * diff --git a/plugins/administrator/defines.php b/plugins/administrator/defines.php index 373052ea..9f46f482 100644 --- a/plugins/administrator/defines.php +++ b/plugins/administrator/defines.php @@ -376,8 +376,6 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"), /* ---- Tweaks ---- */ 'Group10' => array( 'name' => _("Tweaks"), 'type' => SMOPT_TYPE_TITLE ), - '$advanced_tree' => array( 'name' => _("Use advanced tree folder listing"), - 'type' => SMOPT_TYPE_BOOLEAN ), '$use_icons' => array( 'name' => _("Use icons"), 'type' => SMOPT_TYPE_BOOLEAN ), '$use_iframe' => array( 'name' => _("Use inline frames with HTML mails"),