summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/index.php b/app/index.php
index 21f3036..7f05479 100644
--- a/app/index.php
+++ b/app/index.php
@@ -111,7 +111,10 @@ function main(array $argv) : void
$obj = new pad($argv[0]);
setPageObj($obj);
setPageName($obj->name);
- require "view/pad.php";
+ if (isset($argv[1]) && $argv[1] == "closed")
+ require "view/pad_closed.php";
+ else
+ require "view/pad.php";
break;
}
}
@@ -119,6 +122,7 @@ function main(array $argv) : void
/* page not found */
else
{
+ header("HTTP/1.1 404 Not Found");
require "view/404.php";
}
}