X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fhelp.php;h=99671fbece74f26eb7b7e3057eb99d7ab0bec777;hb=3a85cfb8d54434a889f7782b0d79985408f965d0;hp=3059a9f3df897a2e3f685846b570c92273ff9d54;hpb=522419bed70374cf969b5ffa8f73452ee1986ca2;p=squirrelmail.git
diff --git a/src/help.php b/src/help.php
index 3059a9f3..99671fbe 100644
--- a/src/help.php
+++ b/src/help.php
@@ -11,221 +11,225 @@
* $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';
-
- /****************[ 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])) == "
- |
- en_US,
- * es -> es_ES, ru -> ru_RU), since it's standard to have a language
- * name + undescore + country name.
- * b) Provide a $languages['ru_RU']['HELPALIAS'] = 'ru';
- *
- * Konstantin Riabitsev
- */
- global $languages;
- while (list($key, $val) = each($languages)){
- if ($val['ALIAS'] == $squirrelmail_language){
- $squirrelmail_language = $key;
- break;
- }
- }
-
-
- if (file_exists("../help/$squirrelmail_language")) {
- $help_exists = true;
- $user_language = $squirrelmail_language;
- } else if (file_exists("../help/en")) {
- $help_exists = true;
- 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 " |