summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-25 17:58:58 -0400
committerMalf Furious <m@lfurio.us>2018-09-25 17:58:58 -0400
commit83be80e89dbbf22a18023fa8443fcab975358c3f (patch)
tree12b7e8642fc1965e134f49423e415a5d41dc55ba /app/index.php
parentfbb9bcb787287597a0666b9313a4754ed03d242b (diff)
downloadscrott-83be80e89dbbf22a18023fa8443fcab975358c3f.tar.gz
scrott-83be80e89dbbf22a18023fa8443fcab975358c3f.zip
group: Add group page view
Diffstat (limited to '')
-rw-r--r--app/index.php9
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);