X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fhelp.php;h=29df95cc7034bdf5ffa3f9f26e69bd1c168b8bee;hb=33991968233a93217be237585a2265d1700883b8;hp=6318037d9e2df60e5e41c37c097405ae354a7052;hpb=8650e9e14aaea9a02c0967991b638ab1adfae9fd;p=squirrelmail.git
diff --git a/src/help.php b/src/help.php
index 6318037d..29df95cc 100644
--- a/src/help.php
+++ b/src/help.php
@@ -3,15 +3,19 @@
/**
* help.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Displays help for the user
*
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
define('SM_PATH','../');
/* SquirrelMail required files. */
@@ -78,13 +82,13 @@ function get_info($doc, $pos) {
$ary[1] = $ary[0];
$ary[2] = $ary[0];
}
- return( $ary );
+ return( $ary );
} else if (!trim(strtolower($doc[$n]))) {
- $ary[0] = '';
- $ary[1] = '';
- $ary[2] = '';
- $ary[3] = $n;
- }
+ $ary[0] = '';
+ $ary[1] = '';
+ $ary[2] = '';
+ $ary[3] = $n;
+ }
}
$ary[0] = _("ERROR: Help files are not in the right format!");
$ary[1] = $ary[0];
@@ -116,8 +120,8 @@ if (file_exists("../help/$squirrelmail_language")) {
$user_language = $squirrelmail_language;
} else if (file_exists('../help/en_US')) {
echo "
";
- printf (_("The help has not been translated to %s. It will be displayed in English instead."), $languages[$squirrelmail_language]['NAME']);
- echo '
';
+ printf (_("The help has not been translated to %s. It will be displayed in English instead."), $languages[$squirrelmail_language]['NAME']);
+ echo '
';
$user_language = 'en_US';
} else {
error_box( _("Some or all of the help documents are not present!"), $color );
@@ -147,11 +151,10 @@ if ( sqgetGlobalVar('chapter', $temp, SQ_GET) ) {
}
if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
- echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' );
- html_tag( 'tr' ) .
- html_tag( 'td' ) .
- '' . _("Table of Contents") . '
';
- do_hook('help_chapter');
+ echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td' ) .
+ '' . _("Table of Contents") . '
';
echo html_tag( 'ol' );
for ($i=0, $cnt = count($helpdir); $i < $cnt; $i++) {
$doc = file("../help/$user_language/$helpdir[$i]");
@@ -160,6 +163,7 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
. '">' . $help_info[0] . '' .
html_tag( 'ul', $help_info[2] );
}
+ do_hook('help_chapter');
echo '';
} else {
$doc = file("../help/$user_language/" . $helpdir[$chapter-1]);
@@ -179,10 +183,10 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
echo ' | ' . _("Next") . '';
}
- echo '
';
+ echo '
';
echo '' . $chapter . ' - ' . $help_info[0]
- . '
';
+ . '
';
if (isset($help_info[1]) && $help_info[1]) {
echo $help_info[1];
@@ -196,16 +200,16 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
$help_info = get_info($doc, $n);
echo "$chapter.$section - $help_info[0]" .
html_tag( 'ul', $help_info[1] );
- $n = $help_info[3];
+ $n = $help_info[3];
}
- echo '
' . _("Top") . '';
+ echo '
' . _("Top") . '';
}
do_hook('help_bottom');
echo html_tag( 'tr',
html_tag( 'td', ' ', 'left', $color[0] )
- ).
- '