From 404695c959ccb05d06a81ac9479c96558cd420b8 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 12 Dec 2015 22:11:48 +0100 Subject: [PATCH] baculum: Get system timezone for PHP if possible --- gui/baculum/index.php | 12 +------- gui/baculum/protected/Init.php | 42 +++++++++++++++++++++++++++ gui/baculum/protected/application.xml | 2 ++ 3 files changed, 45 insertions(+), 11 deletions(-) create mode 100644 gui/baculum/protected/Init.php 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 @@ + + -- 2.39.5