process_form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. $action_success = '&nbsp;';
  3. $temp_obj               = new User;
  4. $temp_obj->user_name    = $target_username;
  5. $temp_obj->domain_id    = $user_obj->domain_id;
  6. $ret_vals = $user_db->Get( $temp_obj );
  7. $other_obj              = new User;
  8. /*
  9. TODO :
  10. If they are editing a username don't allow edit's to another username
  11. */
  12. if ( $ret_vals[ 0 ] == true ) {
  13.    $other_obj = $ret_vals[ 1 ];
  14.    $temp_obj->Copy( $other_obj );
  15.    $temp_obj->password  = $edit_password;
  16.    if ( $edit_login_enabled == 'true' ) {
  17.       $temp_obj->login_deny   = 1;
  18.       } else {
  19.       $temp_obj->login_deny   = 0;
  20.    }
  21.    $ret_vals = $user_db->Modify( $temp_obj );
  22.    if( $ret_vals[ 0 ] == true ) {
  23.       $action_success = 'User sucessfully edited.';
  24.       $admin_privs = new AdminPrivileges();
  25.       $admin_privs->add_users       = $edit_add_users;
  26.       $admin_privs->edit_users      = $edit_edit_users;
  27.       $admin_privs->delete_users    = $edit_delete_users;
  28.       $ret_vals = 
  29.          $admin_db->Modify( $temp_obj->user_id, $admin_privs );
  30.       if ( $ret_vals[ 0 ] == false ) {
  31.          $action_success = 'ERROR in editing user : ' . $ret_vals[ 1 ];
  32.       }
  33.    } else {
  34.       $action_success = 'ERROR in editing user : ' . $ret_vals[ 1 ];
  35.    }
  36. }
  37. include( './manager/templates/subdomain_user_management/user_navigator.inc' );
  38. ?>