Cleaned source code style.

This commit is contained in:
mdtrooper 2015-04-06 15:30:52 +02:00
parent 5864d846ba
commit baaf21148e
1 changed files with 8 additions and 8 deletions

View File

@ -46,17 +46,17 @@ enterprise_include("include/functions_reporting.php");
$pure = get_parameter('pure',0);
// Get different date to search the report.
$date = (string) get_parameter ('date', date(DATE_FORMAT));
$time = (string) get_parameter ('time', date(TIME_FORMAT));
$date = (string)get_parameter('date', date(DATE_FORMAT));
$time = (string)get_parameter('time', date(TIME_FORMAT));
$datetime = strtotime ($date . ' ' . $time);
$report["datetime"] = $datetime;
// Calculations in order to modify init date of the report
$date_init_less = strtotime(date('Y-m-j')) - 86400;
$date_init_less = strtotime(date('Y-m-j')) - SECONDS_1DAY;
$date_init = get_parameter('date_init', date(DATE_FORMAT, $date_init_less));
$time_init = get_parameter('time_init', date(TIME_FORMAT, $date_init_less));
$datetime_init = strtotime ($date_init.' '.$time_init);
$datetime_init = strtotime($date_init . ' ' . $time_init);
$enable_init_date = get_parameter('enable_init_date', 0);
// Standard header