Changeset 479 for trunk/lib/PEdit.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/PEdit.inc.php
r478 r479 123 123 public function setParam($params) 124 124 { 125 125 $app =& App::getInstance(); 126 126 127 127 if (isset($params) && is_array($params)) { … … 142 142 public function getParam($param) 143 143 { 144 144 $app =& App::getInstance(); 145 145 146 146 if (array_key_exists($param, $this->_params)) { … … 161 161 public function start($initialize_data_file=false) 162 162 { 163 163 $app =& App::getInstance(); 164 164 165 165 if (!is_dir($this->getParam('data_dir'))) { … … 219 219 public function set($name, $options=array()) 220 220 { 221 221 $app =& App::getInstance(); 222 222 223 223 $name = preg_replace('/\s/', '_', $name); … … 253 253 public function formBegin() 254 254 { 255 255 $app =& App::getInstance(); 256 256 257 257 if (!$this->_authorized || empty($this->_data)) { … … 401 401 public function printVersions() 402 402 { 403 403 $app =& App::getInstance(); 404 404 405 405 if ($this->_authorized && $this->op == 'Versions') { … … 444 444 private function _fileHash() 445 445 { 446 446 $app =& App::getInstance(); 447 447 448 448 return md5($app->getParam('signing_key') . $_SERVER['PHP_SELF']); … … 459 459 private function _loadDataFile() 460 460 { 461 461 $app =& App::getInstance(); 462 462 463 463 if (!file_exists($this->_data_file)) { … … 498 498 private function _initializeDataFile() 499 499 { 500 500 $app =& App::getInstance(); 501 501 502 502 $app->logMsg(sprintf('Initializing data file: %s', $this->_data_file), LOG_INFO, __FILE__, __LINE__); … … 514 514 private function _writeData() 515 515 { 516 516 $app =& App::getInstance(); 517 517 518 518 if (!$this->_authorized) { … … 562 562 private function _filePutContents($filename, $content) 563 563 { 564 564 $app =& App::getInstance(); 565 565 566 566 // Ensure requested filename is within the pedit data dir. … … 612 612 private function _createVersion() 613 613 { 614 614 $app =& App::getInstance(); 615 615 616 616 if (!$this->_authorized) { … … 650 650 private function _deleteOldVersions() 651 651 { 652 652 $app =& App::getInstance(); 653 653 654 654 $version_files = $this->_getVersions(); … … 709 709 private function _restoreVersion($version) 710 710 { 711 711 $app =& App::getInstance(); 712 712 713 713 if (!$this->_authorized) {
Note: See TracChangeset
for help on using the changeset viewer.