diff --git a/airtime_mvc/public/.htaccess b/airtime_mvc/public/.htaccess index bfbc50596..c99f762c0 100644 --- a/airtime_mvc/public/.htaccess +++ b/airtime_mvc/public/.htaccess @@ -4,15 +4,6 @@ php_value request_order "GPC" php_value session.gc_probability 0 php_value session.auto_start 0 -RewriteEngine On -RewriteCond %{REQUEST_FILENAME} -s [OR] -RewriteCond %{REQUEST_FILENAME} -l [OR] -RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^.*$ - [NC,L] -RewriteRule ^.*$ index.php [NC,L] -#RewriteBase / - - AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index 7c6d5cfb4..ddbf84738 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -12,7 +12,6 @@ function exception_error_handler($errno, $errstr, $errfile, $errline) throw new ErrorException($errstr, $errno, 0, $errfile, $errline); return false; } -set_error_handler("exception_error_handler"); // Define path to application directory defined('APPLICATION_PATH') @@ -48,31 +47,8 @@ if (file_exists('/usr/share/php/libzend-framework-php')) { require_once 'Zend/Application.php'; $application = new Zend_Application( APPLICATION_ENV, - APPLICATION_PATH . '/configs/application.ini' + $_SERVER["AIRTIME_APPINI"] ); - -require_once (APPLICATION_PATH."/logging/Logging.php"); -Logging::setLogPath('/var/log/airtime/zendphp.log'); - -// Create application, bootstrap, and run -try { - $sapi_type = php_sapi_name(); - if (substr($sapi_type, 0, 3) == 'cli') { - set_include_path(APPLICATION_PATH . PATH_SEPARATOR . get_include_path()); - require_once("Bootstrap.php"); - } else { - $application->bootstrap()->run(); - } -} catch (Exception $e) { - echo $e->getMessage(); - echo "
";
-    echo $e->getTraceAsString();
-    echo "
"; - Logging::info($e->getMessage()); - if (VERBOSE_STACK_TRACE) { - Logging::info($e->getTraceAsString()); - } else { - Logging::info($e->getTrace()); - } -} +$application->bootstrap() + ->run();