summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-20 01:07:35 -0400
committerMalf Furious <m@lfurio.us>2018-09-20 01:07:35 -0400
commit694f876bc8655bc00f3a4ae3d650e54d947ea42a (patch)
tree32da0bae970a3464bb3f0bfb37e65d140984da54 /app/index.php
parentd16ddc164b82c594680359841eeeaa1e26aceaa1 (diff)
downloadscrott-694f876bc8655bc00f3a4ae3d650e54d947ea42a.tar.gz
scrott-694f876bc8655bc00f3a4ae3d650e54d947ea42a.zip
Add start of single-pad view
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php
index d20aaff..182ab1b 100644
--- a/app/index.php
+++ b/app/index.php
@@ -69,6 +69,21 @@ function main(array $argv) : void
setPageName("<i>Pads</i>");
require "view/pads.php";
break;
+
+ default:
+ /* view object */
+ if (table::isGUID($argv[0]))
+ {
+ switch (obj::typeOf($argv[0]))
+ {
+ case "pad":
+ $obj = new pad($argv[0]);
+ setPageObj($obj);
+ setPageName($obj->name);
+ require "view/pad.php";
+ break;
+ }
+ }
}
}