$data["site-header"] = $site_header;
connect_db();
+
+ $startdate = exec_query("select min(access_date) sd from access_log");
$cats = exec_query("select mnemo,name,description from rep_cat");
$data["dictionaries"] = Array( "user_id" => $users, "host_id" => $hosts);
$data["online_refresh"] = $online_refresh;
$data["online_history"] = $online_history;
+ $data["start_date"] = $startdate[0]["sd"];
break;
online_hosts = []
timer = null
+start_date = null
assigned_colors = []
refresh = props["online_refresh"]
online_history = props["online_history"]
+ start_date = new Date(props["start_date"])
+ start_date.setHours(0,0,0,0)
+
cats = props["cats"]
for (var i in res["columns"]) {
var delta = Math.round(((dTo.getTime() - dFrom.getTime()))/(86400*1000))
dTo.setDate(dTo.getDate() - (1 + delta))
dFrom.setDate(dFrom.getDate() - (1 + delta))
+ if (dTo<start_date) {
+ dTo = start_date
+ }
+ if (dFrom<start_date) {
+ dFrom = start_date
+ }
date_from = toDate(dFrom)
date_to = toDate(dTo)
SetDates()