Beispiel #1
0
 public function executeConfirmNewAccount()
 {
     $this->newAccountGetData();
     $check = new CheckRequest();
     $check->checkError($this->requestObj, $this->conf["account"]["field"]);
     if (strlen($this->requestObj->user_name) != 0) {
         if (CheckUser::userExist($this->requestObj->user_name) !== false) {
             $check->setError("user_name", "isUserExist");
         }
     }
     $this->error = $check->getError();
     if ($this->error !== false) {
         $this->tpl = "account_new.tpl";
     } else {
         $this->tpl = "account_confirm.tpl";
     }
 }
Beispiel #2
0
 private function executeStoragecontrolChange()
 {
     $l_category = "l_category_" . $this->requestObj->cnum;
     $m_category = "m_category_" . $this->requestObj->cnum;
     $s_category = "s_category_" . $this->requestObj->cnum;
     $storage_remark = "storage_remark_" . $this->requestObj->cnum;
     $check_field = array("list_category" => array("isRequired"));
     $check = new CheckRequest();
     $check->checkErrorValue(array("list_category" => $this->requestObj->{$l_category}), $check_field);
     $this->error = $check->getError();
     if ($this->error === false) {
         $data = array();
         $data["storage_id"] = $this->requestObj->storage_id;
         $data["l_category"] = $this->requestObj->{$l_category};
         $data["m_category"] = $this->requestObj->{$m_category};
         $data["s_category"] = $this->requestObj->{$s_category};
         $data["storage_remark"] = $this->requestObj->{$storage_remark};
         $data["user_id"] = $this->user_id;
         $this->dataAccess->beginTransaction("changeStorage", $data);
         header("Location: /micce/user/storagecontrol");
     }
     $this->executeStoragecontrol();
 }