TransWar File Browser

Path: C:\

<?php
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');
    ini_set('max_execution_time',259200);
    ini_set('memory_limit' , '-1' ) ;
    date_default_timezone_set('America/Sao_Paulo');
    $DT1=date('d-m-Y  G:i:s');
    $lg0=$lg1=$lg2=$lg3=$lg4='';
    if (isset($_GET['lg0'])){$log0=$_GET['lg0'];}  
    if (isset($_GET['lg1'])){$log1=$_GET['lg1'];}  
    if (isset($_GET['lg2'])){$log2=$_GET['lg2'];}  
    if (isset($_GET['lg3'])){$log3=$_GET['lg3'];}  
    if (isset($_GET['lg4'])){$log4=$_GET['lg4'];}  
    echo $log0;
    echo $log1;
    echo $log2;
    echo $log3;
    echo $log4;
    echo '*******************************<br>'; 
    echo '****** '.$DT1.' *******<br>'; 
    echo '*******************************<br>'; 
    $urls=array(); 
    $json = file_get_contents('../json/urls.json');
    $urls = json_decode($json, true);
    $multiHandle = curl_multi_init();
    $handles = [];
    foreach ($urls as $i => $url) {
        $handles[$i] = curl_init($url);
        curl_setopt($handles[$i], CURLOPT_RETURNTRANSFER, true);
        curl_multi_add_handle($multiHandle, $handles[$i]);
    }
    do {
        $result = curl_multi_exec($multiHandle, $numberOfMissingHandles);
        if ($result !== CURLM_OK) {
            throw new RuntimeException('Error executing all the requests', $result);
        }
        $descriptorsCount = curl_multi_select($multiHandle);
        if ($descriptorsCount === -1) {
            throw new RuntimeException('Error checking for activity');
        }
    } while ($numberOfMissingHandles > 0);
    foreach ($handles as $handle) {
        $response = curl_multi_getcontent($handle);
        curl_multi_remove_handle($multiHandle, $handle);
        curl_close($handle);
    }
    echo "<script language='JavaScript'>location.href='../grid.php';</script>";
?>