exit; } // Use this for profiling define('yireo_starttime', microtime(true)); if (function_exists('yireo_benchmark') == false) { function yireo_benchmark($title) { $yireo_totaltime = round(microtime(true) - yireo_starttime, 4); Mage::getSingleton('magebridge/debug')->profiler($title . ': ' . $yireo_totaltime . ' seconds'); } } // Initialize the bridge require_once 'magebridge.class.php'; $magebridge = new MageBridge(); // Mask this request $magebridge->premask(); // Support for Magento Compiler $compilerConfig = 'includes/config.php'; if (file_exists($compilerConfig)) { include $compilerConfig; } // Initialize the Magento application require_once 'app/Mage.php'; try { // Determine the Mage::app() arguments from the bridge $app_value = $magebridge->getMeta('app_value'); $app_type = $magebridge->getMeta('app_type'); // Doublecheck certain values if ($app_type == 'website' && $app_value != 'admin') { $app_value = (int) $app_value; }