summaryrefslogtreecommitdiff
path: root/www/admin/addressbook/addr.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/addressbook/addr.php.in')
-rw-r--r--www/admin/addressbook/addr.php.in24
1 files changed, 0 insertions, 24 deletions
diff --git a/www/admin/addressbook/addr.php.in b/www/admin/addressbook/addr.php.in
index 934f9ad..5d816be 100644
--- a/www/admin/addressbook/addr.php.in
+++ b/www/admin/addressbook/addr.php.in
@@ -74,30 +74,6 @@ function checkuniquemail( $form, $key, $value ) {
}
}
-function checkuniquealias( $form, $key, $value ) {
- global $ldap;
- global $action;
- global $dn;
- $excludedn = false;
- if( $action == 'save' ) $excludedn = trim($dn);
- $lst = array_unique( array_filter( array_map( 'trim', preg_split( '/\n/', $value ) ), 'strlen') );
- $str = '';
- foreach( $lst as $alias ) {
- debug( "looking at $alias, exluding $dn" );
- if( $ldap->countMail( $_SESSION['base_dn'], $alias, $excludedn ) > 0 ) {
- $str .= _('Email address ').MySmarty::htmlentities($alias)._(' collides with an address already used for another user, a vCard or a distribution list.<br />');
- }
- }
- return $str;
-}
-
-function checkphone( $form, $key, $value )
-{
- if( empty($value) ) return ''; // OK
- else if( !preg_match('/^[a-zA-Z0-9()-+\/.=?:]*$/',$value) ) return _('Phone entries may only contain a-z, numbers and the characters ()-+/.=?:');
- else return '';
-}
-
/**** Submenu for current page ***/
$menuitems[$sidx]['selected'] = 'selected';
$heading = '';