mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Add Charte static page (public + admin editing)
This commit is contained in:
@@ -23,7 +23,7 @@ if (!isset($_POST['csrf_token'], $_SESSION['csrf_token'])
|
||||
exit;
|
||||
}
|
||||
|
||||
$allowedSlugs = ['about', 'licenses'];
|
||||
$allowedSlugs = ['about', 'licenses', 'charte'];
|
||||
$slug = $_POST['slug'] ?? '';
|
||||
$content = $_POST['content'] ?? '';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ if (empty($_SESSION["csrf_token"])) {
|
||||
$_SESSION["csrf_token"] = bin2hex(random_bytes(32));
|
||||
}
|
||||
|
||||
$allowedPageSlugs = ["about", "licenses"];
|
||||
$allowedPageSlugs = ["about", "licenses", "charte"];
|
||||
$allowedApropos = ["contacts", "erg_site_url", "source_code_url"];
|
||||
|
||||
$pageSlug = $_GET["slug"] ?? "";
|
||||
|
||||
@@ -10,7 +10,7 @@ if (empty($_SESSION['csrf_token'])) {
|
||||
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
|
||||
}
|
||||
|
||||
$allowedPageSlugs = ['about', 'licenses'];
|
||||
$allowedPageSlugs = ['about', 'licenses', 'charte'];
|
||||
|
||||
try {
|
||||
$db = new Database();
|
||||
|
||||
Reference in New Issue
Block a user