X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fadministrator%2Foptions.php;h=cf9cb62a13ec404952e042d13fbe237ba4c933fe;hp=ff05481787564bf4b122dd2e7f387cfd2253910c;hb=f0b554f994b11c89139e3f13021b3b3c4cbcf45f;hpb=a28a56da34d2b30fcc5fd139f8187b4fe1105433 diff --git a/plugins/administrator/options.php b/plugins/administrator/options.php index ff054817..cf9cb62a 100644 --- a/plugins/administrator/options.php +++ b/plugins/administrator/options.php @@ -247,7 +247,15 @@ if ( isset( $_GET['switch'] ) ) { echo "
" . "
". "" , - ""; + "", + " +'; + } else { + echo '\n"; + } } echo "" , @@ -588,5 +598,4 @@ if( $fp = @fopen( $cfgfile, 'w' ) ) { _("Config file can't be opened. Please check config.php."). ''; } - ?>
" . _("Configuration Administrator") . "
" . _("Configuration Administrator") . "
"; +?> +Note: it is recommended that you configure your system using conf.pl, and not this plugin. +conf.pl contains additional information regarding the purpose of variables and +appropriate values, as well as additional verification steps.
+Run or consult conf.pl should you run into difficulty with your configuration.
+
" . if( $colapse['Group8'] == 'off' ) { - $fd = opendir( '../plugins/' ); - $op_plugin = array(); - $p_count = 0; - while (false!==($file = readdir($fd))) { - if ($file != '.' && $file != '..' && $file != 'CVS' ) { - if ( filetype( $file ) == 'dir' ) { - $op_plugin[] = $file; - $p_count++; - } + $plugpath = SM_PATH . 'plugins/'; + if ( file_exists($plugpath) ) { + $fd = opendir( $plugpath ); + $op_plugin = array(); + $p_count = 0; + while (false !== ($file = readdir($fd))) { + if ($file != '.' && $file != '..' && $file != 'CVS' && is_dir($plugpath . $file) ) { + $op_plugin[] = $file; + $p_count++; } - } - closedir($fd); - asort( $op_plugin ); + } + closedir($fd); + asort( $op_plugin ); - /* Lets get the plugins that are active */ - $plugins = array(); - if ( isset( $HTTP_POST_VARS['plg'] ) ) { + /* Lets get the plugins that are active */ + $plugins = array(); + if ( isset( $HTTP_POST_VARS['plg'] ) ) { foreach ( $op_plugin as $plg ) { if ( isset( $HTTP_POST_VARS["plgs_$plg"] ) && $HTTP_POST_VARS["plgs_$plg"] == 'on' ) { @@ -533,7 +541,7 @@ if( $colapse['Group8'] == 'off' ) { $newcfg[$k] = ''; $i++; } - } else { + } else { $i = 0; while ( isset( $newcfg["\$plugins[$i]"] ) ) { $k = "\$plugins[$i]"; @@ -541,9 +549,9 @@ if( $colapse['Group8'] == 'off' ) { $plugins[] = substr( $v, 1, strlen( $v ) - 2 ); $i++; } - } - echo "
"; - foreach ( $op_plugin as $plg ) { + } + echo "
' . "". "\n"; - } - echo '
"; + foreach ( $op_plugin as $plg ) { if ( in_array( $plg, $plugins ) ) { $sw = ' checked'; } else { @@ -552,9 +560,11 @@ if( $colapse['Group8'] == 'off' ) { echo '
$plg
'; - + } + echo '
Plugin directory could not be found: ' . $plugpath . "