Marcos Tadeu von Lutzow Vidal
[squirrelmail.git] / src / help.php
index 5b43efa665f16a9c4cf8a201e99a215f3e9ac43e..99671fbece74f26eb7b7e3057eb99d7ab0bec777 100644 (file)
@@ -102,8 +102,8 @@ echo html_tag( 'table', '', 'center', '', 'width="90%" cellpadding="0" cellspaci
         html_tag( 'tr' ) .
             html_tag( 'td' );
 
-if (isset($HTTP_REFERER)) {
-    $ref = strtolower($HTTP_REFERER);
+if (isset($_SERVER['HTTP_REFERER'])) {
+    $ref = strtolower($_SERVER['HTTP_REFERER']);
     if (strpos($ref, 'src/compose')){
         $context = 'compose';
     } else if (strpos($ref, 'src/addr')){
@@ -199,7 +199,7 @@ if ($help_exists == true) {
         }
         echo '<a href="../src/help.php">' . _("Table of Contents") . '</a>';
         if ($chapter >= count($helpdir)){
-            echo ' | <font color="$color[9]">' . _("Next") . '</font>';
+            echo ' | <font color="' . $color[9] . '">' . _("Next") . '</font>';
         } else {
             echo ' | <a href="../src/help.php?chapter=' . ($chapter+1)
                  . '">' . _("Next") . '</a>';