2 $ia = escapeshellarg($_GET['ia']);
3 $path = escapeshellarg($_GET['path']);
4 $file = escapeshellarg($_GET['file']);
6 $full = $_GET['path'] . '/' . $_GET['file'];
7 if (!is_readable($full)) {
8 header("HTTP/1.1 403 Forbidden");
11 header('Content-type: text/plain');
12 passthru("python extract_paragraphs.py $ia $path $file 2>&1");