Lines Matching full:if
37 if ($this->isLocked()) throw new \Exception('no save');
40 if (file_exists($this->savefile)) {
41 if (file_exists($this->savefile . '.bak.php')) @unlink($this->savefile . '.bak.php');
42 … if (!io_rename($this->savefile, $this->savefile . '.bak.php')) throw new \Exception('no backup');
45 if (!$fh = @fopen($this->savefile, 'wb')) {
52 if ($setting->shouldBeSaved()) {
57 if ($out === '') {
64 if ($conf['fperm']) chmod($this->savefile, $conf['fperm']);
77 if ($this->isLocked()) throw new \Exception('no save');
83 * Invalidate the opcache of the given file (if possible)
90 if (!function_exists('opcache_invalidate')) return;
99 * Configuration is considered locked if there is no local settings filename
106 if (!$this->savefile) return true;
107 if (!is_writable(dirname($this->savefile))) return true;
108 if (file_exists($this->savefile) && !is_writable($this->savefile)) return true;