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