functions.php - Addressbook Import-Export functions
Copyright (c) 1999-2006 The SquirrelMail Project Team Copyright (c) 2007,2009 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING.
Uses standard plugin format to create a couple of forms to enable import/export of CSV files to/from the address book.
load form functions
site configuration
load default configuration
load sqm_baseuri() function
Add import/export form
(internal function)
Prints selection boxes in imported data table headers
Send the field numbers entered in the text boxes by the user back to this script for more processing email is handled differently, not being an array
returns size integer formated in bytes, Kbytes or Mbytes
Own error message function
Function provides better controls than internal NaSMail error_box() function.
fgetcsv wrapper to solve differences between 4.3.0+ and older
Creates address book selection options
Tags use 'backend' input field.
Backend ($v-bname, $v->listing and $v-writeable) specifics:
local_file - writeable parameter is available. listing parameter is available since 1.5.1. Older listing behavior defaults to true
global_file - backend is merged with local_file in 1.4.4 and 1.5.1. writeable parameter is available. listing parameter is not available and defaults to true.
database - writeable parameter is available. listing parameter is available since 1.4.4 and 1.5.1. Older listing behavior defaults to true.
ldap_server - writeable parameter is not available and backend is read only. listing parameter is available since 1.5.1. Older listing behavior defaults to false. number of returned results can be limited by backend options. backend can be uninitialized in some cases.
Listing is evaluated by list_addr() function behavior. In some cases backends might allow listing with wide search in search() method, but such backend behavior is treated as unsupported and might be removed in some SquirrelMail version.
Documentation generated on Sun, 22 Nov 2009 17:36:34 +0200 by phpDocumentor 1.4.3