$app->get('/phpinfo/?', function () use($app) { // Access-controlled page if (!$app->user->checkAccess('uri_php_info')) { $app->notFound(); } echo "<pre>"; print_r(phpinfo()); echo "</pre>"; }); // Error log page $app->get('/errorlog/?', function () use($app) { // Access-controlled page if (!$app->user->checkAccess('uri_error_log')) { $app->notFound(); } $log = UF\SiteSettings::getLog(); echo "<pre>"; echo implode("<br>", $log['messages']); echo "</pre>"; }); /************ INSTALLER *************/ $app->get('/install/?', function () use($app) { $controller = new UF\InstallController($app); if (isset($app->site->install_status)) { // If tables have been created, move on to master account setup if ($app->site->install_status == "pending") { $app->redirect($app->site->uri['public'] . "/install/master"); } else { // Everything is set up, so go to the home page! $app->redirect($app->urlFor('uri_home')); }