mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2024-12-23 01:03:34 +01:00
21 lines
565 B
PHP
21 lines
565 B
PHP
<?php
|
|
|
|
$song_list = "";
|
|
foreach ($_POST["song"] as $i)
|
|
if ($i) $song_list .= "$i ";
|
|
|
|
$cmd = "python3 ../../cancionero-web-python/src/latex_scanner.py";
|
|
$cmd .= " --latex ../../cancionero-web-python/latex/cancionero.tex";
|
|
$cmd .= " --other-latex ../../cancionero-web-python/latex/canciones/";
|
|
$cmd .= " --other-index 400";
|
|
$cmd .= " --output-dir .";
|
|
$cmd .= " --output-file index.html";
|
|
$cmd .= " --songs $song_list";
|
|
exec($cmd, $output, $return_code);
|
|
|
|
foreach ($output as $line) echo "$line\n";
|
|
|
|
if ($return_code)
|
|
echo "The return code was $return_code\n";
|
|
|
|
?>
|