[ Index ] |
|
Code source de PRADO 3.0.6 |
1 <?php 2 /** 3 * LoginPortlet class file 4 * 5 * @author Qiang Xue <qiang.xue@gmail.com> 6 * @link http://www.pradosoft.com/ 7 * @copyright Copyright © 2006 PradoSoft 8 * @license http://www.pradosoft.com/license/ 9 * @version $Id: LoginPortlet.php 1397 2006-09-07 07:55:53Z wei $ 10 */ 11 12 Prado::using('Application.Portlets.Portlet'); 13 14 /** 15 * LoginPortlet class 16 * 17 * @author Qiang Xue <qiang.xue@gmail.com> 18 * @link http://www.pradosoft.com/ 19 * @copyright Copyright © 2006 PradoSoft 20 * @license http://www.pradosoft.com/license/ 21 */ 22 class LoginPortlet extends Portlet 23 { 24 public function validateUser($sender,$param) 25 { 26 $authManager=$this->Application->getModule('auth'); 27 if(!$authManager->login(strtolower($this->Username->Text),$this->Password->Text)) 28 $param->IsValid=false; 29 } 30 31 public function loginButtonClicked($sender,$param) 32 { 33 if($this->Page->IsValid) 34 $this->Response->reload(); 35 //$this->Response->redirect($this->Application->getModule('auth')->getReturnUrl()); 36 } 37 } 38 39 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |