<?php include_once "config.php"; include_once "utils.php"; include_once "ui.php"; include_once "console.php"; include_once "scanner.php"; include_once "multilang.php"; MultiLang::LoadFile("ui"); include_once "timingStatistics.php"; $timings = new TimingStatistics(); function RenderDocument($filePath) { $render = ""; if ($filePath != null) { $filePathFixed = htmlentities($filePath, ENT_HTML5, "UTF-8"); $render .= '<iframe src="' . $filePathFixed . '" ' . 'class="previewDoc" ></iframe>'; } else { $render .= '<iframe src="about:blank" ' . 'class="previewDoc" ></iframe>'; } return $render; } // Detect scanner $Scanner = array(); $Scanner["ScanDevice"] = RequestParm("hidScanDevice", ""); $Scanner["ScanModel"] = RequestParm("hidScanModel", ""); if ($Scanner["ScanDevice"] == "" || $Scanner["ScanModel"] == "") { $Scanner = ScannerDetect(); } // Configure with formdata $Resolution = RequestParm("ddlResolution", $Resolution);