function execute() { $context = $this->getContext(); $controller = $context->getController(); $request = $context->getRequest(); $user = $context->getUser(); // 管理者かどうか確認 if (!$this->get_execute_privilege()) { $controller->forward(SECURE_MODULE, SECURE_ACTION); return; } $acs_user_info_row = $user->getAttribute('acs_user_info_row'); // get $user_community_id = $user->getAttribute('user_id'); $target_user_info_row = ACSUser::get_user_profile_row($user_community_id, 'include_private_flag'); // ユーザ情報の削除フラグを変更する $ret = ACSUser::delete_user_community($user_community_id); if (!$ret) { echo "Warning : DB ERROR : Delete user failed."; return; } // ログ登録: ユーザ削除 ACSLog::set_log($acs_user_info_row, 'Remove User', $ret, "[UserID:{$target_user_info_row['user_id']}]"); // ユーザ一覧を表示 $user_list_url = $this->getControllerPath('System', 'UserList'); header("Location: {$user_list_url}"); }