]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New constants definition
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 6 Jul 2011 18:49:57 +0000 (20:49 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Aug 2011 09:56:22 +0000 (11:56 +0200)
gui/bacula-web/config.inc.php

index 022788743bad64c62cfa049341982f36e891f5c0..e2cb97d44c1114f7b4836e7ea1e3bae8e67529b3 100644 (file)
  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' );