Add: show availableActivateDateTime of maestro
This commit is contained in:
@@ -18,6 +18,7 @@ $playerCount = getPlayerCount($maestroID);
|
||||
set_data("name", $info["name"]);
|
||||
set_data("email", $info["email"]);
|
||||
set_data("accountType", $info["accountType"]);
|
||||
set_data("availableActivateDateTime", $info["availableActivateDateTime"]);
|
||||
set_data("playerCount", $playerCount);
|
||||
send_result_success();
|
||||
exit;
|
||||
@@ -27,14 +28,14 @@ function get_maestro_info($maestroID) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
SELECT Name, Email, AccountType, PlayerCount
|
||||
SELECT Name, Email, AccountType, AvailableActivateDateTime, PlayerCount
|
||||
FROM maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("s", $maestroID);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($name, $email, $accountType, $playerCount);
|
||||
$stmt->bind_result($name, $email, $accountType, $availableActivateDateTime, $playerCount);
|
||||
// while($stmt->fetch())
|
||||
$stmt->fetch();
|
||||
$stmt->close();
|
||||
@@ -42,6 +43,7 @@ function get_maestro_info($maestroID) {
|
||||
$info["name"] = $name;
|
||||
$info["email"] = $email;
|
||||
$info["accountType"] = $accountType;
|
||||
$info["availableActivateDateTime"] = $availableActivateDateTime;
|
||||
$info["playerCount"] = $playerCount;
|
||||
|
||||
return $info;
|
||||
|
||||
Reference in New Issue
Block a user