예제 #1
0
 private function getAllValue()
 {
     $this->insertValue = array();
     $this->insertValue['fio'] = InputValueHelper::getPostValue('fio');
     $this->insertValue['phone'] = InputValueHelper::getPostValue('phone');
     $this->insertValue['email'] = InputValueHelper::getPostValue('email');
     $this->insertValue['title'] = InputValueHelper::getPostValue('title');
     $this->insertValue['text'] = InputValueHelper::getPostValue('text');
 }
예제 #2
0
 private function updatePassword()
 {
     if ($this->checkCaptcha()) {
         if ($this->checkPassword()) {
             if ($this->checkRepeatPassword()) {
                 if ($this->checkValueNewPassword()) {
                     $update = $this->getQueryForUpdatePassword();
                     if ($this->SQL_HELPER->insert($update)) {
                         $this->message = $this->localization->getText("checkPasswordTrue");
                         $this->yourUser->authorization($this->userData['login'], InputValueHelper::getPostValue('newPassword'));
                         //                            $this->message .= $this->getButtonExit();
                     } else {
                         $this->message = $this->localization->getText("dbError");
                         // если необходима запись в логи
                         //                            $this->message .= $this->reportError($update);
                     }
                 } else {
                     $this->message = $this->localization->getText("checkAllValueFalse") . "<br>";
                     if ($this->checkAllValueErrors != null) {
                         foreach ($this->checkAllValueErrors as $CVerror) {
                             $this->message .= "<br>" . $CVerror;
                         }
                         $this->message .= "<br>";
                     }
                 }
             } else {
                 $this->message = $this->localization->getText("checkRepeatPasswordFalse");
             }
         } else {
             $this->message = $this->localization->getText("checkPasswordFalse");
         }
     } else {
         $this->message = $this->localization->getText("checkCaptchaFalse");
     }
 }
 protected function getPostValue($key)
 {
     return InputValueHelper::getPostValue($key);
 }
 private function addNewApplications()
 {
     $id = ID_GENERATOR::generateID();
     $fio = InputValueHelper::getPostValue('fio');
     $phone = InputValueHelper::getPostValue('phone');
     $message = InputValueHelper::getPostValue('message');
     $query = "INSERT INTO `UsersOnlineApplications`(`id`, `fio`, `phone`, `message`, `creation`,`totalStatus`,`changed`) VALUES ('" . $id . "','" . $fio . "','" . $phone . "','" . $message . "',now(),'created',now());";
     $this->SQL_HELPER->insert($query);
 }