00001 <? 00002 class LoginBox extends BaseBox 00003 { 00004 public $redir; 00005 00006 function __construct($redir = null) 00007 { 00008 parent::__construct('Login'); 00009 00010 $this->redir = $redir; 00011 } 00012 00013 function drawContent() 00014 { 00015 $user = new User(); 00016 $form = $user->createLoginForm($this->redir); 00017 $user->processLoginForm($form); 00018 00019 $form->drawAll(); 00020 00021 $email = $form->getData('username'); 00022 ?> 00023 <br/> 00024 <center> 00025 <?=$user->getLink(".register?email=$email", "Register");?> 00026 | 00027 <?=$user->getLink(".lostpass?email=$email", "Lost Password");?> 00028 </center> 00029 <? 00030 } 00031 } 00032 ?>