From: Davide Franco Date: Wed, 6 Jul 2011 18:49:57 +0000 (+0200) Subject: bacula-web: New constants definition X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab7719b0e092f632aaaf10c530650a8452fe1885;p=bacula%2Fbacula bacula-web: New constants definition --- 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' );