diff --git a/AGENTS.md b/AGENTS.md
index 59d7df3..220c595 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -45,7 +45,6 @@ src/
│ ├── js/ # 프론트엔드 JavaScript
│ ├── css/ # 스타일시트
│ ├── server/ # PHP 백엔드 엔드포인트
-│ ├── admin/ # 관리자 패널 HTML
│ ├── popup/ # 팝업/모달 HTML
│ └── sql/ # 데이터베이스 스키마 및 시드 파일
├── php-cli/ # PHP 배치 스크립트 (cron으로 실행)
@@ -67,7 +66,6 @@ test/ # 수동 테스트용 HTML/JS 파일 (자동화된 테스트
- `player/` — 플레이어 계정 CRUD
- `record/` — 게임 결과 및 랭킹 저장/조회
- `maestro/` — 교사 학급 관리 (17개 엔드포인트)
-- `admin/` — 관리자 운영 (11개 엔드포인트)
- `license_timer/` — 구독/라이선스 관리
- `mail/` — PHPMailer + Gmail SMTP를 통한 이메일 발송
- `lib/` — 공용 PHP 라이브러리 (`send_reply_json.php`, `db_maestro.php` 등)
@@ -86,7 +84,7 @@ test/ # 수동 테스트용 HTML/JS 파일 (자동화된 테스트
|------|-------------|
| Player | 게임을 플레이하는 최종 사용자 (무료 또는 유료) |
| Maestro | 학생 플레이어 그룹을 관리하는 교사 |
-| Admin | 전체 권한을 가진 시스템 관리자 |
+| Admin | 전체 권한을 가진 시스템 관리자 (별도 프로젝트인 초코어드민에서 운영) |
### Python 배치 스크립트
diff --git a/README.md b/README.md
index 2d9cfb5..65a2459 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,6 @@
- 초코마에 어드민
- https://chocoadmin.jinaju.com/
- 계정 정보: jisangs / friends
- - (구) http://chocomae.jinaju.com/mouse_typing/src/web/admin/login.html
## 스테이지 서버
diff --git a/src/web/admin/admin_all_list.html b/src/web/admin/admin_all_list.html
deleted file mode 100644
index 5800483..0000000
--- a/src/web/admin/admin_all_list.html
+++ /dev/null
@@ -1,188 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
마에스트로 전체 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/admin_expiration_list.html b/src/web/admin/admin_expiration_list.html
deleted file mode 100644
index 4b5d976..0000000
--- a/src/web/admin/admin_expiration_list.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
계정 유효기간 만료 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/admin_extension_list.html b/src/web/admin/admin_extension_list.html
deleted file mode 100644
index adecf4c..0000000
--- a/src/web/admin/admin_extension_list.html
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
마에스트로 유효 기간 연장 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/admin_header.html b/src/web/admin/admin_header.html
deleted file mode 100644
index 5617300..0000000
--- a/src/web/admin/admin_header.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/web/admin/admin_register_list.html b/src/web/admin/admin_register_list.html
deleted file mode 100644
index 07cf3b8..0000000
--- a/src/web/admin/admin_register_list.html
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
신규 마에스트로 등록 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/admin_send_email.html b/src/web/admin/admin_send_email.html
deleted file mode 100644
index ba25c52..0000000
--- a/src/web/admin/admin_send_email.html
+++ /dev/null
@@ -1,320 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
이메일 발송
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/admin_upgrade_list.html b/src/web/admin/admin_upgrade_list.html
deleted file mode 100644
index 5f29b6c..0000000
--- a/src/web/admin/admin_upgrade_list.html
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
- 마우스 타자 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
마에스트로 업그레이드 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/login.html b/src/web/admin/login.html
deleted file mode 100644
index 2cc663c..0000000
--- a/src/web/admin/login.html
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
- 관리자 페이지
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/css/admin.css b/src/web/css/admin.css
deleted file mode 100644
index 888ed0f..0000000
--- a/src/web/css/admin.css
+++ /dev/null
@@ -1,103 +0,0 @@
-@charset "utf-8";
-
-
\ No newline at end of file
diff --git a/src/web/server/admin/activate_stage.php b/src/web/server/admin/activate_stage.php
deleted file mode 100644
index c08cd62..0000000
--- a/src/web/server/admin/activate_stage.php
+++ /dev/null
@@ -1,29 +0,0 @@
-query($query);
-
-for($i = 0; $i < $cnt; $i++) {
- $array_item = $active_stage_list[$i];
-
- $query = "UPDATE afterschool_activated_stage SET Activated = 1 WHERE StageName = ?";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param('s', $array_item);
- $stmt->execute();
-
- if($stmt->affected_rows > 0) {
- echo($array_item." : activated
");
- } else {
- echo $array_item." : db error
";
- }
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/extension_maestro.php b/src/web/server/admin/extension_maestro.php
deleted file mode 100644
index af03baf..0000000
--- a/src/web/server/admin/extension_maestro.php
+++ /dev/null
@@ -1,84 +0,0 @@
-prepare($query);
- $stmt->bind_param("si", $new_available_date, $maestro_id);
- $stmt->execute();
-}
-
-function change_extension_request_status_to_close($maestro_id) {
- global $db_conn;
-
- $query = "
- UPDATE maestro_extension
- SET Status = 2
- WHERE MaestroID = ? AND Status = 1;
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestro_id);
- $stmt->execute();
-}
-
-function change_extension_request_status_to_applied($maestro_extension_id) {
- global $db_conn;
-
- $query = "
- UPDATE maestro_extension
- SET Status = 3
- WHERE MaestroExtensionID = ?
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestro_extension_id);
- $stmt->execute();
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/login.php b/src/web/server/admin/login.php
deleted file mode 100644
index 144c1ec..0000000
--- a/src/web/server/admin/login.php
+++ /dev/null
@@ -1,89 +0,0 @@
-prepare($query);
- $stmt->bind_param("s", $adminName);
- $stmt->execute();
- $stmt->bind_result($maestroID);
- // while($stmt->fetch()) {
- // ;
- // }
- $stmt->fetch();
- $stmt->close();
-
- return $maestroID;
-}
-
-function login($adminName, $password) {
- global $db_conn;
-
- $query = "
- SELECT AdminID, AccountType, ActivateStatus
- FROM admin
- WHERE Name = ? AND Password = PASSWORD(?)
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("ss", $adminName, $password);
- $stmt->execute();
- $stmt->bind_result($adminID, $accountType, $activateStatus);
- // while($stmt->fetch())
- $stmt->fetch();
- $stmt->close();
-
- $result["adminID"] = $adminID;
- $result["accountType"] = $accountType;
- $result["activateStatus"] = $activateStatus;
- return $result;
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/maestro_all_list.php b/src/web/server/admin/maestro_all_list.php
deleted file mode 100644
index 9fe9adb..0000000
--- a/src/web/server/admin/maestro_all_list.php
+++ /dev/null
@@ -1,80 +0,0 @@
-prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- // $stmt->bind_param("ii", $maestroName, $startNo);
- $stmt->execute();
- $stmt->bind_result($maestroID, $name, $accountType, $activateStatus, $availableActivateDateTime , $acceptClausesDateTime, $playerCount);
-
- $maestroList = array();
- while($stmt->fetch()) {
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $name;
- $maestro["accountType"] = $accountType;
- $maestro["activateStatus"] = $activateStatus;
- $maestro["availableActivateDateTime"] = $availableActivateDateTime;
- $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
- $maestro["playerCount"] = $playerCount;
- array_push($maestroList, $maestro);
- }
-
- return $maestroList;
-}
-
-function get_maestro_list_by_name($maestroName) {
- global $db_conn;
-
- $query = "
- SELECT MaestroID, Name, AccountType, ActivateStatus, AcceptClausesDateTime, PlayerCount
- FROM maestro
- WHERE Name LIKE CONCAT('%', ?, '%')
- ORDER BY MaestroID DESC
- ";
- $stmt = $db_conn->prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- $stmt->bind_param("s", $maestroName);
- $stmt->execute();
- $stmt->bind_result($maestroID, $name, $accountType, $activateStatus, $acceptClausesDateTime, $playerCount);
-
- $maestroList = array();
- while($stmt->fetch()) {
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $name;
- $maestro["accountType"] = $accountType;
- $maestro["activateStatus"] = $activateStatus;
- $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
- $maestro["playerCount"] = $playerCount;
- array_push($maestroList, $maestro);
- }
-
- return $maestroList;
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/maestro_extension_list.php b/src/web/server/admin/maestro_extension_list.php
deleted file mode 100644
index ed967f0..0000000
--- a/src/web/server/admin/maestro_extension_list.php
+++ /dev/null
@@ -1,81 +0,0 @@
-prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- // $stmt->bind_param("ii", $maestroName, $startNo);
- $stmt->execute();
- $stmt->bind_result($maestroExtensionID, $maestroID, $maestroName, $registeredAccountType, $requestedDateTime, $availableActivateDateTime, $status);
-
- $maestroExtensionList = array();
- while($stmt->fetch()) {
- $maestro["maestroExtensionID"] = $maestroExtensionID;
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $maestroName;
- $maestro["registeredAccountType"] = $registeredAccountType;
- $maestro["requestedDateTime"] = $requestedDateTime;
- $maestro["availableActivateDateTime"] = $availableActivateDateTime;
- $maestro["status"] = $status;
- array_push($maestroExtensionList, $maestro);
- }
-
- return $maestroExtensionList;
-}
-
-function get_maestro_extension_list_by_name($searchMaestroName) {
- global $db_conn;
-
- $query = "
- SELECT E.MaestroExtensionID, E.MaestroID, M.Name, E.AccountType, E.RequestedDateTime, M.AvailableActivateDateTime, E.Status
- FROM maestro_extension E, maestro M
- WHERE M.Name LIKE CONCAT('%', ?, '%') AND E.MaestroID = M.MaestroID
- ORDER BY E.MaestroExtensionID DESC
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("s", $searchMaestroName);
- $stmt->execute();
- $stmt->bind_result($maestroExtensionID, $maestroID, $maestroName, $registeredAccountType, $requestedDateTime, $availableActivateDateTime, $status);
-
- $maestroExtensionList = array();
- while($stmt->fetch()) {
- $maestro["maestroExtensionID"] = $maestroExtensionID;
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $maestroName;
- $maestro["registeredAccountType"] = $registeredAccountType;
- $maestro["requestedDateTime"] = $requestedDateTime;
- $maestro["availableActivateDateTime"] = $availableActivateDateTime;
- $maestro["status"] = $status;
- array_push($maestroExtensionList, $maestro);
- }
-
- return $maestroExtensionList;
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/maestro_registered_list.php b/src/web/server/admin/maestro_registered_list.php
deleted file mode 100644
index 1934b1e..0000000
--- a/src/web/server/admin/maestro_registered_list.php
+++ /dev/null
@@ -1,76 +0,0 @@
-prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- // $stmt->bind_param("ii", $maestroName, $startNo);
- $stmt->execute();
- $stmt->bind_result($maestroID, $name, $accountType, $acceptClausesDateTime);
-
- $maestroList = array();
- while($stmt->fetch()) {
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $name;
- $maestro["accountType"] = $accountType;
- $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
- array_push($maestroList, $maestro);
- }
-
- return $maestroList;
-}
-
-function get_maestro_list_by_name($maestroName) {
- global $db_conn;
-
- $query = "
- SELECT MaestroID, Name, AccountType, AcceptClausesDateTime
- FROM maestro
- WHERE Name LIKE CONCAT('%', ?, '%') AND ActivateStatus=0
- ORDER BY MaestroID DESC
- ";
- $stmt = $db_conn->prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- $stmt->bind_param("s", $maestroName);
- $stmt->execute();
- $stmt->bind_result($maestroID, $name, $accountType, $acceptClausesDateTime);
-
- $maestroList = array();
- while($stmt->fetch()) {
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $name;
- $maestro["accountType"] = $accountType;
- $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
- array_push($maestroList, $maestro);
- }
-
- return $maestroList;
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/maestro_upgrade_list.php b/src/web/server/admin/maestro_upgrade_list.php
deleted file mode 100644
index 9c64c8c..0000000
--- a/src/web/server/admin/maestro_upgrade_list.php
+++ /dev/null
@@ -1,85 +0,0 @@
-prepare($query);
- // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
- // $stmt->bind_param("ii", $maestroName, $startNo);
- $stmt->execute();
- $stmt->bind_result($maestroUpgradeID, $maestroID, $maestroName, $registeredActivateStatus, $registeredAccountType, $requestedAccountType, $requestedDateTime, $availableActivateDateTime, $status);
-
- $maestroUpgradeList = array();
- while($stmt->fetch()) {
- $maestro["maestroUpgradeID"] = $maestroUpgradeID;
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $maestroName;
- $maestro["registeredActivateStatus"] = $registeredActivateStatus;
- $maestro["registeredAccountType"] = $registeredAccountType;
- $maestro["requestedAccountType"] = $requestedAccountType;
- $maestro["requestedDateTime"] = $requestedDateTime;
- $maestro["availableActivateDateTime"] = $availableActivateDateTime;
- $maestro["status"] = $status;
- array_push($maestroUpgradeList, $maestro);
- }
-
- return $maestroUpgradeList;
-}
-
-function get_maestro_update_list_by_name($searchMaestroName) {
- global $db_conn;
-
- $query = "
- SELECT U.MaestroUpgradeID, U.MaestroID, M.Name, U.RegisteredActivateStatus, U.RegisteredAccountType, U.RequestedAccountType, U.RequestedDateTime, M.AvailableActivateDateTime, U.Status
- FROM maestro_upgrade U, maestro M
- WHERE M.Name LIKE CONCAT('%', ?, '%') AND U.MaestroID = M.MaestroID
- ORDER BY U.MaestroUpgradeID DESC
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("s", $searchMaestroName);
- $stmt->execute();
- $stmt->bind_result($maestroUpgradeID, $maestroID, $maestroName, $registeredActivateStatus, $registeredAccountType, $requestedAccountType, $requestedDateTime, $availableActivateDateTime, $status);
-
- $maestroUpgradeList = array();
- while($stmt->fetch()) {
- $maestro["maestroUpgradeID"] = $maestroUpgradeID;
- $maestro["maestroID"] = $maestroID;
- $maestro["maestroName"] = $maestroName;
- $maestro["registeredActivateStatus"] = $registeredActivateStatus;
- $maestro["registeredAccountType"] = $registeredAccountType;
- $maestro["requestedAccountType"] = $requestedAccountType;
- $maestro["requestedDateTime"] = $requestedDateTime;
- $maestro["availableActivateDateTime"] = $availableActivateDateTime;
- $maestro["status"] = $status;
- array_push($maestroUpgradeList, $maestro);
- }
-
- return $maestroUpgradeList;
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/register_maestro.php b/src/web/server/admin/register_maestro.php
deleted file mode 100644
index 8b3e23f..0000000
--- a/src/web/server/admin/register_maestro.php
+++ /dev/null
@@ -1,247 +0,0 @@
-prepare($query);
- $stmt->bind_param("i", $maestroID);
- $stmt->execute();
-
- return $stmt->affected_rows;
-}
-
-function add_maestro_test_player($maestroID) {
- global $db_conn;
-
- $query = "
- INSERT INTO player (MaestroID, Name, EnterCode, AccountType)
- VALUES (?, '마에스트로', '', 1)
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestroID);
- $stmt->execute();
-}
-
-function get_maestro_test_player($maestroID) {
- global $db_conn;
-
- $query = "
- SELECT PlayerID
- FROM player
- WHERE MaestroID = ? AND AccountType = 1
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestroID);
- $stmt->execute();
- $stmt->bind_result($playerID);
- $stmt->fetch();
- $stmt->close();
-
- return $playerID;
-}
-
-function set_maestro_test_player($maestroID, $playerID) {
- global $db_conn;
-
- $query = "
- UPDATE maestro
- SET MaestroTestID = ?
- WHERE MaestroID = ?
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("ii", $playerID, $maestroID);
- $stmt->execute();
-
- return $stmt->affected_rows;
-}
-
-function add_default_activated_apps($maestroID) {
- global $db_conn;
-
- $query = "
- SELECT AppID
- FROM app
- WHERE Status = 1;
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->execute();
- $stmt->bind_result($appID);
-
- $activeAppList = array();
- while($stmt->fetch()) {
- array_push($activeAppList, $appID);
- }
- $stmt->close();
-
- $count = count($activeAppList);
- for($i = 0; $i < $count; $i++) {
- $activeAppID = $activeAppList[$i];
-
- $query = "
- INSERT INTO active_app (MaestroID, AppID)
- VALUES (?, ?);
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("ii", $maestroID, $activeAppID);
- $stmt->execute();
- $stmt->close();
- }
-}
-
-function add_maestro_sample_player_data($maestro_id) {
- $samplePlayerList = make_sample_player_list($maestro_id);
- for($i = 0; $i < count($samplePlayerList); $i++) {
- insert_maestro_sample_player_data($maestro_id, $samplePlayerList[$i]);
- }
-}
-
-
-function insert_maestro_sample_player_data($maestro_id, $player) {
- global $db_conn;
-
- $query = "
- INSERT INTO player (MaestroID, Name, EnterCode, AccountType)
- VALUES (?, ?, ?, ?)
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("issi",
- $maestro_id,
- $player["Name"],
- $player["EnterCode"],
- $player["AccountType"]
- );
- $stmt->execute();
- $stmt->close();
-}
-
-function make_sample_player_list() {
- $samplePlayerList = array();
-
- $player["Name"] = "050215";
- $player["EnterCode"] = "050215";
- $player["AccountType"] = 0;
- array_push($samplePlayerList, $player);
-
- $player["Name"] = "6-3_이철수";
- $player["EnterCode"] = "1111";
- $player["AccountType"] = 0;
- array_push($samplePlayerList, $player);
-
- $player["Name"] = "3-1김영희";
- $player["EnterCode"] = "0301";
- $player["AccountType"] = 0;
- array_push($samplePlayerList, $player);
-
- $player["Name"] = "홍길동";
- $player["EnterCode"] = "181231";
- $player["AccountType"] = 0;
- array_push($samplePlayerList, $player);
-
- return $samplePlayerList;
-}
-
-function count_registered_player($maestroID) {
- global $db_conn;
-
- $query = "
- SELECT COUNT(PlayerID)
- FROM player
- WHERE MaestroID = ? AND AccountType = 0
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestroID);
- $stmt->execute();
- $stmt->bind_result($countPlayer);
- // while($stmt->fetch())
- $stmt->fetch();
- $stmt->close();
-
- return $countPlayer;
-}
-
-function update_count_registered_player($maestroID, $countPlayer) {
- global $db_conn;
-
- $query = "
- UPDATE maestro
- SET PlayerCount = ?
- WHERE MaestroID = ?
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("ii", $countPlayer, $maestroID);
- $stmt->execute();
-}
-
-?>
\ No newline at end of file
diff --git a/src/web/server/admin/upgrade_maestro.php b/src/web/server/admin/upgrade_maestro.php
deleted file mode 100644
index 5338f2b..0000000
--- a/src/web/server/admin/upgrade_maestro.php
+++ /dev/null
@@ -1,81 +0,0 @@
- ".$upgrade_account_type);
-
-// set_data("maestro_upgrade_id", $maestro_upgrade_id);
-// set_data("maestro_id", $maestro_id);
-// set_data("upgrade_account_type", $upgrade_account_type);
-send_result_success();
-exit;
-
-
-
-function upgrade_maestro($maestro_id, $upgrade_account_type) {
- global $db_conn;
-
- $query = "
- UPDATE maestro
- SET AccountType = ?, ActivateStatus = 2, AvailableActivateDateTime = DATE_ADD(NOW(), INTERVAL 1 YEAR)
- WHERE MaestroID = ?;
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("ii", $upgrade_account_type, $maestro_id);
- $stmt->execute();
-}
-
-function change_upgrade_request_status_to_close($maestro_id) {
- global $db_conn;
-
- $query = "
- UPDATE maestro_upgrade
- SET Status = 2
- WHERE MaestroID = ? AND Status = 1;
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestro_id);
- $stmt->execute();
-}
-
-function change_upgrade_request_status_to_applied($maestro_upgrade_id) {
- global $db_conn;
-
- $query = "
- UPDATE maestro_upgrade
- SET Status = 3
- WHERE MaestroUpgradeID = ?
- ";
- $stmt = $db_conn->prepare($query);
- $stmt->bind_param("i", $maestro_upgrade_id);
- $stmt->execute();
-}
-
-?>
\ No newline at end of file