query($updateUserQuery, array('si', $text, $id)); } if ($_POST['listaid'] && isset($_POST['CbBoxValue'])) { $listaid = substr($_POST['listaid'], 5); $updateUserQuery = "UPDATE `www_archline_hu`.`crash` SET eredmeny = ? WHERE id = ? LIMIT 1;"; Database::getInstance()->query($updateUserQuery, array('ii', $_POST['CbBoxValue'], $listaid)); } } 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 (isset($_GET) && !empty($_GET)) { $filepath = "/home/vendeg/crash/"; $filepath .= $_GET["guid"]; if (!file_exists($filepath)) $filepath = "../webdav/crash/" . $_GET['guid']; downloadFile($filepath); } else { ?>
'; if (isset($_SESSION["maxdate"]) || isset($_SESSION["mindate"]) || isset($_SESSION["lista"])) { echo 'Dátum szűrés