function dl_read_stat_per_path_only($path = "%") { $config = dl_get_config(); return dl_read_stat_per_path($path, $config["sortBy"], $config["sortOrder"], $config["list_type"], $config["top_max"]); }
$top_max = $_GET['top_max']; } if (isset($_GET['output_type'])) { if ($_GET["output_type"] == "json") { $output_type = "json"; } elseif ($_GET["output_type"] == "html") { $output_type = "html"; } elseif ($_GET["output_type"] == "debug") { $output_type = "debug"; } } if (isset($_GET['list_type'])) { $list_type = $_GET['list_type']; } #---------------------------------- # Detect which statement $result = dl_read_stat_per_path('%', $sortBy, $sort, $list_type, $top_max); #------------------------------------------------ # Output if (is_array($result)) { if ($output_type == "html") { # Template file for HTML output include $config["HTML_TEMPLATE_FILE"]; output_html($result, array('list_type' => $list_type, 'top_max' => $top_max, "sortBy" => $sortBy, "sortOrder" => $sort, "filter_path" => false, "script_url" => $_ENV['REQUEST_URI'])); } elseif ($output_type == "json") { header('Content-Type: application/json'); print json_encode($result); } elseif ($output_type == "debug") { print_r($result); } }