Пример #1
0
 /**
  * 登陆或是注册表单数据
  * @return boolean
  */
 protected function data()
 {
     $this->email = htmlspecialchars(trim(Env::getParam('email')));
     $this->password = htmlspecialchars(trim(Env::getParam('password')));
     $this->repassword = htmlspecialchars(trim(Env::getParam('repassword')));
     return $this->dataCheck();
 }
Пример #2
0
 public function run()
 {
     $enEmail = Env::getParam('email');
     $this->email = $this->decryptEmail($enEmail);
     $enCode = Env::getParam('code');
     $this->code = $this->decryptCode($enCode);
     if ($this->active()) {
         echo 'active success';
         die;
     }
     echo 'active failed';
 }