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)); //echo "<pre>"; //print_r(($this->outData)); } } $server = new dataServer(true); $inData = $server->getCleanPost(); if (isset($_POST["rex"])) { switch ($inData["rex"]) { //1 - Fetch document information & subsequent page data. case "woof": $server->reactivateAccount($inData); break; default: break; } } else { //Lookup the user ID $server->lookupUser($inData); }
$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); }
//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)); //echo "<pre>"; //print_r(($this->outData)); } } $server = new dataServer(true); if (isset($_POST["rex"])) { $inData = $server->getCleanPost(); switch ($inData["rex"]) { //1 - Fetch document information & subsequent page data. case "woof": $server->createNewSubscribedUser($inData); break; //case 2 : $server->parse_curl_requests(); break; //Default Action. //case 2 : $server->parse_curl_requests(); break; //Default Action. default: break; } } else {
$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)); //echo "<pre>"; //print_r(($this->outData)); } } // Make sure we have a logged in user. if (!is_numeric($session->get_user_var('id'))) { die('Data Server - Error 1'); } $server = new dataServer(true); if (isset($_POST["rex"])) { $inData = $server->getCleanPost(); switch ($inData["rex"]) { //1 - Fetch document information & subsequent page data. case 1: $server->fetchDocumentData($inData); break; //2 - Change a user's password. //2 - Change a user's password. case 2: $server->checkPassword($inData); break; //3 - Update a document's data variables //3 - Update a document's data variables case 3: