summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-11-10 23:21:39 -0500
committerMalf Furious <m@lfurio.us>2018-11-10 23:21:39 -0500
commitf3165d28fff6468fca44ff2ec3b6cfb3fb82ee90 (patch)
treea8edb746f0a21d9e7ad134ba79be8278ecce147e /app/index.php
parent0421aa1b60f4fe6bf140888159c58059c1013588 (diff)
parent295ba9fce85a959b04db4ac74b4ee378b42e6153 (diff)
downloadscrott-f3165d28fff6468fca44ff2ec3b6cfb3fb82ee90.tar.gz
scrott-f3165d28fff6468fca44ff2ec3b6cfb3fb82ee90.zip
Merge branch 'rel/v0.2'v0.2
Diffstat (limited to '')
-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";
}
}