getLatest(); // if we have new data return it if(!empty($data)) { echo json_encode($data); ob_flush(); flush(); break; } usleep(25000); } } // end main if // upload created log tar to user if ($_GET['snortlogdownload'] == 1) { sendFileSnortLogDownload(); } // send Json sid string if ($_GET['snortGetSidString'] == 1) { // unset unset($_GET['snortGetSidString']); // get the SID string from file sendSidStringRuleEditGUI(); } ?>