示例#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";
     }
 }
示例#2
0
 private function executeStoragecontrolAdd()
 {
     $check = new CheckRequest();
     $check->checkError($this->requestObj, $this->page_yml["check"]["storagecontrol"]);
     $this->error = $check->getError();
     if ($this->error === false) {
         foreach ($this->page_yml["check"]["storagecontrol"] as $key => $value) {
             if (strlen($this->requestObj->{$key}) > 0) {
                 $data[$key] = $this->requestObj->{$key};
             }
         }
         $data["user_id"] = $this->user_id;
         $this->dataAccess->beginTransaction("addStorage", $data);
         header("Location: /micce/user/storagecontrol");
     }
     $this->executeStoragecontrol();
 }