$output['rex'] = "Grrr"; $output['return'] = 1; } $this->outData = $output; return $output; } public function outputResults() { global $start; //for total processing time. header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json'); $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round($finish - $start, 4); $this->outData['dog_years'] = $total_time; echo stripcslashes(json_encode($this->outData)); } } //Security. Require this key. if ($_GET['key'] !== "34u2fdasS3rja") { die; } $server = new dataServer(true); $inData = file_get_contents('php://input'); if (strlen($inData) > 0) { $server->processChargeBeeWebHook($inData); }