From: tokul Date: Tue, 27 Jun 2006 10:18:45 +0000 (+0000) Subject: updated plugin to 1.5.2 API X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f5da0b1e9b977e63b12abfca67bf7bed210337c4;p=squirrelmail.git updated plugin to 1.5.2 API 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 --- diff --git a/plugins/administrator/defines.php b/plugins/administrator/defines.php index 236a1ccd..b0a5fb68 100644 --- a/plugins/administrator/defines.php +++ b/plugins/administrator/defines.php @@ -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 ), diff --git a/plugins/administrator/options.php b/plugins/administrator/options.php index ddbcf716..11367110 100644 --- a/plugins/administrator/options.php +++ b/plugins/administrator/options.php @@ -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;