<?php
- /**
- ** addressbook.php
- **
- ** Functions and classes for the addressbook system.
- **
- ** $Id$
- **/
-
- if (defined ('addressbook_php'))
- return;
- define ('addressbook_php', true);
+ /**
+ ** addressbook.php
+ **
+ ** Copyright (c) 1999-2001 The Squirrelmail Development Team
+ ** Licensed under the GNU GPL. For full terms see the file COPYING.
+ **
+ ** Functions and classes for the addressbook system.
+ **
+ ** $Id$
+ **/
+
// This is the path to the global site-wide addressbook.
// It looks and feels just like a user's .abook file
// Include backends here.
- include('../functions/abook_local_file.php');
- include('../functions/abook_ldap_server.php');
+ require_once('../functions/abook_local_file.php');
+ require_once('../functions/abook_ldap_server.php');
// Use this if you wanna have a global address book
if (isset($address_book_global_filename))
- include('../functions/abook_global_file.php');
+ include_once('../functions/abook_global_file.php');
// Only load database backend if database is configured
global $addrbook_dsn;
if(isset($addrbook_dsn))
- include('../functions/abook_database.php');
+ include_once('../functions/abook_database.php');
// Create and initialize an addressbook object.
}
if(eregi('[ \\:\\|\\#\\"\\!]', $userdata['nickname'])) {
- $this->error = _("Nickname contain illegal characters");
+ $this->error = _("Nickname contains illegal characters");
return false;
}
}
if(eregi('[\\: \\|\\#"\\!]', $userdata['nickname'])) {
- $this->error = _("Nickname contain illegal characters");
+ $this->error = _("Nickname contains illegal characters");
return false;
}