Example #1
0
 /**
  * Page de détail d'un personnage
  *
  * @return  void
  */
 public function show($type)
 {
     $v = new View('user/' . $type);
     $v->stats = Statistiques_Model::instance()->user_show($this->user->id);
     $v->user = $this->user;
     $v->modif = TRUE;
     $v->render(TRUE);
 }
Example #2
0
 /**
  * Formulaire d'authentification.
  *
  * @return  void
  */
 public function auth()
 {
     if (Auth::instance()->logged_in()) {
         return url::redirect(NULL);
     }
     $view = new View('auth/index');
     $view->alert = $this->input->get('msg');
     $view->users = Statistiques_Model::instance()->top_user();
     if (($ajax = url::current() == 'logger/auth') ? TRUE : FALSE) {
         $this->auto_render = FALSE;
     }
     return $view->render($ajax);
 }