Commit graph

56 commits

Author SHA1 Message Date
Fredrik Jervfors
c076a1f1ae Update copyright 2013-07-26 17:31:02 +00:00
pdontthink
acc409fb2a Updating copyrights. Happy New Year. 2012-01-02 02:09:17 +00:00
pdontthink
3e5f552776 Unify address book searches. See ChangeLog comments. Also, fixed bug wherein file backend wasn't escaping regular expression correctly. File based backend used to search all fields at once, concatenated by spaces, which 'worked', but is misleading and nothing like the other backends. 2011-12-28 02:59:31 +00:00
pdontthink
fc57bf2b59 Happy New Year! 2011-01-06 03:16:21 +00:00
pdontthink
7aa0e60863 Update copyrights to 2010 2010-01-25 03:23:30 +00:00
Fredrik Jervfors
134d462c94 The copyright symbol isn't really needed since the word "copyright" is there. Also it doesn't display right in the documentation. 2009-09-29 12:15:33 +00:00
Fredrik Jervfors
0a6245814a There are too many modified files being committed without the copyright year being updated, so here's a copyright year update the old-fashioned style. 2009-04-15 22:00:49 +00:00
pdontthink
a0adab5050 Add error handling to abook db lookups 2008-07-02 03:30:03 +00:00
pdontthink
327222434c Add clarifying docs 2008-06-20 07:57:38 +00:00
pdontthink
0ac7a4f2b2 Allow lookups by fields other than nickname; LDAP backend needs to have this implemented if poss 2008-06-19 01:07:37 +00:00
pdontthink
67ed8dea89 Change string casing 2008-05-15 06:33:12 +00:00
Thijs Kinkhorst
11b10ba5d1 increment year in copyright notices 2007-01-13 20:15:44 +00:00
tokul
59ae6f3ac2 removing trailing ?> from function scripts 2006-07-15 12:01:32 +00:00
tokul
5064335080 Removed html formating from address book backend classes. Added
fullname() method to addressbook_backend class. Moved
htmlspecialchars() sanitizing from address book backend classes to
html output code. If third party code displays errors from address
book object in html, errors must be sanitized and ASCII line feeds
should be converted to html line breaks.

'addressbook' strings are replaced with 'address book'. Spellcheck
fails on 'addressbook'.
2006-06-04 12:42:24 +00:00
tokul
37b294db59 don't use $r == DB_OK checks, because they cause PHP warnings when $r is DB_Error object.
turned on field case portability for Oracle.
escaped SQL wildcards in search() method
handle nickname changes in modify() method. Users could get DB error when new nickname is already in use
make search case insensitive in serch() method.
2006-05-28 09:13:03 +00:00
tokul
05d7753547 documentation fix. 2006-05-15 18:38:51 +00:00
tokul
e13f94232d moving error message to class constructor function. Prevents
output when functions/abook_database.php is loaded.
2006-05-14 14:58:10 +00:00
stekkel
0a70f643f2 Centralized init 2006-04-05 00:22:11 +00:00
tokul
83fdb4c332 copyright update 2006-01-23 18:46:41 +00:00
jangliss
510fb1a51c Undefined index in addressbook backends. Possible trigger is import plugins. 2005-11-09 20:15:45 +00:00
Fredrik Jervfors
9ed98bb1ec phpDocumentor updates 2005-09-18 10:25:54 +00:00
tokul
97375914c1 remove html formating from error messages. XSS fixes sanitize errors and display " 2005-08-10 19:27:37 +00:00
tokul
f859fe157e removing references from backend functions. lookup causes E_NOTICE in php
4.4.0, because tries to return array(). Use of references can't be explained.
Main backend class and file/ldap backends don't use refencences. If it is
used for some reason, other lookup() should have to use references too.
I suspect that reason is performance or it is relict from some different code.
PHP manual says that developers should not use references in order to increase
performance.
2005-08-10 18:35:41 +00:00
tokul
28bdb14b26 adding ldap listing controls to conf.pl
moving some ldap configuration options to advanced section in order to
reduce number of questions in ldap configuration.
blocking use of wildcard in file and db backends when listing is disabled.
This should close #529563 in devel.
2005-06-21 09:06:04 +00:00
Fredrik Jervfors
94575cc163 String and phpDocumentor fix 2005-06-04 17:04:53 +00:00
Thijs Kinkhorst
2a8241b7df string typo 2005-06-03 08:37:41 +00:00
Fredrik Jervfors
5fcc041bd2 Replacing tabs with spaces, trimming white space at EOL and newline at EOF (PHP only) 2005-01-07 17:42:23 +00:00
Thijs Kinkhorst
a73561b911 Increment year in copyright notice. 2004-12-27 15:04:02 +00:00
tokul
3c0cbadc5b adding phpdoc to abook database class 2004-11-05 11:55:47 +00:00
Fredrik Jervfors
8c8ecffa57 Replacing tabs with spaces, trimming white space at EOL and newline at EOF 2004-11-02 22:21:34 +00:00
Fredrik Jervfors
3b83c567dd Minor cleanups 2004-08-24 00:40:28 +00:00
Fredrik Jervfors
91d6cd59d5 Removing HTML tags from strings 2004-07-01 15:03:30 +00:00
Thijs Kinkhorst
7c3465c148 Be a bit more verbose in the error message about PEAR not being included:
give a pointer as to what might be the problem (also in configtest).
Small cosmetic fixes in configtest.
2004-07-01 12:12:07 +00:00
Thijs Kinkhorst
0c7380594b In stead of just crashing, give a proper error when PEAR DB functions could
not be included.

