From 0e67c4ad3744e48e70519d1dfbc843972c06b594 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 27 Jun 2016 20:50:54 +0200 Subject: [PATCH] fixed gui startup Change-Id: I0186a90a474592ac632d1d0f91f42781a887b783 Signed-off-by: SJ --- util/sign.php | 1 - webui/system/startup.php | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/util/sign.php b/util/sign.php index c921a2a7..10a2e0ab 100644 --- a/util/sign.php +++ b/util/sign.php @@ -46,7 +46,6 @@ if ( $options = getopt( $opts, $lopts ) ) } require_once($webuidir . "/config.php"); -require_once(DIR_SYSTEM . "/helper/TrustedTimestamps.php"); if(ENABLE_SYSLOG == 1) { openlog("piler-timestamp", LOG_PID, LOG_MAIL); } diff --git a/webui/system/startup.php b/webui/system/startup.php index 1369b474..1bda8668 100644 --- a/webui/system/startup.php +++ b/webui/system/startup.php @@ -20,6 +20,11 @@ if(ENABLE_GOOGLE_LOGIN == 1) { require_once DIR_BASE . 'google-api/contrib/apiOauth2Service.php'; } +if(TSA_URL) { + require_once(DIR_SYSTEM . "/helper/TrustedTimestamps.php"); +} + + date_default_timezone_set(TIMEZONE); ?>