X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fhelp.php;h=316ecfc14f1195d70b8abf933c1a5f590831088b;hb=95e9357118f315822eaea0f35a81e17933736c42;hp=67aa1c0d530ac7dfc0f3dc423f9b4eaecfdabdfe;hpb=ff8a98e7e1d368c57b088522586bddcf68d443a5;p=squirrelmail.git
diff --git a/src/help.php b/src/help.php
index 67aa1c0d..316ecfc1 100644
--- a/src/help.php
+++ b/src/help.php
@@ -1,35 +1,52 @@
") {
- $ary[1] = "";
+ $ary[1] = "";
for ($n++;$n < count($doc) && (trim(strtolower($doc[$n])) != ""); $n++) {
$ary[1] .= $doc[$n];
}
}
if (trim(strtolower($doc[$n])) == "") {
- $ary[2] = "";
+ $ary[2] = "";
for ($n++;$n < count($doc) && (trim(strtolower($doc[$n])) != ""); $n++) {
$ary[2] .= $doc[$n];
}
}
- }
+ }
if (isset($ary)) {
$ary[3] = $n;
return $ary;
@@ -62,14 +79,14 @@
$ary[1] = "ERROR: Help files are not in the right format!";
$ary[2] = "ERROR: Help files are not in the right format!";
return $ary;
- }
+ }
}
}
$ary[0] = "ERROR: Help files are not in the right format!";
$ary[1] = "ERROR: Help files are not in the right format!";
return $ary;
}
-
+
/**************[ END HELP FUNCTIONS ]******************/
?>
@@ -87,21 +104,21 @@
if ($HTTP_REFERER) {
$ref = strtolower($HTTP_REFERER);
if (strpos($ref, "src/compose"))
- $context = "compose";
+ $context = "compose";
else if (strpos($ref, "src/addr"))
- $context = "address";
+ $context = "address";
else if (strpos($ref, "src/folders"))
- $context = "folders";
+ $context = "folders";
else if (strpos($ref, "src/options"))
- $context = "options";
+ $context = "options";
else if (strpos($ref, "src/right_main"))
- $context = "index";
+ $context = "index";
else if (strpos($ref, "src/read_body"))
- $context = "read";
+ $context = "read";
else if (strpos($ref, "src/search"))
- $context = "search";
+ $context = "search";
}
-
+
if (!$squirrelmail_language)
$squirrelmail_language = "en";
@@ -122,7 +139,7 @@
echo "";
exit;
}
-
+
if ($help_exists) {
if (! isset($context))
$context = '';
@@ -170,7 +187,7 @@
echo "$chapter - $help_info[0]
\n";
if (isset($help_info[1]))
echo "$help_info[1]\n";
- else
+ else
echo "
$help_info[2]
\n";
$section = 0;
@@ -187,8 +204,8 @@
echo "
" . _("Top") . "\n";
}
}
- do_hook("help_bottom");
+ do_hook("help_bottom");
?>
|
- |