Added some more comments in api.php

This commit is contained in:
DL6ER
2016-11-19 12:56:50 +01:00
parent 03ea07ec49
commit e575988d37

View File

@@ -6,6 +6,7 @@
$data = array();
// Works without authorization
if (isset($_GET['summaryRaw'])) {
$data = array_merge($data, getSummaryData());
}
@@ -25,28 +26,34 @@
$data = array_merge($data, getOverTimeData());
}
// Requires authorization
if (isset($_GET['topItems']) && $auth) {
$data = array_merge($data, getTopItems());
}
// Requires authorization
if (isset($_GET['recentItems']) && $auth) {
if (is_numeric($_GET['recentItems'])) {
$data = array_merge($data, getRecentItems($_GET['recentItems']));
}
}
// Requires authorization
if (isset($_GET['getQueryTypes']) && $auth) {
$data = array_merge($data, getIpvType());
}
// Requires authorization
if (isset($_GET['getForwardDestinations']) && $auth) {
$data = array_merge($data, getForwardDestinations());
}
// Requires authorization
if (isset($_GET['getQuerySources']) && $auth) {
$data = array_merge($data, getQuerySources());
}
// Requires authorization
if (isset($_GET['getAllQueries']) && $auth) {
$data = array_merge($data, getAllQueries());
}