3) { $dirParts = array_splice($dirParts, 0, -2); $myDir = implode(DIRECTORY_SEPARATOR, $dirParts); } if (@file_exists(__DIR__ . '/../../helpers/integration.php')) { require_once __DIR__ . '/../../helpers/integration.php'; } elseif (@file_exists('../../helpers/integration.php')) { require_once '../../helpers/integration.php'; } elseif (@file_exists($myDir . '/helpers/integration.php')) { require_once $myDir . '/helpers/integration.php'; } // Load the platform defines if (!defined('APATH_BASE')) { require_once __DIR__ . '/defines.php'; } // Should I enable debug? if (defined('AKEEBADEBUG')) { error_reporting(E_ALL | E_NOTICE | E_DEPRECATED); ini_set('display_errors', 1); } // Add our app to the autoloader, if it's not already set $prefixes = Autoloader::getInstance()->getPrefixes(); if (!array_key_exists('Solo\\', $prefixes)) { Autoloader::getInstance()->addMap('Solo\\', APATH_BASE . '/Solo'); } // Include the Akeeba Engine factory if (!defined('AKEEBAENGINE')) { define('AKEEBAENGINE', 1); require_once __DIR__ . '/Solo/engine/Factory.php'; if(file_exists(__DIR__.'/Solo/alice/factory.php')) { require_once __DIR__ . '/Solo/alice/factory.php'; } Platform::addPlatform('Solo', __DIR__ . '/Solo/Platform/Solo'); Platform::getInstance()->load_version_defines(); Platform::getInstance()->apply_quirk_definitions(); } try { // Create the container if it doesn't already exist if (!isset($container)) { $container = new \Solo\Container(array( 'application_name' => 'Solo' )); } // Create the application $application = $container->application; // Initialise the application $application->initialise(); // Route the URL: parses the URL through routing rules, replacing the data in the app's input $application->route(); // Dispatch the application $application->dispatch(); // Render the output $application->render(); // Clean-up and shut down $application->close(); } catch (Exception $exc) { $filename = null; if (isset($application)) { if ($application instanceof \Awf\Application\Application) { $template = $application->getTemplate(); if (file_exists(APATH_THEMES . '/' . $template . '/error.php')) { $filename = APATH_THEMES . '/' . $template . '/error.php'; } } } if (is_null($filename)) { die($exc->getMessage()); } // An uncaught application error occurred /** echo "
Please submit the following error message and trace in its entirety when requesting support
\n"; echo "\n"; echo $exc->getTraceAsString(); echo "\n"; /**/ include $filename; }