Dashboard");
require "view/dashboard.php";
return;
}
switch ($argv[0])
{
case "logout":
/* logout user */
user::setCurrent();
location("/");
break;
case "groups":
setPageName("Groups");
require "view/groups.php";
break;
case "pads":
setPageName("Pads");
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;
}
}
}
}
catch (Exception $e)
{
require "view/except.php";
}
}
$tokens = explode("/", $_SERVER['PATH_INFO']);
main(array_values(array_filter($tokens)));
?>