0 ){ echo "invalid path"; exit; } $file_to_read = getUpdatedLogFileName($decodedPath); if(isset($_POST["currentPage"])){ $currentPage = $_POST["currentPage"]; if($file_to_read) { $outputArray = array(); $outputArray = readFileChunkByChunk($file_to_read, $_POST['offset'], $_POST['readCount'],$currentPage); echo nl2br($outputArray['data']); ?> $linkName,"stop"=>$status['stop']); header('Content-Type: application/json'); echo json_encode($output); } exit; } if(!$_SESSION['validUser']) { $destinationURL = "../index.php"; header("Location:$destinationURL"); exit; } if($_GET["FILE_NAME"]) { $logFileNameGetString = $_GET["FILE_NAME"]; $decodedPath = rawurldecode($logFileNameGetString); if(strpos($decodedPath,Scheduler::$user_dir)!==0 || !strpos($decodedPath,'/LOGS/')>0 ){ $destinationURL = "../index.php"; header("Location:$destinationURL"); exit; } machineBasedContent($machine); $file_to_read = ""; $file_to_read = getUpdatedLogFileName($decodedPath); } else { exit; } $js_version = trim(preg_replace('/[a-zA-Z]+/', '', $appVersion)); ?>