<?php
$alpha = $_GET['alpha']; $fn = htmlspecialchars($alpha);
$rtn = $_GET['rtn']; $rtn = htmlspecialchars($rtn);
$fn = $_GET['fn']; $fn = htmlspecialchars($fn);
$ien = $_GET['ien']; $ien = htmlspecialchars($ien);
$filter = $_GET['filter']; $filter = htmlspecialchars($filter);
function getit($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$response = str_replace("[1m[36m0[39m[22m", " ", $response);
$response = str_replace("[7m[1m", "", $response);
$response = str_replace("[22m[27m", "", $response);
$response = str_replace("[32m[1m", "", $response);
$response = str_replace("[22m[39m", "", $response);
$response = str_replace("[1m", "", $response);
$response = str_replace("[22m", "", $response);
$response = str_replace("[90m", "", $response);
$response = str_replace("[39m", "", $response);
if ($response === false) { echo 'cURL error: ' . curl_error($ch); }
else { echo $response; }
curl_close($ch); }
function hitcounts() {
getit("localhost:8090/mon/hitcounts");
}
?>