X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fhelp.php;h=3c3d838745c960f5b83a388b632eb583ab182bf4;hb=ffb1a3d96da4a1eccc508de577268eefea16d557;hp=316ecfc14f1195d70b8abf933c1a5f590831088b;hpb=355861846a51d35efe50848869d680fd3b4a5316;p=squirrelmail.git
diff --git a/src/help.php b/src/help.php
index 316ecfc1..3c3d8387 100644
--- a/src/help.php
+++ b/src/help.php
@@ -3,7 +3,7 @@
/**
* help.php
*
- * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Displays help for the user
@@ -11,201 +11,215 @@
* $Id$
*/
-/*****************************************************************/
-/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
-/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
-/*** + Base level indent should begin at left margin, as ***/
-/*** the require_once below looks. ***/
-/*** + All identation should consist of four space blocks ***/
-/*** + Tab characters are evil. ***/
-/*** + all comments should use "slash-star ... star-slash" ***/
-/*** style -- no pound characters, no slash-slash style ***/
-/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
-/*** ALWAYS USE { AND } CHARACTERS!!! ***/
-/*** + Please use ' instead of ", when possible. Note " ***/
-/*** should always be used in _( ) function calls. ***/
-/*** Thank you for your help making the SM code more readable. ***/
-/*****************************************************************/
-
require_once('../src/validate.php');
require_once('../functions/display_messages.php');
require_once('../functions/imap.php');
require_once('../functions/array.php');
+displayPageHeader($color, 'None' );
+
+$helpdir[0] = 'basic.hlp';
+$helpdir[1] = 'main_folder.hlp';
+$helpdir[2] = 'read_mail.hlp';
+$helpdir[3] = 'compose.hlp';
+$helpdir[4] = 'addresses.hlp';
+$helpdir[5] = 'folders.hlp';
+$helpdir[6] = 'options.hlp';
+$helpdir[7] = 'search.hlp';
+$helpdir[8] = 'FAQ.hlp';
- displayPageHeader($color, 'None' );
-
- $helpdir[0] = 'basic.hlp';
- $helpdir[1] = 'main_folder.hlp';
- $helpdir[2] = 'read_mail.hlp';
- $helpdir[3] = 'compose.hlp';
- $helpdir[4] = 'addresses.hlp';
- $helpdir[5] = 'folders.hlp';
- $helpdir[6] = 'options.hlp';
- $helpdir[7] = 'search.hlp';
- $helpdir[8] = 'FAQ.hlp';
-
- /****************[ HELP FUNCTIONS ]********************/
- // parses through and gets the information from the different documents.
- // this returns one section at a time. You must keep track of the position
- // so that it knows where to start to look for the next section.
-
- function get_info($doc, $pos) {
- for ($n=$pos; $n < count($doc); $n++) {
- if (trim(strtolower($doc[$n])) == "
- |
-";
- printf (_("The help has not been translated to %s. It will be displayed in English instead."), $languages[$squirrelmail_language]["NAME"]);
- echo " "; - $user_language = "en"; - } else { - $help_exists = false; - echo " |
\n";
- echo " "; - do_hook("help_chapter"); - echo "
'; + $user_language = 'en_US'; +} else { + $help_exists = false; + echo " |
$help_info[2]
\n"; - - $section = 0; - for ($n = $help_info[3]; $n < count($doc); $n++) { + echo '