コード例 #1
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['warningID'])) {
         $this->warningID = intval($_POST['warningID']);
     }
     if (isset($_POST['title'])) {
         $this->title = StringUtil::trim($_POST['title']);
     }
     if (isset($_POST['points'])) {
         $this->points = abs(intval($_POST['points']));
     }
     if (isset($_POST['reason'])) {
         $this->reason = StringUtil::trim($_POST['reason']);
     }
     if (isset($_POST['expiresDay'])) {
         $this->expiresDay = intval($_POST['expiresDay']);
     }
     if (isset($_POST['expiresMonth'])) {
         $this->expiresMonth = intval($_POST['expiresMonth']);
     }
     if (isset($_POST['expiresYear'])) {
         $this->expiresYear = intval($_POST['expiresYear']);
     }
     if (isset($_POST['expiresHour'])) {
         $this->expiresHour = intval($_POST['expiresHour']);
     }
     if (isset($_POST['expiresMinute'])) {
         $this->expiresMinute = intval($_POST['expiresMinute']);
     }
 }
コード例 #2
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->ignoreUniques = $this->plugin = $this->standalone = 0;
     if (isset($_POST['packageUpdateServerIDs']) && is_array($_POST['packageUpdateServerIDs'])) {
         $this->packageUpdateServerIDs = ArrayUtil::toIntegerArray($_POST['packageUpdateServerIDs']);
     }
     if (isset($_POST['packageName'])) {
         $this->packageName = StringUtil::trim($_POST['packageName']);
     }
     if (isset($_POST['author'])) {
         $this->author = StringUtil::trim($_POST['author']);
     }
     if (isset($_POST['searchDescription'])) {
         $this->searchDescription = intval($_POST['searchDescription']);
     }
     if (isset($_POST['plugin'])) {
         $this->plugin = intval($_POST['plugin']);
     }
     if (isset($_POST['standalone'])) {
         $this->standalone = intval($_POST['standalone']);
     }
     if (isset($_POST['other'])) {
         $this->other = intval($_POST['other']);
     }
     if (isset($_POST['ignoreUniques'])) {
         $this->ignoreUniques = intval($_POST['ignoreUniques']);
     }
 }
コード例 #3
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['parentItem'])) {
         $this->parentItem = $_POST['parentItem'];
     }
     if (isset($_POST['refererPattern'])) {
         $this->refererPattern = StringUtil::trim($_POST['refererPattern']);
     }
     if (isset($_POST['showOrder'])) {
         $this->showOrder = intval($_POST['showOrder']);
     }
     if (isset($_POST['isDisabled'])) {
         $this->isDisabled = intval($_POST['isDisabled']);
     }
     if (isset($_POST['topic'])) {
         $this->topic = StringUtil::trim($_POST['topic']);
     }
     if (isset($_POST['text'])) {
         $this->text = StringUtil::trim($_POST['text']);
     }
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
 }
コード例 #4
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['username'])) {
         $this->username = StringUtil::trim($_POST['username']);
     }
 }
コード例 #5
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['title'])) {
         $this->title = StringUtil::trim($_POST['title']);
     }
     if (isset($_POST['points'])) {
         $this->points = abs(intval($_POST['points']));
     }
     if (isset($_POST['expiresWeek'])) {
         $this->expiresWeek = intval($_POST['expiresWeek']);
     }
     if (isset($_POST['expiresDay'])) {
         $this->expiresDay = intval($_POST['expiresDay']);
     }
     if (isset($_POST['expiresHour'])) {
         $this->expiresHour = intval($_POST['expiresHour']);
     }
     if (isset($_POST['suspensionType'])) {
         $this->suspensionType = $_POST['suspensionType'];
     }
     if (isset($_POST['send'])) {
         $this->send = (bool) $_POST['send'];
     }
     // get type object
     if ($this->suspensionType && isset($this->availableSuspensionTypes[$this->suspensionType])) {
         $this->suspensionTypeObject = $this->availableSuspensionTypes[$this->suspensionType];
     }
     if ($this->suspensionTypeObject !== null && $this->send) {
         $this->suspensionTypeObject->readFormParameters();
     }
 }
