From 7350889b45590aee831ba1150ee94efb95b03992 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Mon, 26 Nov 2001 19:33:28 +0000 Subject: [PATCH] ** -> * git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1808 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/abook_database.php | 56 ++++++++++++------------ functions/abook_global_file.php | 34 +++++++-------- functions/abook_ldap_server.php | 50 +++++++++++----------- functions/abook_local_file.php | 38 ++++++++--------- functions/addressbook.php | 18 ++++---- functions/array.php | 21 ++++----- functions/attachment_common.php | 21 ++++----- functions/auth.php | 20 ++++----- functions/constants.php | 22 +++++----- functions/date.php | 25 +++++------ functions/db_prefs.php | 60 +++++++++++++------------- functions/display_messages.php | 20 ++++----- functions/gettext.php | 26 +++++------ functions/i18n.php | 28 ++++++------ functions/imap.php | 20 ++++----- functions/imap_general.php | 76 +++++++++++++-------------------- functions/imap_mailbox.php | 22 ++++------ functions/imap_messages.php | 19 +++++---- functions/imap_search.php | 18 ++++---- functions/index.php | 27 ++++++------ functions/mailbox_display.php | 20 ++++----- functions/mime.php | 21 ++++----- functions/options.php | 18 ++++---- functions/page_header.php | 19 +++++---- functions/plugin.php | 22 +++++----- functions/prefs.php | 18 ++++---- functions/smtp.php | 23 +++++----- functions/strings.php | 19 +++++---- functions/tree.php | 27 +++++++----- functions/url_parser.php | 20 ++++----- 30 files changed, 412 insertions(+), 416 deletions(-) diff --git a/functions/abook_database.php b/functions/abook_database.php index 3788bfe5..b5b2e001 100644 --- a/functions/abook_database.php +++ b/functions/abook_database.php @@ -1,34 +1,34 @@ database DNS (see PEAR for syntax) - ** table => table to store addresses in (must exist) - ** owner => current user (owner of address data) - ** ? writeable => set writeable flag (true/false) - ** - ** The table used should have the following columns: - ** owner, nickname, firstname, lastname, email, label - ** The pair (owner,nickname) should be unique (primary key). - ** - ** NOTE. This class should not be used directly. Use the - ** "AddressBook" class instead. - ** - ** $Id$ - **/ + * abook_database.php + * + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Backend for personal addressbook stored in a database, + * accessed using the DB-classes in PEAR. + * + * IMPORTANT: The PEAR modules must be in the include path + * for this class to work. + * + * An array with the following elements must be passed to + * the class constructor (elements marked ? are optional): + * + * dsn => database DNS (see PEAR for syntax) + * table => table to store addresses in (must exist) + * owner => current user (owner of address data) + * ? writeable => set writeable flag (true/false) + * + * The table used should have the following columns: + * owner, nickname, firstname, lastname, email, label + * The pair (owner,nickname) should be unique (primary key). + * + * NOTE. This class should not be used directly. Use the + * "AddressBook" class instead. + * + * $Id$ + */ require_once('DB.php'); diff --git a/functions/abook_global_file.php b/functions/abook_global_file.php index 2317948f..f1805425 100644 --- a/functions/abook_global_file.php +++ b/functions/abook_global_file.php @@ -1,23 +1,23 @@ LDAP server hostname/IP-address - ** base => LDAP server root (base dn). Empty string allowed. - ** ? port => LDAP server TCP port number (default: 389) - ** ? charset => LDAP server charset (default: utf-8) - ** ? name => Name for LDAP server (default "LDAP: hostname") - ** Used to tag the result data - ** ? maxrows => Maximum # of rows in search result - ** ? timeout => Timeout for LDAP operations (in seconds, default: 30) - ** Might not work for all LDAP libraries or servers. - ** - ** NOTE. This class should not be used directly. Use the - ** "AddressBook" class instead. - ** - ** $Id$ - **/ + * abook_ldap_server.php + * + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Address book backend for LDAP server + * + * An array with the following elements must be passed to + * the class constructor (elements marked ? are optional): + * + * host => LDAP server hostname/IP-address + * base => LDAP server root (base dn). Empty string allowed. + * ? port => LDAP server TCP port number (default: 389) + * ? charset => LDAP server charset (default: utf-8) + * ? name => Name for LDAP server (default "LDAP: hostname") + * Used to tag the result data + * ? maxrows => Maximum # of rows in search result + * ? timeout => Timeout for LDAP operations (in seconds, default: 30) + * Might not work for all LDAP libraries or servers. + * + * NOTE. This class should not be used directly. Use the + * "AddressBook" class instead. + * + * $Id$ + */ class abook_ldap_server extends addressbook_backend { var $btype = 'remote'; diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index b5c7c8d7..5dd93948 100644 --- a/functions/abook_local_file.php +++ b/functions/abook_local_file.php @@ -1,25 +1,25 @@ path to addressbook file - ** ? create => if true: file is created if it does not exist. - ** ? umask => umask set before opening file. - ** - ** NOTE. This class should not be used directly. Use the - ** "AddressBook" class instead. - ** - ** $Id$ - **/ + * abook_local_file.php + * + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Backend for addressbook as a pipe separated file + * + * An array with the following elements must be passed to + * the class constructor (elements marked ? are optional): + * + * filename => path to addressbook file + * ? create => if true: file is created if it does not exist. + * ? umask => umask set before opening file. + * + * NOTE. This class should not be used directly. Use the + * "AddressBook" class instead. + * + * $Id$ + */ class abook_local_file extends addressbook_backend { var $btype = 'local'; diff --git a/functions/addressbook.php b/functions/addressbook.php index 08246cd6..a2991d43 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -1,15 +1,15 @@ 29 Jun 1999 09:52:11 -0500 (EDT) - ** (as specified in RFC 822) -- 'Tue' is optional - ** - ** $Id$ - **/ + * date.php + * + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Takes a date and parses it into a usable format. The form that a + * date SHOULD arrive in is: + * 29 Jun 1999 09:52:11 -0500 (EDT) + * (as specified in RFC 822) -- 'Tue' is optional + * + * $Id$ + */ // corrects a time stamp to be the local time function getGMTSeconds($stamp, $gmt) { diff --git a/functions/db_prefs.php b/functions/db_prefs.php index b4f07f5d..5243649f 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -1,35 +1,35 @@ $read
\n"; - flush(); - } - $size = -1; $data[] = $read; $read = fgets($imap_stream, 9096); @@ -74,13 +67,6 @@ $imap_general_debug = false; while (strpos($read, "\n") === false) { $read .= fgets($imap_stream, 9096); } - - // For debugging purposes - if ($imap_general_debug) { - echo "$read
\n"; - flush(); - } - // If we know the size, no need to look at the end parameters if ($size > 0) { if ($total_size == $size) { @@ -121,7 +107,6 @@ $imap_general_debug = false; $response = $regs[1]; $message = trim($regs[2]); - if ($imap_general_debug) { echo '--
'; } if ($handle_errors == false) { return $resultlist; } if ($response == 'NO') { @@ -263,7 +248,6 @@ $imap_general_debug = false; function sqimap_capability($imap_stream, $capability) { global $sqimap_capabilities; -global $imap_general_debug; if (!is_array($sqimap_capabilities)) { fputs ($imap_stream, sqimap_session_id() . " CAPABILITY\r\n"); @@ -287,7 +271,7 @@ global $imap_general_debug; ** Returns the delimeter between mailboxes: INBOX/Test, or INBOX.Test... ******************************************************************************/ function sqimap_get_delimiter ($imap_stream = false) { -global $imap_general_debug; + global $sqimap_delimiter; global $optional_delimiter; diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 5d8db156..031ccc43 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -1,19 +1,15 @@