From: tokul Date: Sun, 18 Apr 2004 15:36:06 +0000 (+0000) Subject: patch allows to read README file from plugins directory. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=fd521778267760f193931cebe0c70f7cf7b3d858 patch allows to read README file from plugins directory. original patch contributed by Andrew D xhtml and phpdoc fixes. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7157 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/administrator/options.php b/plugins/administrator/options.php index 655562f8..08aad32b 100644 --- a/plugins/administrator/options.php +++ b/plugins/administrator/options.php @@ -1,14 +1,15 @@ ' . "
". - "" , - "", - "
" . _("Configuration Administrator") . "
"; + "" , + "", + ""; $act_grp = $k; @@ -358,7 +359,7 @@ foreach ( $newcfg as $k => $v ) { $newcfg[$k] = $v; } echo "'. - "". - "". + "". + "". "\n"; $i++; @@ -521,8 +522,8 @@ if ( $colapse['Group8'] == 'on' ) { } else { $sw = '(-)'; } -echo "'; if( $colapse['Group8'] == 'off' ) { @@ -569,23 +570,29 @@ if( $colapse['Group8'] == 'off' ) { $i++; } } - echo "
" . _("Configuration Administrator") . "
"; echo ""; echo _("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."); @@ -336,7 +337,7 @@ foreach ( $newcfg as $k => $v ) { } else { $sw = '(-)'; } - echo "
" . + echo "
" . "$sw " . "$name
$name". - ""; + ""; if ( isset( $defcfg[$k]['comment'] ) ) { echo '   ' . $defcfg[$k]['comment']; } @@ -507,8 +508,8 @@ if ( $colapse['Group7'] == 'off' ) { $name = substr( $v1, 1, strlen( $v1 ) - 2 ); $path = change_to_rel_path($v2); echo '
$i. $i.
" . - "$sw " . +echo "
" . + "$sw " . _("Plugins") . '
"; + echo "'; } else { - echo '\n"; + echo '\n"; } } -echo "\n" ,
"; foreach ( $op_plugin as $plg ) { if ( in_array( $plg, $plugins ) ) { $sw = ' checked'; } else { $sw = ''; } - echo '' . - "". + echo '\n". + "". "\n"; } echo '
$plg
'; + if (file_exists(SM_PATH . "plugins/$plg/README")) { + echo "$plg"; + } else { + echo $plg; + } + echo "
' . sprintf(_("Plugin directory could not be found: %s"),$plugpath) . "
' . sprintf(_("Plugin directory could not be found: %s"),$plugpath) . "

'. ''._("Test Configuration"). "