CMXX - Placeorder initial version

This commit is contained in:
“VeLiTi”
2025-02-13 11:23:15 +01:00
parent 2eaf83c3fe
commit 3424c9fadc
14 changed files with 446 additions and 377 deletions

View File

@@ -63,7 +63,7 @@ if (!empty($_POST)) {
$v = in_array(strtolower($v), ['true', 'false']) ? strtolower($v) : '\'' . $v . '\'';
$contents = preg_replace('/define\(\'' . $k . '\'\, ?(.*?)\)/s', 'define(\'' . $k . '\',' . $v . ')', $contents);
}
file_put_contents('../config.php', $contents);
file_put_contents('../custom/settings/config.php', $contents);
header('Location: index.php?page=settings&success_msg=1');
exit;
}