Files
neoCMS/cms/controller/index.php
T
2024-09-18 20:30:21 +01:00

14 lines
378 B
PHP

<?php
require_once "../neoCMSCore.php";
require_once "../init.php";
switch ($_REQUEST["action"]) {
case "save":
if(!empty($_POST['uri']) && !empty($_POST['content'])) {
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
die("Page Updated.");
} else {
die('Unable to save page');
}
break;
};