Lines Matching refs:file
41 if (isset($file['default'])) $this->_default_file = $file['default'];
42 if (isset($file['local'])) $this->_local_file = $file['local'];
43 if (isset($file['protected'])) $this->_protected_file = $file['protected'];
87 $file = eval('return '.$this->_local_file.';');
90 if (@file_exists($file) && $backup) {
91 if (@file_exists($file.'.bak')) @unlink($file.'.bak');
92 if (!@rename($file, $file.'.bak')) return false;
95 if (!$fh = @fopen($file, 'wb')) {
96 @rename($file.'.bak', $file); // problem opening, restore the backup
118 function _read_config($file) { argument
120 if (!$file) return array();
123 $file = eval('return '.$file.';');
127 $contents = @php_strip_whitespace($file);
214 $file = '/conf/metadata.php';
222 if (@file_exists(DOKU_PLUGIN.$plugin.$file)){
224 @include(DOKU_PLUGIN.$plugin.$file);
234 if (@file_exists(DOKU_TPLINC.$file)){
236 @include(DOKU_TPLINC.$file);
249 $file = '/conf/default.php';
254 if (@file_exists(DOKU_PLUGIN.$plugin.$file)){
256 @include(DOKU_PLUGIN.$plugin.$file);
266 if (@file_exists(DOKU_TPLINC.$file)){
268 @include(DOKU_TPLINC.$file);
415 function php_strip_whitespace($file) { argument
416 if (!@is_readable($file)) return '';
418 $in = join('',@file($file));
461 function php_strip_whitespace($file) { argument
463 if (!@is_readable($file)) return '';
465 $contents = join('',@file($file));