From 67399ba1ad971121c90502947b4a47a943ef28d4 Mon Sep 17 00:00:00 2001 From: "jisangs (iMac)" Date: Wed, 20 Jul 2022 22:51:20 +0900 Subject: [PATCH] Add: send_mail_to_7days_left_maestro.php --- .../old/send_mail_to_30days_left_maestro.php | 0 .../old/send_mail_to_7days_left_maestro.php | 0 .../batch/old/send_mail_to_unpaid_maestro.php | 0 .../php => php-cli}/batch/old/test_ncloud.php | 0 .../batch/old/test_sendmail.php | 0 .../batch/send_mail_to_7days_left_maestro.php | 52 +++++++++++++++++++ .../php/batch => php-cli}/test_argument.php | 0 7 files changed, 52 insertions(+) rename src/{web/php => php-cli}/batch/old/send_mail_to_30days_left_maestro.php (100%) rename src/{web/php => php-cli}/batch/old/send_mail_to_7days_left_maestro.php (100%) rename src/{web/php => php-cli}/batch/old/send_mail_to_unpaid_maestro.php (100%) rename src/{web/php => php-cli}/batch/old/test_ncloud.php (100%) rename src/{web/php => php-cli}/batch/old/test_sendmail.php (100%) create mode 100644 src/php-cli/batch/send_mail_to_7days_left_maestro.php rename src/{web/php/batch => php-cli}/test_argument.php (100%) diff --git a/src/web/php/batch/old/send_mail_to_30days_left_maestro.php b/src/php-cli/batch/old/send_mail_to_30days_left_maestro.php similarity index 100% rename from src/web/php/batch/old/send_mail_to_30days_left_maestro.php rename to src/php-cli/batch/old/send_mail_to_30days_left_maestro.php diff --git a/src/web/php/batch/old/send_mail_to_7days_left_maestro.php b/src/php-cli/batch/old/send_mail_to_7days_left_maestro.php similarity index 100% rename from src/web/php/batch/old/send_mail_to_7days_left_maestro.php rename to src/php-cli/batch/old/send_mail_to_7days_left_maestro.php diff --git a/src/web/php/batch/old/send_mail_to_unpaid_maestro.php b/src/php-cli/batch/old/send_mail_to_unpaid_maestro.php similarity index 100% rename from src/web/php/batch/old/send_mail_to_unpaid_maestro.php rename to src/php-cli/batch/old/send_mail_to_unpaid_maestro.php diff --git a/src/web/php/batch/old/test_ncloud.php b/src/php-cli/batch/old/test_ncloud.php similarity index 100% rename from src/web/php/batch/old/test_ncloud.php rename to src/php-cli/batch/old/test_ncloud.php diff --git a/src/web/php/batch/old/test_sendmail.php b/src/php-cli/batch/old/test_sendmail.php similarity index 100% rename from src/web/php/batch/old/test_sendmail.php rename to src/php-cli/batch/old/test_sendmail.php diff --git a/src/php-cli/batch/send_mail_to_7days_left_maestro.php b/src/php-cli/batch/send_mail_to_7days_left_maestro.php new file mode 100644 index 0000000..836bcdc --- /dev/null +++ b/src/php-cli/batch/send_mail_to_7days_left_maestro.php @@ -0,0 +1,52 @@ +prepare($query); + $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; +} + +?> \ No newline at end of file diff --git a/src/web/php/batch/test_argument.php b/src/php-cli/test_argument.php similarity index 100% rename from src/web/php/batch/test_argument.php rename to src/php-cli/test_argument.php