Configure sigstripping
[squirrelmail.git] / include / options / display.php
index 069e53c548a8a90fc48a2c3dc8173a83598270c7..7ee723c3e06b870ae9d26d63abd612ec5e743f9d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * options_display.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Displays all optinos about display preferences
@@ -58,7 +58,7 @@ function load_optpage_data_display() {
     }
     closedir($handle);
     
-    if ( count( $css_values > 1 ) ) {
+    if ( count( $css_values ) > 1 ) {
     
         $optvals[SMOPT_GRP_GENERAL][] = array(
             'name'    => 'custom_css',
@@ -100,7 +100,7 @@ function load_optpage_data_display() {
     );
 
     $js_autodetect_script =
-        "<SCRIPT LANGUAGE=\"JavaScript\"><!--\n".
+        "<SCRIPT LANGUAGE=\"JavaScript\" TYPE=\"text/javascript\"><!--\n".
            "document.forms[0].new_js_autodetect_results.value = '" . SMPREF_JS_ON . "';\n".
         "// --></SCRIPT>\n";
     $js_autodetect_results = SMPREF_JS_OFF;
@@ -109,7 +109,7 @@ function load_optpage_data_display() {
         'caption' => '',
         'type'    => SMOPT_TYPE_HIDDEN,
         'refresh' => SMOPT_REFRESH_NONE,
-        'script'  => $js_autodetect_script,
+        'post_script' => $js_autodetect_script,
         'save'    => 'save_option_javascript_autodetect'
     );
 
@@ -147,6 +147,13 @@ function load_optpage_data_display() {
         'size'    => SMOPT_SIZE_TINY
     );
 
+    $optvals[SMOPT_GRP_MAILBOX][] = array(
+        'name'    => 'show_full_date',
+        'caption' => _("Always Show Full Date"),
+        'type'    => SMOPT_TYPE_BOOLEAN,
+        'refresh' => SMOPT_REFRESH_NONE
+    );
+
     /*** Load the General Options into the array ***/
     $optgrps[SMOPT_GRP_MESSAGE] = _("Message Display and Composition");
     $optvals[SMOPT_GRP_MESSAGE] = array();
@@ -229,13 +236,6 @@ function load_optpage_data_display() {
         'refresh' => SMOPT_REFRESH_NONE
     );
 
-    $optvals[SMOPT_GRP_MESSAGE][] = array(
-        'name'    => 'pf_subtle_link',
-        'caption' => _("Enable Subtle Printer Friendly Link"),
-        'type'    => SMOPT_TYPE_BOOLEAN,
-        'refresh' => SMOPT_REFRESH_NONE
-    );
-
     $optvals[SMOPT_GRP_MESSAGE][] = array(
         'name'    => 'pf_cleandisplay',
         'caption' => _("Enable Printer Friendly Clean Display"),
@@ -282,6 +282,13 @@ function load_optpage_data_display() {
         'refresh' => SMOPT_REFRESH_NONE
     );
 
+    $optvals[SMOPT_GRP_MESSAGE][] = array(
+        'name'    => 'strip_sigs',
+        'caption' => _("Strip signature when replying"),
+        'type'    => SMOPT_TYPE_BOOLEAN,
+        'refresh' => SMOPT_REFRESH_NONE
+    );
+
     $optvals[SMOPT_GRP_MESSAGE][] = array(
         'name'    => 'internal_date_sort',
         'caption' => _("Enable Sort by of Receive Date"),