From: Marcin Haba Date: Sat, 12 Dec 2015 21:11:48 +0000 (+0100) Subject: baculum: Get system timezone for PHP if possible X-Git-Tag: Release-7.4.0~141 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=404695c959ccb05d06a81ac9479c96558cd420b8;p=bacula%2Fbacula baculum: Get system timezone for PHP if possible --- diff --git a/gui/baculum/index.php b/gui/baculum/index.php index f64ca15ce6..683acb7efc 100644 --- a/gui/baculum/index.php +++ b/gui/baculum/index.php @@ -19,21 +19,11 @@ * * Bacula(R) is a registered trademark of Kern Sibbald. */ -date_default_timezone_set('UTC'); - -// Support for web servers which do not provide direct info about HTTP Basic auth to PHP superglobal $_SERVER array. -if(!isset($_SERVER['PHP_AUTH_USER']) && !isset($_SERVER['PHP_AUTH_PW'])) { - list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); -} - define('APPLICATION_DIRECTORY', __DIR__); -require_once('./protected/Pages/Requirements.php'); -new Requirements(__DIR__); +require_once('./protected/Init.php'); require_once('./framework/prado.php'); $application=new TApplication; -Prado::using('Application.Portlets.BButton'); -Prado::using('Application.Portlets.BActiveButton'); $application->run(); ?> diff --git a/gui/baculum/protected/Init.php b/gui/baculum/protected/Init.php new file mode 100644 index 0000000000..a58e640e9b --- /dev/null +++ b/gui/baculum/protected/Init.php @@ -0,0 +1,42 @@ + diff --git a/gui/baculum/protected/application.xml b/gui/baculum/protected/application.xml index 2ec14fe6cf..d682bf82f7 100644 --- a/gui/baculum/protected/application.xml +++ b/gui/baculum/protected/application.xml @@ -4,6 +4,8 @@ + +