X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=7f2afffb5a01b0cac1a36953f450152150ab20ea;hb=2bf8a68908fef5d4680235c561912b5e3c2ee4da;hp=049d46afceea1ff567956e7bdaaed50d76427da8;hpb=2503c33502607ad81da69dece32c6b981a4db335;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 049d46afce..7f2afffb5a 100644 --- a/index.php +++ b/index.php @@ -37,12 +37,17 @@ * @license GNU Affero General Public License http://www.gnu.org/licenses/ */ +$_startTime = microtime(true); +$_perfCounters = array(); + define('INSTALLDIR', dirname(__FILE__)); define('STATUSNET', true); define('LACONICA', true); // compatibility require_once INSTALLDIR . '/lib/common.php'; +register_shutdown_function('common_log_perf_counters'); + $user = null; $action = null; @@ -204,7 +209,7 @@ function main() { // fake HTTP redirects using lighttpd's 404 redirects if (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false) { - $_lighty_url = $base_url.$_SERVER['REQUEST_URI']; + $_lighty_url = $_SERVER['REQUEST_URI']; $_lighty_url = @parse_url($_lighty_url); if ($_lighty_url['path'] != '/index.php' && $_lighty_url['path'] != '/') {