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; } } catch (Exception $e) { require "view/except.php"; } } $tokens = explode("/", $_SERVER['PATH_INFO']); main(array_values(array_filter($tokens))); ?>