2019-09-09 23:48:52 +00:00
|
|
|
<?php
|
|
|
|
|
2019-10-16 22:35:06 +00:00
|
|
|
if (isset($_GET["edit"])) {
|
|
|
|
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
|
|
|
|
require_once "server_files/403.php";
|
|
|
|
|
|
|
|
if (isset($_POST["edit_page"])) {
|
|
|
|
$content = $_POST["content"];
|
|
|
|
|
|
|
|
$CONFIG->setIndexPage(htmlspecialchars($content));
|
|
|
|
header("Location: /");
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-09 23:48:52 +00:00
|
|
|
require_once "server_files/views/index.php";
|