summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
+ }
+ }
}
}