芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/smart-slider-3/Nextend/Framework/Request/Storage.php
parserInstance = new WordPressRequestParser(); $this->originalStorage = $data; $this->returnOriginal = $returnOriginal; $this->storage = array(); } public function set($var, $val) { $this->storage[$var] = $val; } protected function get($var, $default = false) { if (!$this->returnOriginal) { if (isset($this->storage[$var])) { return $this->storage[$var]; } else if (isset($this->originalStorage[$var])) { $this->storage[$var] = $this->parserInstance->parseData($this->originalStorage[$var]); return $this->storage[$var]; } } else if (isset($this->originalStorage[$var])) { return $this->originalStorage[$var]; } return $default; } public function getVar($var, $default = null) { return $this->get($var, $default); } public function getInt($var, $default = 0) { return intval($this->get($var, $default)); } public function getCmd($var, $default = '') { return preg_replace("/[^\w_]/", "", $this->get($var, $default)); } public function exists($var) { if (isset($this->storage[$var])) { return true; } else if (isset($this->originalStorage[$var])) { return true; } return false; } }