[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 /* 3 * phpMyVisites : website statistics and audience measurements 4 * Copyright (C) 2002 - 2006 5 * http://www.phpmyvisites.net/ 6 * phpMyVisites is free software (license GNU/GPL) 7 * Authors : phpMyVisites team 8 */ 9 10 // $Id: Login.class.php 29 2006-08-18 07:35:21Z matthieu_ $ 11 12 13 require_once INCLUDE_PATH."/core/forms/FormLogin.class.php"; 14 15 class Login extends Module 16 { 17 var $viewTemplate = ''; 18 19 function Login() 20 { 21 parent::Module(); 22 } 23 24 function showAll() 25 { 26 $form = new FormLogin( $this->tpl ); 27 $done = $form->process(); 28 29 $this->tpl->assign("error_login", $this->request->getErrorLogin()); 30 $this->display(); 31 } 32 33 34 function init($request) 35 { 36 parent::init($request); 37 // if tpl is not allocated (which is the case for graphs) 38 // and if the login fails, there would be an error here trying to set a template with smarty not constructed 39 // so we simply display an error message and exit 40 if(!is_a( $this->tpl, "TemplateEngine")) 41 { 42 print("Error while authentificate, and TemplateEngine not constructed. <br>Exiting...<br>"); 43 exit; 44 } 45 $this->tpl->caching = 0; 46 $this->tpl->setMainTemplate( "common/login.tpl"); 47 } 48 } 49 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |