&1', $out, $rc); $lintOutput = is_array($out) ? implode("\n", $out) : (string)$out; if ($rc !== 0) { $lintOk = false; } } else { $lintOutput = 'PHP executable not found for linting; skipping post-save syntax check.'; } if (!$lintOk) { // rollback @copy($bakName, $cfgPath); $status = 'Syntax error detected in saved config. Changes rolled back. Lint output: ' . h($lintOutput); } else { $status = 'Config saved successfully. Backup: ' . basename($bakName) . (strlen($lintOutput) ? ' (lint: '.h($lintOutput).')' : ''); // reload values require_once($cfgPath); } } } } } } } $currentText = ''; if (is_readable($cfgPath)) { $currentText = file_get_contents($cfgPath); } ?> Admin — Edit Config

Edit Site Config

Backups are stored in