echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;"><div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;"><h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer. <a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a> Magento using PHP-CGI as a work-around.</p></div>'; exit; } */ $AOFilename = 'app/AO.php'; if (!file_exists($AOFilename)) { if (is_dir('downloader')) { header("Location: downloader"); } else { echo $AOFilename . " was not found"; } exit; } require_once $AOFilename; #Varien_Profiler::enable(); AO::setIsDeveloperMode(true); #ini_set('display_errors', 1); /* register_tick_function('tick_profiler'); declare(ticks=2); */ umask(0); AO::run(); if (AO::getIsDeveloperMode(true)) { $end = microtime(1); if (!strstr($_SERVER['PHP_SELF'], 'ajax')) { echo '<div style="position:absolute;top:0px;background-color:#cfc">'; echo sprintf('%.2f', ($end - $start) * 1000) . 'ms'; echo ' - ' . number_format(memory_get_peak_usage() / 1024) . ' kb'; echo '</div>'; }