From 1b24ddb6b12bd85d15beed45476d72678b758128 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 8 Jun 2016 20:21:12 -0400 Subject: Add new MVC, 'Obj' This MVC will be used to browse scrott datastructures. --- app/controller/root.control.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/controller/root.control.php') 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; } -- cgit v1.2.3