<?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($chCURLOPT_URL$url);
  curl_setopt($chCURLOPT_HTTPGETtrue);
  curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
  $response = curl_exec($ch);
  $response = str_replace("0"" "$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  $response = str_replace(""""$response);
  if ($response === false) { echo 'cURL error: ' . curl_error($ch); }
  else { echo $response; }
  curl_close($ch); }

function hitcounts() {
  getit("localhost:8090/mon/hitcounts");
  }

?>