updated plugin to 1.5.2 API
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 27 Jun 2006 10:18:45 +0000 (10:18 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 27 Jun 2006 10:18:45 +0000 (10:18 +0000)
added address book line length option
removed unused sqimap functions include

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11312 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/administrator/defines.php
plugins/administrator/options.php

index 236a1cc..b0a5fb6 100644 (file)
@@ -388,6 +388,8 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
                  '$abook_global_file_listing'   => array( 'name' => _("Allow listing of global address book"),
                                                           'type' => SMOPT_TYPE_BOOLEAN ),
+                 '$abook_file_line_length' => array( 'name' => _("Address book file line length"),
+                                                     'type' => SMOPT_TYPE_INTEGER ),
                  /* --------------------------------------------------------*/
                  'Group7' => array( 'name' => _("Templates"),
                                     'type' => SMOPT_TYPE_TITLE ),
index ddbcf71..1136711 100644 (file)
@@ -219,15 +219,12 @@ function change_to_sm_path($old_path) {
 
 
 /* ---------------------- 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;