diff options
Diffstat (limited to '')
-rw-r--r-- | app/index.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index 13b6779..44c2de9 100644 --- a/app/index.php +++ b/app/index.php @@ -15,6 +15,8 @@ require_once "class/database.class.php"; require_once "class/settings.class.php"; require_once "class/user.class.php"; +require_once "class/group.class.php"; +require_once "class/pad.class.php"; /* * This file is the entry-point to the Scrott application. main() will @@ -98,6 +100,13 @@ function main(array $argv) : void /* setup page */ switch (obj::typeOf($argv[0])) { + case "group": + $obj = new group($argv[0]); + setPageObj($obj); + setPageName($obj->name); + require "view/group.php"; + break; + case "pad": $obj = new pad($argv[0]); setPageObj($obj); |