Lines Matching +full:update +full:- +full:user +full:- +full:info -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
13 /** @var string header info */
14 protected $header = 'Dokuwiki\'s Main Configuration File - Local Settings';
25 $this->savefile = end($config_cascade['main']['local']);
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')) {
46 io_rename($this->savefile . '.bak.php', $this->savefile); // problem opening, restore the backup
52 if ($setting->shouldBeSaved()) {
53 $out .= $setting->out('conf', 'php');
60 $out = $this->getHeader() . $out;
64 if ($conf['fperm']) chmod($this->savefile, $conf['fperm']);
65 $this->opcacheUpdate($this->savefile);
69 * Update last modified time stamp of the config file
77 if ($this->isLocked()) throw new \Exception('no save');
78 @touch($this->savefile);
79 $this->opcacheUpdate($this->savefile);
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;
124 ' * ' . $this->header,
125 ' * Auto-generated by config plugin',
126 ' * Run for user: ' . ($_SERVER['REMOTE_USER'] ?? 'Unknown'),