> Subject: Yahoo Mail Failure.
[squirrelmail.git] / src / options_display.php
index bf464856a16b1af366e70aa96715b54aa76a24a1..59fa47052449d36a9292249fcccbcab4440e7500 100644 (file)
@@ -18,7 +18,7 @@ define('SMOPT_GRP_MESSAGE', 2);
 
 /* Define the optpage load function for the display options page. */
 function load_optpage_data_display() {
-    global $theme, $language, $languages, $js_autodetect_results;
+    global $theme, $language, $languages, $js_autodetect_results, $default_use_mdn;
 
     /* Build a simple array into which we will build options. */
     $optgrps = array();
@@ -49,13 +49,13 @@ function load_optpage_data_display() {
     );
  
     $css_values = array( 'none' => _("Default" ) );
-       $handle=opendir('../themes/css/');
-       while ($file = readdir($handle) ) {
-           if ( substr( $file, -4 ) == '.css' ) {
-               $css_values[$file] = substr( $file, 0, strlen( $file ) - 4 );
+    $handle=opendir('../themes/css/');
+    while ($file = readdir($handle) ) {
+        if ( substr( $file, -4 ) == '.css' ) {
+            $css_values[$file] = substr( $file, 0, strlen( $file ) - 4 );
         }
-       }       
-       closedir($handle);
+    }
+    closedir($handle);
     
     if ( count( $css_values > 1 ) ) {
     
@@ -225,7 +225,20 @@ function load_optpage_data_display() {
         'type'    => SMOPT_TYPE_BOOLEAN,
         'refresh' => SMOPT_REFRESH_NONE
     );
-
+    if ($default_use_mdn) {
+        $optvals[SMOPT_GRP_MESSAGE][] = array(
+            'name'    => 'mdn_user_support',
+            'caption' => _("Enable request/confirm reading"),
+            'type'    => SMOPT_TYPE_BOOLEAN,
+            'refresh' => SMOPT_REFRESH_NONE
+        );
+    }
+    $optvals[SMOPT_GRP_MESSAGE][] = array(
+        'name'    => 'compose_new_win',
+        'caption' => _("Always compose in a new window"),
+        'type'    => SMOPT_TYPE_BOOLEAN,
+        'refresh' => SMOPT_REFRESH_ALL
+    );
     /* Assemble all this together and return it as our result. */
     $result = array(
         'grps' => $optgrps,