-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForceShutdown.php
More file actions
29 lines (27 loc) · 967 Bytes
/
ForceShutdown.php
File metadata and controls
29 lines (27 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
$ID = $_REQUEST["ID"];
$con = new mysqli("fdb21.awardspace.net", "2720660_convergencetcg", "Cheeseman1", "2720660_convergencetcg");
$sql = "SELECT * FROM Login WHERE `ID` = '".$ID."'";
$result = mysqli_query($con, $sql);
if(mysqli_num_rows($result) > 0)
{
while($row = mysqli_fetch_assoc($result))
{
$sql = "UPDATE `Login` SET `ForceShutDown` = '1' WHERE `ID` = '".$ID."'";
$result = mysqli_query($con, $sql);
$sql = "UPDATE `Login` SET `IsLoggedIn` = '0' WHERE `ID` = '".$ID."'";
$result = mysqli_query($con, $sql);
$myJSON = '{
"Response" : "Success"
}';
echo $myJSON;
die();
}
}
else
$myJSON = '{
"Response" : "IDNotFound"
}';
echo $myJSON;
die();
?>