summaryrefslogtreecommitdiff
path: root/www/admin/user/user.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/user/user.php.in')
-rw-r--r--www/admin/user/user.php.in36
1 files changed, 0 insertions, 36 deletions
diff --git a/www/admin/user/user.php.in b/www/admin/user/user.php.in
index ef125ea..e478b5a 100644
--- a/www/admin/user/user.php.in
+++ b/www/admin/user/user.php.in
@@ -117,23 +117,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 checkuid( $form, $key, $value ) {
global $ldap;
global $action;
@@ -221,18 +204,6 @@ function checkpolicy( $form, $key, $value ) {
return '';
}
-// Due to a cyrus imapd bug we can't currently
-// support quotas over 4095 MB, see issue1262
-function checkquota( $form, $key, $value )
-{
- if( empty($value) ) return ''; // OK
- else if( $value >= 4096 ) return _('Quota must be smaller than 4096');
- else if( $value < 0 ) return _('Quota can not be negative');
- else if( !is_numeric($value) ) return _('Quota must be a number');
- else if( (int) $value != $value ) return _('Quota must be an integer');
- else return '';
-}
-
function checkfreebusyfuture( $form, $key, $value )
{
if( empty($value) ) return ''; // OK
@@ -242,13 +213,6 @@ function checkfreebusyfuture( $form, $key, $value )
else return '';
}
-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 '';
-}
-
function policy2number( $pol, $default = 3 )
{
// Translate policy to number