Reindent comment

add missing
This commit is contained in:
Stanislas Dolcini 2018-10-02 22:44:30 +02:00
parent 94ceb10771
commit c833d2131e

View file

@ -259,35 +259,28 @@ function checkUserValidity($login, $password, $clientApplication, $cp, &$id, &$r
$res = false; $res = false;
} }
} else { } else {
// // check if the user not already online
// if ($row["State"] != "Offline") {
// $reason = "$login is already online and ";
// // ask the LS to remove the client
// if (disconnectClient($row["ShardId"], $row["UId"], $tempres)) {
// $reason = $reason . "was just disconnected. Now you can retry the identification (error code 54)";
// // check if the user not already online // $query = "update shard set NbPlayers=NbPlayers-1 where ShardId=" . $row["ShardId"];
// if ($row["State"] != "Offline") // $result = mysqli_query($link, $query) or die("Can't execute the query: '$query' errno:" . mysqli_errno($link) . ": " . mysqli_error($link));
// {
// $reason = "$login is already online and "; // $query = "update user set ShardId=-1, State='Offline' where UId=" . $row["UId"];
// // ask the LS to remove the client // $result = mysqli_query($link, $query) or die("Can't execute the query: '$query' errno:" . mysqli_errno($link) . ": " . mysqli_error($link));
// if (disconnectClient ($row["ShardId"], $row["UId"], $tempres)) // } else {
// { // $reason = $reason . "can't be disconnected: $tempres (error code 55)";
// $reason = $reason."was just disconnected. Now you can retry the identification (error code 54)"; // }
// // $res = false;
// $query = "update shard set NbPlayers=NbPlayers-1 where ShardId=".$row["ShardId"]; // } else {
// $result = mysqli_query ($link, $query) or die ("Can't execute the query: '$query' errno:".mysqli_errno($link).": ".mysqli_error($link));
//
// $query = "update user set ShardId=-1, State='Offline' where UId=".$row["UId"];
// $result = mysqli_query ($link, $query) or die ("Can't execute the query: '$query' errno:".mysqli_errno($link).": ".mysqli_error($link));
// }
// else
// {
// $reason = $reason."can't be disconnected: $tempres (error code 55)";
// }
// $res = false;
// }
// else
// {
$id = $row["UId"]; $id = $row["UId"];
$priv = $row["Privilege"]; $priv = $row["Privilege"];
$extended = $row["ExtendedPrivilege"]; $extended = $row["ExtendedPrivilege"];
$res = true; $res = true;
// } // }
} }
} }
} else { } else {