img vhost
[pimpmyv.git] / index.php
blob6e9c556ebb45e4bc313cc755d7b4145fceed85ae
1 <?php
3 ini_set('display_errors', true);
5 if (!empty($_GET['timer'])) {
6 function _getMicrotime() {
7 return array_sum(explode(' ', microtime()));
9 $_timer = _getMicrotime();
12 try {
14 require_once('./kernel.php');
15 $K = new Kernel();
16 $K->boot();
18 Zend_Controller_Front::getInstance()->dispatch();
20 } catch (Exception $e) {
21 if ($K) {
22 $K->displayError($e);
23 } else {
24 var_dump($e);
28 if (!empty($_GET['timer'])) {
29 echo '<br /><br /><hr />';
30 echo '<pre>>>> Page took ' . (_getMicrotime() - $_timer) . 's to load</pre>';
31 die();