Show summary if no arguments are passed to API

This commit is contained in:
DL6ER
2017-02-19 19:10:49 +01:00
parent 8a0839f439
commit dc61eb82d4
3 changed files with 3 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ header('Content-type: application/json');
$data = [];
if (isset($_GET['summary']) || isset($_GET['summaryRaw']))
if (isset($_GET['summary']) || isset($_GET['summaryRaw']) || !count($_GET))
{
sendRequestFTL("stats");
$return = getResponseFTL();

View File

@@ -4,9 +4,8 @@
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?>
* Please see LICENSE file for your rights under this license. */
<?php
$log = array();
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");

View File

@@ -4,9 +4,7 @@
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?>
<?php
* Please see LICENSE file for your rights under this license. */
function is_valid_domain_name($domain_name)
{