Added option to show full URL in the control bar. Probably could do with styling a bit better though.

This commit is contained in:
Andy Dixon
2024-11-12 18:48:00 +00:00
parent 2d5ed4cc5d
commit f8c1892e99
5 changed files with 25 additions and 3 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ switch ($_REQUEST["action"]) {
case "save":
header('Content-type: application/json');
if (!empty($_POST['uri']) && !empty($_POST['content'])) {
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
echo json_encode(array('message' => 'Page has been saved'));
$filename=$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
echo json_encode(array('message' => 'Page has been saved','destination'=>$filename));
} else {
echo json_encode(array('error' => 'Unable to save page'));
}