コード例 #6
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     // data
     if (isset($_POST['name'])) {
         $this->name = StringUtil::trim($_POST['name']);
     }
     if (isset($_POST['link'])) {
         $this->link = StringUtil::trim($_POST['link']);
     }
     if (isset($_POST['iconS'])) {
         $this->iconS = StringUtil::trim($_POST['iconS']);
     }
     if (isset($_POST['iconM'])) {
         $this->iconM = StringUtil::trim($_POST['iconM']);
     }
     if (isset($_POST['position'])) {
         $this->position = StringUtil::trim($_POST['position']);
     }
     if ($this->position != 'header' && $this->position != 'footer') {
         $this->position = "header";
     }
     if (isset($_POST['showOrder'])) {
         $this->showOrder = intval($_POST['showOrder']);
     }
 }
コード例 #7
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['styleIDArray']) && is_array($_POST['styleIDArray'])) {
         $this->styleIDArray = ArrayUtil::toIntegerArray($_POST['styleIDArray']);
     }
 }
コード例 #8
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->languageID = $this->useRegex = $this->caseSensitive = $this->replace = $this->searchVariableName = 0;
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
     if (isset($_POST['useRegex'])) {
         $this->useRegex = intval($_POST['useRegex']);
     }
     if (isset($_POST['caseSensitive'])) {
         $this->caseSensitive = intval($_POST['caseSensitive']);
     }
     if (isset($_POST['replace'])) {
         $this->replace = intval($_POST['replace']);
     }
     if (isset($_POST['searchVariableName'])) {
         $this->searchVariableName = intval($_POST['searchVariableName']);
     }
     if (isset($_POST['replaceBy'])) {
         $this->replaceBy = $_POST['replaceBy'];
     }
     if (isset($_POST['query'])) {
         $this->query = StringUtil::trim($_POST['query']);
     }
 }
コード例 #9
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['classPath'])) {
         $this->classPath = StringUtil::trim($_POST['classPath']);
     }
     if (isset($_POST['description'])) {
         $this->description = StringUtil::trim($_POST['description']);
     }
     if (isset($_POST['execMultiple'])) {
         $this->execMultiple = intval($_POST['execMultiple']);
     }
     if (isset($_POST['startMinute'])) {
         $this->startMinute = StringUtil::replace(' ', '', $_POST['startMinute']);
     }
     if (isset($_POST['startHour'])) {
         $this->startHour = StringUtil::replace(' ', '', $_POST['startHour']);
     }
     if (isset($_POST['startDom'])) {
         $this->startDom = StringUtil::replace(' ', '', $_POST['startDom']);
     }
     if (isset($_POST['startMonth'])) {
         $this->startMonth = StringUtil::replace(' ', '', $_POST['startMonth']);
     }
     if (isset($_POST['startDow'])) {
         $this->startDow = StringUtil::replace(' ', '', $_POST['startDow']);
     }
 }
コード例 #10
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (!empty($_POST['fDo'])) {
         $this->fDo = $_POST['fDo'];
     }
 }
コード例 #11
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->allTemplates = $this->useRegex = $this->caseSensitive = $this->replace = $this->invertSearch = $this->invertTemplates = 0;
     if (isset($_POST['allTemplates'])) {
         $this->allTemplates = intval($_POST['allTemplates']);
     }
     if (isset($_POST['templateID']) && is_array($_POST['templateID'])) {
         $this->templateID = ArrayUtil::toIntegerArray($_POST['templateID']);
     }
     if (isset($_POST['useRegex'])) {
         $this->useRegex = intval($_POST['useRegex']);
     }
     if (isset($_POST['caseSensitive'])) {
         $this->caseSensitive = intval($_POST['caseSensitive']);
     }
     if (isset($_POST['replace'])) {
         $this->replace = intval($_POST['replace']);
     }
     if (isset($_POST['invertSearch'])) {
         $this->invertSearch = intval($_POST['invertSearch']);
     }
     if (isset($_POST['invertTemplates'])) {
         $this->invertTemplates = intval($_POST['invertTemplates']);
     }
     if (isset($_POST['replaceBy'])) {
         $this->replaceBy = $_POST['replaceBy'];
     }
     if (isset($_POST['query'])) {
         $this->query = $_POST['query'];
     }
 }
コード例 #12
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_FILES['optionImport'])) {
         $this->optionImport = $_FILES['optionImport'];
     }
 }
コード例 #13
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['categoryName'])) {
         $this->categoryName = StringUtil::trim($_POST['categoryName']);
     }
     if (isset($_POST['showOrder'])) {
         $this->showOrder = intval($_POST['showOrder']);
     }
 }
コード例 #14
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['action'])) {
         $this->action = $_POST['action'];
     }
     if (isset($_POST['tablenameArray']) && is_array($_POST['tablenameArray'])) {
         $this->tablenameArray = $_POST['tablenameArray'];
     }
 }
