NaSMail Compatibility plugin - functions Copyright (c) 2007-2009 The NaSMail Project
This file is part of NaSMail Compatibility plugin.
Compatibility plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Compatibility plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Compatibility plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Prints page header in pages related to message content display
Function arguments are 100% compatible with displayMessageHeader() arguments. It only turns off use of displayPageHeader() in NSM_LAYOUT_PREVIEW mode. Function MUST be used instead of stardard displayPageHeader, if script displays content related to displayed message. For example: properties of attached files or some actions related to data taken from message viewed in read_body.php. If script uses displayPageHeader() when it must use displayMessageHeader(), display will be broken in NSM_LAYOUT_PREVIEW mode.
Provides backwards compatibility for PHP 4.3+ file_get_contents() function.
This function does not support advanced arguments introduced in PHP5/PHP6.
PHP addslashes replacement that does not depend on correct magic_quotes_sybase setting.
Removes saved password information.
Function must be executed before html output is started.
Reads encrypted pass password
Reads key used to encrypt password
Reads and decodes stored user password information
Saves password Function must be executed before html output is started.
Detects browsers with broken JavaScript support.
This function checks whether the user's USER_AGENT is known to be broken. If broken browser is detected, function returns false.
Locale insensitive strcasecmp
Function compares two strings in LC_CTYPE=C locale. Arguments and return values are the same as in standard PHP strcasecmp().
Decodes modified Base64 encoding
Encodes string in modified Base64 encoding
Failsafe of NaSMail nsm_fix_session_url function.
Function provides backwards compatibility with NaSMail 1.0 and 1.1. Function differs from the one that is bundled in NaSMail 1.2, because older versions always turn on with session cookies.
Checks form security token
Returns token which can be used to protect forms from cross site form attacks
Converts HTML to plain text.
Function sends HTTP 302 header.
Function provides backwards compatibility with NaSMail 1.0 and 1.1. Function differs from the one that is bundled in NaSMail 1.2, because older versions always turn on with session cookies.
Logs the user into the IMAP server. If $hide is set, no error messages will be displayed. This function returns the IMAP connection handle.
Function replaces sqimap_login(). $password argument must contain decoded password information.
Expunges messages in selected mailbox.
Mailbox must be selected with sqimap_mailbox_select() before issuing the command.
If message UIDs are set and IMAP UIDPLUS extension is supported, function tries to expunge only selected messages.
Returns human readable mailbox name
Function does utf7-imap decoding and applies all rewrites done in scripts.
Returns standard formated NaSMail page title.
This function should be used after page header is printed with displayPageHeader(). It allows to use same formating style in all NaSMail pages.
Warning. This function returns html tags with open table cell. Scripts must close cell with '</td></tr></table>' after displaying own output.
Converts PHP 4.2+ upload error codes to human readable (and translated) string
Function always runs in NaSMail gettext domain. Don't use it to detect upload errors. Function only provides error message _after_ upload error is detected.
Makes sure that number is 32bit unsigned integer
Primary function use - sanitizing of passed_id value.
Multibyte aware string padding
Currently code allows only ascii symbols in $pad_string. If pad is not in ascii, code won't be able to calculate correct pad string.
Provides backwards compatibility with PHP5 scandir() function
Function was originally written for SquirrelMail gpg plugin
Checks for browsers with broken JavaScript support.
Obsolate function.
Wrapper that is used to switch between vanilla and multibyte strpos functions.
Wrapper that is used to switch between vanilla and multibyte substr functions.
Provides compatibility with PHP5+ stream_get_contents() for PHP4
Documentation generated on Sun, 22 Nov 2009 17:36:29 +0200 by phpDocumentor 1.4.3