} include_once $GLOBALS['CONFIG']['PATH'] . "/modules/globals/controller.php"; sux('e404'); exit; } // Sanity check action $action = mb_strtolower($action); if (!preg_match('/^(\\w|\\-)+$/', $action)) { $action = 'default'; } // Sanity check params foreach ($params as $key => $val) { if (!preg_match('/^(\\w|\\-)+$/', $val)) { $params[$key] = null; } } // ----------------------------------------------------------------------- // Go! // ------------------------------------------------------------------------ include_once $GLOBALS['CONFIG']['PATH'] . "/modules/{$controller}/controller.php"; sux($action, $params); } catch (Exception $e) { require_once $GLOBALS['CONFIG']['PATH'] . '/exception.php'; // Default exception handler exit; } // --------------------------------------------------------------------------- // Breadcrumbs // --------------------------------------------------------------------------- suxFunct::breadcrumbs(); // new dBug($_SESSION);