going to locked pages now results in a 404

This commit is contained in:
John Alanbrook 2022-11-04 08:51:04 +00:00
parent adaf160aaa
commit 16b6d37932

View file

@ -8,7 +8,7 @@ $tryuri = strtok($tryuri, "?");
$lockscn = $tryuri; $lockscn = $tryuri;
if (file_exists("$lockscn.lock" )) if (file_exists("$lockscn.lock" ))
return; load_page("404");
while ($lockscn != "") { while ($lockscn != "") {
$files = scandir($lockscn); $files = scandir($lockscn);
@ -18,7 +18,7 @@ while ($lockscn != "") {
for ($i = 2; $i < count($files); $i++) { for ($i = 2; $i < count($files); $i++) {
if ($files[$i] == "lock") { if ($files[$i] == "lock") {
return; load_page("404");
} }
} }
@ -143,6 +143,7 @@ if (empty($page['desc'])) $page['desc'] = $site['desc'];
include "base.php"; include "base.php";
die();
} }
function img_src($src, $root = "" ) { function img_src($src, $root = "" ) {