|
|
@ -239,12 +239,11 @@ class ControllerUser
|
|
|
|
function userStatus(){
|
|
|
|
function userStatus(){
|
|
|
|
if($_SESSION["idPlayerConnected"] != null){
|
|
|
|
if($_SESSION["idPlayerConnected"] != null){
|
|
|
|
|
|
|
|
|
|
|
|
//$this->mdAdministrator = new ModelAdministrator();
|
|
|
|
//$this->mdPlayer = new ModelPlayer();
|
|
|
|
|
|
|
|
|
|
|
|
//$administrators = $this->mdAdministrator->getAdministrators();
|
|
|
|
//$player = $this->mdPlayer->getPlayerByID($_SESSION["idAdminConnected"]);
|
|
|
|
|
|
|
|
|
|
|
|
echo $this->twig->render($this->vues["userStatus"]);
|
|
|
|
echo $this->twig->render($this->vues["userStatus"]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
header("Location:/loginPlayer");
|
|
|
|
header("Location:/loginPlayer");
|
|
|
|