X-Git-Url: https://git.rvb.name/squid-reports.git/blobdiff_plain/b6140f5887fbec2842858d934c99618b1bf447d2..HEAD:/web/api.php diff --git a/web/api.php b/web/api.php index 2b700e2..dbb7100 100644 --- a/web/api.php +++ b/web/api.php @@ -61,6 +61,8 @@ $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"); @@ -78,6 +80,9 @@ $users = exec_query("select id,username as name,alias from users"); $hosts = exec_query("select id,hostname as name,alias from hosts"); $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;