query($update) === FALSE) echo ''; } if ($_POST['listaid'] && isset($_POST['CbBoxValue'])) { $listaid = substr($_POST['listaid'], 5); $update = "UPDATE `www_archline_hu`.`crash` SET `eredmeny`='{$_POST['CbBoxValue']}' WHERE `id`='{$listaid}'"; if ($connection->query($update) === FALSE) echo ''; } } function downloadFile($filename) { if ($f = fopen($filename, "rb")) { $content_len = (int) filesize($filename); //@ini_set('zlib.output_compression', 'Off'); header('Pragma: public'); //header('Last-Modified: '.gmdate('D, d M Y H(idea)(worry)') . ' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1 header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header('Content-Transfer-Encoding: none'); header('Content-Type: plain/text'); header('Content-Disposition: inline; filename="' . $filename . '"'); header("Content-length: $content_len"); while (!feof($f)) { echo fread($f, 2 << 20); } fclose($f); } else { print "error opening file"; } exit(); } if ($_SERVER['REMOTE_ADDR'] == '91.83.198.90') { $path = "../public"; $files = scandir($path); print_r($files); } if (isset($_GET) && !empty($_GET)) { $filepath = "/home/vendeg/crash/"; $filepath .= $_GET["guid"]; /*if (!file_exists($filepath)) $filepath = "../public/crash/".$_GET['guid'];*/ //$filepath .= ".DMP"; downloadFile($filepath); } else { ?>
'; if (isset($_SESSION["maxdate"]) || isset($_SESSION["mindate"]) || isset($_SESSION["lista"])) { echo 'Dátum szűrés