diff options
author | Malf Furious <m@lfurio.us> | 2016-10-22 00:13:12 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-10-22 00:13:12 -0400 |
commit | 9d0ff6546fb03489bbd127aeec6ee161e204a139 (patch) | |
tree | 3e4624c95293c3000e0dbac095af4a461ae35176 /app/controller/root.control.php | |
parent | 827a8025ab48dea386b77717f1d1bc30d10ba232 (diff) | |
parent | 35da301d31045b0974100307a7f0f4128b482170 (diff) | |
download | scrott-9d0ff6546fb03489bbd127aeec6ee161e204a139.tar.gz scrott-9d0ff6546fb03489bbd127aeec6ee161e204a139.zip |
Merge branch 'feature/core/groups' into dev
Diffstat (limited to '')
-rw-r--r-- | app/controller/root.control.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controller/root.control.php b/app/controller/root.control.php index 9a4ebd8..7e4d1ab 100644 --- a/app/controller/root.control.php +++ b/app/controller/root.control.php @@ -15,12 +15,14 @@ */ require_once "class/controller.class.php"; +require_once "class/object.class.php"; require_once "class/setting.class.php"; require_once "controller/sysconf.control.php"; require_once "controller/except.control.php"; require_once "controller/auth.control.php"; require_once "controller/deauth.control.php"; require_once "controller/dashboard.control.php"; +require_once "controller/obj.control.php"; require_once "controller/deleteacct.control.php"; /* @@ -82,6 +84,16 @@ class Root extends Controller case "logout": $ctrl = new Deauth(); break; case "deleteaccount": $ctrl = new Deleteacct(); break; default: + /* Check if arg is an object guid */ + $obj = new DBObject(); + + if ($obj->isGUID($argv[0])) + { + $ctrl = new Obj(); + break; + } + + /* No page to show for requested path */ throw new Exception("The requested path is not valid."); break; } |