X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fmods%2Fusers%2Fcompte.php;fp=mw%2Fapp%2Fmods%2Fusers%2Fcompte.php;h=0000000000000000000000000000000000000000;hb=422d883e3ed8ee55ee41e3b7826f32b79cea646d;hp=8e0e6c856a41981f34b7727a12cba88a64d4142e;hpb=e1b64e4088232b9d7b4acb2dc24279bb38fcafba;p=mtweb diff --git a/mw/app/mods/users/compte.php b/mw/app/mods/users/compte.php deleted file mode 100644 index 8e0e6c8..0000000 --- a/mw/app/mods/users/compte.php +++ /dev/null @@ -1,36 +0,0 @@ -validation_result = true; - if($this->validation_result === true) $this->validate_roles($env); - if($this->validation_result === true) $this->validate_user($env); - return $this->validation_result; - } - - function validate_roles(&$env){ - $data = $env->data(); - if(($this->roles = $data->roles()) !== false) $this->validation_result = true; - else $this->validation_result = "impossible de lire la liste des roles"; - } - - function validate_user(&$env){ - if($this->user = $env->user()) $this->validation_result = true; - else $this->validation_result = "Vous devez être identifier pour accéder à cette page"; - } - - function index(&$env){ - if($this->validation_result === true){ - $env->run("users/infos"); - } - } - - } - -?> \ No newline at end of file