浏览代码

adding configuration option to plugin.
using <big> instead of <font size=+1>

tokul 21 年之前
父节点
当前提交
690ca9ef96
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 0
      plugins/administrator/defines.php
  2. 2 2
      plugins/administrator/options.php

+ 2 - 0
plugins/administrator/defines.php

@@ -148,6 +148,8 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
 				 '$pop_before_smtp' => array( 'name' => _("POP3 Before SMTP?"),
 				 '$pop_before_smtp' => array( 'name' => _("POP3 Before SMTP?"),
 				 							  'type' => SMOPT_TYPE_BOOLEAN,
 				 							  'type' => SMOPT_TYPE_BOOLEAN,
 											  'default' => false ),
 											  'default' => false ),
+                 '$skip_SM_header' => array( 'name' => _("Hide SquirrelMail Header"),
+                                          'type' => SMOPT_TYPE_BOOLEAN ),
                  '$invert_time' => array( 'name' => _("Invert Time"),
                  '$invert_time' => array( 'name' => _("Invert Time"),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                  /* --------------------------------------------------------*/
                  /* --------------------------------------------------------*/

+ 2 - 2
plugins/administrator/options.php

@@ -604,8 +604,8 @@ if( $fp = @fopen( $cfgfile, 'w' ) ) {
     fwrite( $fp, '?>' );
     fwrite( $fp, '?>' );
     fclose( $fp );
     fclose( $fp );
 } else {
 } else {
-    echo '<font size=+1><br>'.
+    echo '<br><big>'.
          _("Config file can't be opened. Please check config.php.").
          _("Config file can't be opened. Please check config.php.").
-         '</font>';
+         '</big>';
 }
 }
 ?>
 ?>