wilde: server/kolab-webadmin/kolab-webadmin/www/admin/maintainer maintainer.php.in, 1.4, 1.5

cvs at kolab.org cvs at kolab.org
Wed Jan 10 17:50:45 CET 2007


Author: wilde

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/maintainer
In directory doto:/tmp/cvs-serv7039/kolab-webadmin/kolab-webadmin/www/admin/maintainer

Modified Files:
	maintainer.php.in 
Log Message:
Code cleanup: moved the redundant function `checkpw' to include/passwd.php.


Index: maintainer.php.in
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/maintainer/maintainer.php.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- maintainer.php.in	10 Jan 2007 15:59:58 -0000	1.4
+++ maintainer.php.in	10 Jan 2007 16:50:43 -0000	1.5
@@ -53,24 +53,6 @@
   }
 }
 
-// Check that password match
-function checkpw( $form, $key, $value ) {
-  global $action;
-  if( $action == "firstsave" ) {
-    if( $key == 'password_0' ) {
-      if( $value == '' ) return _('Password is empty');
-    } else if( $key == 'password_1' ) {
-      if( $value != $_POST['password_0'] ) {
-        return _('Passwords dont match');
-      }
-    }
-  } else {
-    if( $value != $_POST['password_0'] ) {
-      return _('Passwords dont match');
-    }
-  }
-  return '';
-}
 function fill_form_for_modify( &$form, &$ldap_object ) {
   global $auth;
   if (is_array($ldap_object['sn'])) $lastname = $ldap_object['sn'][0];





More information about the commits mailing list