Also, from now on I will add a vim comment to the foot of each file I commit
to make sure everyone that edits the file with vim will automatically use the
correct 4-spaces-indentation.
2004-07-01 11:54:24 +00:00
tokul
044e1c12c8 using case insensitive lookups that don't depend on sql server string comparison options.
mysql tested by me, postgresql tested by Patrick Welche <prlw1 at newn.cam.ac.uk>
2004-05-18 13:07:49 +00:00
stekkel
70d069a922 SQL injection fix. This is serious I think. 2004-04-27 19:20:18 +00:00
tokul
3302330906 Moving addressbook functions to separate phpdoc subpackage. 2004-04-12 08:00:07 +00:00
Thijs Kinkhorst
cde0377d36 We're living in 2004 now... perl is your friend for these kinds of things :) 2004-02-24 15:51:22 +00:00
tokul
98418eafd7 adding variable test 2003-12-27 09:13:26 +00:00
tokul
48ad0043fc 1. added non anonymous ldap binding patch. (thanks to Ilyak Kasnacheev <ilyak at online.ru>)
2. added ldap protocol version binding. (bug no. 829929)

3. cleaned administrator plugin options

4. added global sql address book support. Obsolates MySQL address book plugin (http://www.squirrelmail.org/plugin_view.php?id=104).
2003-12-26 09:13:37 +00:00
tassium
9098cb73e4 Preparation to begin using phpdocumentor.
Added basic @package/@subpackage tags
The decode/ files were documented slightly more thoroughly, although they're almost self-explanatory anyway.

The individual functions in the functions/ files need to be documented though, and now that this commit is in, anyone willing to write docblocks for functions should get cracking ;)
2003-10-28 21:27:47 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
simond
566cd026ec Remove isWarning as it's been dropped from PEAR with cvs versions 2002-10-15 08:25:29 +00:00
thomppj
1e2a9cc5d0 Getting ready for 1.2.0 release. 2001-12-23 07:42:40 +00:00
antipode
3e77fbc256 Style police. 2001-12-04 01:55:06 +00:00
thomppj
5d15361f1f Code cleanup brigage... 2001-12-02 09:33:02 +00:00
philippe_mingo
da2f3297dd ** -> * 2001-11-26 19:33:28 +00:00
philippe_mingo
d61b98077f Added (c) stuff and some formatting. 2001-11-21 18:38:12 +00:00
Tyler Akins
0d0de5d238 * Got bored and copied all the validate.php and define() stuff to 1.1
* Cleaned up some code
* Fixed some typos
* Added a few files (documentation, translations)
* EAGERLY awaiting 1.1 to come out
* Made all global stuff "global $varname" so the new define() method we use
  will work properly (methinks)
2001-04-19 17:58:10 +00:00
pallo
1195b78cbd Converted some ereg_replace() into str_replace().
Fixed some SQL queries in the database backend.
2001-02-05 09:33:01 +00:00