HTML fix.
[squirrelmail.git] / src / options_highlight.php
index c2d39e831f0de24d20113a378103268a6a677951..aa6fae03e5a241cc9dbc555be44dbca2e43738c5 100644 (file)
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
+require('../include/init.php');
 
-/* SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
-include_once(SM_PATH . 'functions/display_messages.php');
-include_once(SM_PATH . 'functions/imap.php');
-include_once(SM_PATH . 'functions/plugin.php');
-include_once(SM_PATH . 'functions/strings.php');
-include_once(SM_PATH . 'functions/html.php');
-include_once(SM_PATH . 'functions/forms.php');
+// include_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/forms.php');
 
 /* get globals */
 sqGetGlobalVar('action', $action);
@@ -171,7 +164,7 @@ if ($mhl_count > 0) {
                         $match_type . ' = ' .
                         htmlspecialchars($message_highlight_list[$i]['value']) ,
                     'left' ) ,
-                '', $message_highlight_list[$i]['color'] ) . "\n";
+                '', '#'.$message_highlight_list[$i]['color'] ) . "\n";
     }
     echo "</table>\n".
         "<br />\n";
@@ -424,7 +417,7 @@ if ($action == 'edit' || $action == 'add') {
         $gridindex = "$y,$x";
         $gridcolor = $new_color_list[$gridindex];
         echo html_tag( 'td', addRadioBox('color_type', ($gridcolor == $current_color), '#'.$gridcolor),
-            'left', $gridcolor, 'colspan="2"' );
+            'left', '#'.$gridcolor, 'colspan="2"' );
         }
         echo "</tr>\n";
     }