Browse Source

updated plugin to 1.5.2 API
added address book line length option
removed unused sqimap functions include

tokul 19 years ago
parent
commit
3bc6460e1f
2 changed files with 8 additions and 9 deletions
  1. 2 0
      plugins/administrator/defines.php
  2. 6 9
      plugins/administrator/options.php

+ 2 - 0
plugins/administrator/defines.php

@@ -388,6 +388,8 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
                  '$abook_global_file_listing'   => array( 'name' => _("Allow listing of global address book"),
                  '$abook_global_file_listing'   => array( 'name' => _("Allow listing of global address book"),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
+                 '$abook_file_line_length' => array( 'name' => _("Address book file line length"),
+                                                     'type' => SMOPT_TYPE_INTEGER ),
                  /* --------------------------------------------------------*/
                  /* --------------------------------------------------------*/
                  'Group7' => array( 'name' => _("Templates"),
                  'Group7' => array( 'name' => _("Templates"),
                                     'type' => SMOPT_TYPE_TITLE ),
                                     'type' => SMOPT_TYPE_TITLE ),

+ 6 - 9
plugins/administrator/options.php

@@ -219,15 +219,12 @@ function change_to_sm_path($old_path) {
 
 
 
 
 /* ---------------------- main -------------------------- */
 /* ---------------------- main -------------------------- */
-
-/** @ignore */
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/imap.php');
-require_once(SM_PATH . 'plugins/administrator/defines.php');
-require_once(SM_PATH . 'plugins/administrator/auth.php');
+/** main SquirrelMail include */
+require('../../include/init.php');
+/* configuration definitions */
+include_once(SM_PATH . 'plugins/administrator/defines.php');
+/* additional functions */
+include_once(SM_PATH . 'plugins/administrator/auth.php');
 
 
 global $data_dir, $username;
 global $data_dir, $username;