process_form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <?php
- $action_success = ' ';
- $temp_obj = new User;
- $temp_obj->user_name = $target_username;
- $temp_obj->domain_id = $user_obj->domain_id;
- $ret_vals = $user_db->Get( $temp_obj );
- $other_obj = new User;
- /*
- TODO :
- If they are editing a username don't allow edit's to another username
- */
- if ( $ret_vals[ 0 ] == true ) {
- $other_obj = $ret_vals[ 1 ];
- $temp_obj->Copy( $other_obj );
- $temp_obj->password = $edit_password;
- if ( $edit_login_enabled == 'true' ) {
- $temp_obj->login_deny = 1;
- } else {
- $temp_obj->login_deny = 0;
- }
- $ret_vals = $user_db->Modify( $temp_obj );
- if( $ret_vals[ 0 ] == true ) {
- $action_success = 'User sucessfully edited.';
- $admin_privs = new AdminPrivileges();
- $admin_privs->add_users = $edit_add_users;
- $admin_privs->edit_users = $edit_edit_users;
- $admin_privs->delete_users = $edit_delete_users;
- $ret_vals =
- $admin_db->Modify( $temp_obj->user_id, $admin_privs );
- if ( $ret_vals[ 0 ] == false ) {
- $action_success = 'ERROR in editing user : ' . $ret_vals[ 1 ];
- }
- } else {
- $action_success = 'ERROR in editing user : ' . $ret_vals[ 1 ];
- }
- }
- include( './manager/templates/subdomain_user_management/user_navigator.inc' );
- ?>