From ab7719b0e092f632aaaf10c530650a8452fe1885 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Wed, 6 Jul 2011 20:49:57 +0200 Subject: [PATCH] bacula-web: New constants definition --- gui/bacula-web/config.inc.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gui/bacula-web/config.inc.php b/gui/bacula-web/config.inc.php index 022788743b..e2cb97d44c 100644 --- a/gui/bacula-web/config.inc.php +++ b/gui/bacula-web/config.inc.php @@ -40,10 +40,15 @@ define('CONFIG_FILE', CONFIG_DIR . "config.php"); // Time intervals in secondes - define( 'LAST_DAY', 86400 ); - define( 'LAST_WEEK', 604800 ); - define( 'LAST_MONTH', 2678400 ); - define( 'ALL', -1 ); + define( 'FIRST_DAY', mktime( 0, 0, 0, 1, 1, 1970) ); + define( 'NOW', time() ); + define( 'LAST_DAY', NOW - 86400 ); + define( 'LAST_WEEK', NOW - 604800 ); + define( 'LAST_MONTH', NOW - 2678400 ); + define( 'DAY', 86400 ); + define( 'WEEK', 604800 ); + define( 'MONTH', 2678400 ); + define( 'ALL', -1 ); // Job status code define( 'J_NOT_RUNNING', 'C' ); -- 2.39.5