going to locked pages now results in a 404
This commit is contained in:
parent
adaf160aaa
commit
16b6d37932
|
@ -8,7 +8,7 @@ $tryuri = strtok($tryuri, "?");
|
|||
$lockscn = $tryuri;
|
||||
|
||||
if (file_exists("$lockscn.lock" ))
|
||||
return;
|
||||
load_page("404");
|
||||
|
||||
while ($lockscn != "") {
|
||||
$files = scandir($lockscn);
|
||||
|
@ -18,7 +18,7 @@ while ($lockscn != "") {
|
|||
|
||||
for ($i = 2; $i < count($files); $i++) {
|
||||
if ($files[$i] == "lock") {
|
||||
return;
|
||||
load_page("404");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,6 +143,7 @@ if (empty($page['desc'])) $page['desc'] = $site['desc'];
|
|||
|
||||
include "base.php";
|
||||
|
||||
die();
|
||||
}
|
||||
|
||||
function img_src($src, $root = "" ) {
|
||||
|
|
Loading…
Reference in a new issue