<?php include 'config/routes.php'; define("APP_PREFIX", "/electiva_php_ude_2015"); Routes::init();
require_once INCLUDES_DIR . '/config.php'; require_once INCLUDES_DIR . '/functions.php'; //You can use functions.php for custom functions. (Not required unless you want to use custom functions) require_once CLASSES_DIR . '/routes.class.php'; require_once CLASSES_DIR . '/core.class.php'; require_once CLASSES_DIR . '/custom.class.php'; //You can use custom.class.php for custom classes. (Not required unless you want to use custom classes) class DB extends Database_Base { } $PageTitle = ''; $MetaDescription = ''; $MetaKeywords = ''; $pathfile = ''; $routes = new Routes(); $routes->init(); $use404 = false; if (isset($routes->error)) { if ($debug) { echo $routes->error; } else { $use404 = true; $PageTitle = DEFAULT_SITE_NAME . ' - Error 404 - Page Not Found'; } } if (!$use404) { $url = $routes->url; $pathfile = $routes->pathfile; $params = $routes->params; if ($url == '' || $url == '/') { $pathfile = 'main';