} else { header("HTTP/1.0 404 Not Found"); echo "Error 404."; } return; } // Installation if (!$currentHost || isset($_GET['magento_debug']) && $_GET['magento_debug'] == 'configure') { require_once MagentoDebugger::getDebuggerDir() . '/libs/Debugger/installation.php'; return; } if (!is_dir(MagentoDebugger::getProjectDir())) { header('Location: /?magento_debug=configure'); return; } MagentoDebugger::prepareLibraries(); // XDebug if (isset($_GET['XDEBUG_SESSION_START']) || isset($_GET['XDEBUG_SESSION_STOP_NO_EXEC'])) { require_once MagentoDebugger::getDebuggerDir() . '/libs/Debugger/xdebug.php'; return; } // Debugger info if (isset($_GET['magento_debug_info']) && isset($_GET['current_version'])) { $currentVersion = MAGENTO_DEBUGGER_VERSION; $debuggedInfo = new Varien_Object(); $debuggedInfo->setVersion(MAGENTO_DEBUGGER_VERSION); if ($_GET['current_version'] != MAGENTO_DEBUGGER_VERSION) { require_once MagentoDebugger::getDebuggerDir() . '/libs/Debugger/update.php'; try { MagentoDebugger_Update::run($_GET['current_version']); $debuggedInfo->setUpdated(true);