wilde: server/kolab-webadmin/kolab-webadmin/www/admin/administrator admin.php.in, 1.3, 1.4
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/administrator
In directory doto:/tmp/cvs-serv7039/kolab-webadmin/kolab-webadmin/www/admin/administrator
Modified Files:
admin.php.in
Log Message:
Code cleanup: moved the redundant function `checkpw' to include/passwd.php.
Index: admin.php.in
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/administrator/admin.php.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- admin.php.in 10 Jan 2007 15:59:58 -0000 1.3
+++ admin.php.in 10 Jan 2007 16:50:43 -0000 1.4
@@ -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 ) {
if (is_array($ldap_object['sn'])) $lastname = $ldap_object['sn'][0];
else $lastname = $ldap_object['sn'];
More information about the commits
mailing list