コード例 #15
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['downloadPackage'])) {
         $this->downloadPackage = StringUtil::trim($_POST['downloadPackage']);
     }
     if (isset($_FILES['uploadPackage'])) {
         $this->uploadPackage = $_FILES['uploadPackage'];
     }
 }
コード例 #16
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['masterPassword'])) {
         $this->masterPassword = $_POST['masterPassword'];
     }
     if (isset($_POST['url'])) {
         $this->url = $_POST['url'];
     }
 }
コード例 #17
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['sourceLanguageID'])) {
         $this->sourceLanguageID = intval($_POST['sourceLanguageID']);
     }
     if (isset($_POST['preview'])) {
         $this->preview = (bool) $_POST['preview'];
     }
 }
コード例 #18
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['counter'])) {
         $this->counter = $_POST['counter'];
     }
     if (isset($_POST['limit'])) {
         $this->limit = intval($_POST['limit']);
     }
 }
コード例 #19
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (!empty($_POST['linkAction'])) {
         $this->action = $_POST['linkAction'];
     }
     if ($this->action == 'select' && !empty($this->menuItemID)) {
         $this->linkCur = AdminTools::getLink($this->menuItemID);
     }
 }
コード例 #20
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDs = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']));
     }
     if (isset($_POST['userID'])) {
         $this->userID = intval($_POST['userID']);
     }
 }
コード例 #21
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDs = implode(',', ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs'])));
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
コード例 #22
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['enable'])) {
         $this->enable = intval($_POST['enable']);
     }
     if (isset($_POST['languageIDs']) && is_array($_POST['languageIDs'])) {
         $this->languageIDs = ArrayUtil::toIntegerArray($_POST['languageIDs']);
     }
 }
コード例 #23
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDArray = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']));
     }
     if (isset($_POST['reason'])) {
         $this->reason = StringUtil::trim($_POST['reason']);
     }
 }
コード例 #24
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['groupID'])) {
         $this->groupID = intval($_POST['groupID']);
     }
     if (isset($_POST['neededPoints'])) {
         $this->neededPoints = intval($_POST['neededPoints']);
     }
     if (isset($_POST['avatarCategoryID'])) {
         $this->avatarCategoryID = intval($_POST['avatarCategoryID']);
     }
 }
コード例 #25
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['topic'])) {
         $this->topic = StringUtil::trim($_POST['topic']);
     }
     if (isset($_POST['text'])) {
         $this->text = StringUtil::trim($_POST['text']);
     }
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
 }
コード例 #26
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['server'])) {
         $this->server = StringUtil::trim($_POST['server']);
     }
     if (isset($_POST['htUsername'])) {
         $this->htUsername = $_POST['htUsername'];
     }
     if (isset($_POST['htPassword'])) {
         $this->htPassword = $_POST['htPassword'];
     }
 }
コード例 #27
0
 /**
  * @see Form::readFormParameters()	 
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['spiderName'])) {
         $this->spiderName = StringUtil::trim($_POST['spiderName']);
     }
     if (isset($_POST['spiderIdentifier'])) {
         $this->spiderIdentifier = StringUtil::trim($_POST['spiderIdentifier']);
     }
     if (isset($_POST['spiderURL'])) {
         $this->spiderURL = StringUtil::trim($_POST['spiderURL']);
     }
 }
コード例 #28
0
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_REQUEST['serverName'])) {
         $this->serverName = StringUtil::trim($_REQUEST['serverName']);
     }
     if (isset($_REQUEST['serverPort'])) {
         $this->serverPort = intval($_REQUEST['serverPort']);
     }
     if (isset($_REQUEST['serverDescription'])) {
         $this->serverDescription = StringUtil::trim($_REQUEST['serverDescription']);
     }
 }
コード例 #29
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['ignoreErrors'])) {
         $this->ignoreErrors = intval($_POST['ignoreErrors']);
     }
     if (isset($_POST['importFile'])) {
         $this->fileName = $_POST['importFile'];
     }
     if (isset($_FILES['upload'])) {
         $this->upload = $_FILES['upload'];
     }
 }
コード例 #30
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->exportImages = $this->exportTemplates = $this->exportIcons = 0;
     if (isset($_POST['exportTemplates'])) {
         $this->exportTemplates = intval($_POST['exportTemplates']);
     }
     if (isset($_POST['exportImages'])) {
         $this->exportImages = intval($_POST['exportImages']);
     }
     if (isset($_POST['exportIcons'])) {
         $this->exportIcons = intval($_POST['exportIcons']);
     }
 }