Readied error pages for variable themes.
Fixed error in parsing pseudocode.
This commit is contained in:
@ -30,11 +30,11 @@ loadHttpToGlobals(["id", "task", "content"]);
|
||||
define("targetFile", __DIR__ . "/../data/$id.htm");
|
||||
|
||||
if (!isset($id) or !in_array($id, ['footer', 'aside', 'banner', 'welcomeMsg'])) {
|
||||
echo printErrorPage($translations['specifyToEdit']); return;
|
||||
echo printErrorPage($settings, $translations['specifyToEdit']); return;
|
||||
}
|
||||
|
||||
if ($id == 'welcomeMsg' and !$_SESSION['admin']) {
|
||||
echo printErrorPage($translations['accessDenied']); return;
|
||||
echo printErrorPage($settings, $translations['accessDenied']); return;
|
||||
}
|
||||
|
||||
// Read file contents if there is no new content sent by $_POST.
|
||||
|
Reference in New Issue
Block a user