. # ########## CONFIGURATION ########## $PATH='/PATH/TO/paperfind.sh'; $USER='USER THAT SUDO WILL RUN paperfind.sh AS'; ##### NO CHANGE PAST THIS LINE ##### if (array_key_exists('doDownload', $_REQUEST)) { $date = escapeshellarg(@$_REQUEST['date']); $page = escapeshellarg(@$_REQUEST['page']); # -M and -R are used instead of -D to avoid storing the data in RAM $json = exec("sudo -u {$USER} {$PATH} -M {$date} -p {$page}"); if ($json) { $meta = json_decode($json, true); header("Content-Type: {$meta['mime']}"); passthru("sudo -u {$USER} {$PATH} -R {$date} -p {$page}"); } } else { ?> PaperWeb, a simple web interface for Paperwork

PaperWeb, a simple web interface for Paperwork

No result.

Documents found

Pages

$p) { $nump = $n+1; ?> ">Page <?php echo $nump; ?>