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 // // check if the user not already online
// if ($row["State"] != "Offline") // if ($row["State"] != "Offline") {
// {
// $reason = "$login is already online and "; // $reason = "$login is already online and ";
// // ask the LS to remove the client // // ask the LS to remove the client
// if (disconnectClient ($row["ShardId"], $row["UId"], $tempres)) // if (disconnectClient($row["ShardId"], $row["UId"], $tempres)) {
// { // $reason = $reason . "was just disconnected. Now you can retry the identification (error code 54)";
// $reason = $reason."was just disconnected. Now you can retry the identification (error code 54)";
// // $query = "update shard set NbPlayers=NbPlayers-1 where ShardId=" . $row["ShardId"];
// $query = "update shard set NbPlayers=NbPlayers-1 where ShardId=".$row["ShardId"]; // $result = mysqli_query($link, $query) or die("Can't execute the query: '$query' errno:" . mysqli_errno($link) . ": " . mysqli_error($link));
// $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"];
// $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));
// $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)";
// else
// {
// $reason = $reason."can't be disconnected: $tempres (error code 55)";
// } // }
// $res = false; // $res = false;
// } // } else {
// 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 {