This commit is contained in:
Adrien MALINGREY 2024-10-20 13:41:51 +02:00
parent db6643b8bb
commit f001e1b61d
2 changed files with 6 additions and 2 deletions

View File

@ -117,3 +117,7 @@ if ($preset && isset($presets[$preset])) {
}
$options["--datadir"] = $DATADIR;
/*echo "<!--";
var_dump($options);
echo "-->\n";*/

View File

@ -412,7 +412,7 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
foreach (scandir('templates') as $filename) {
if (substr($filename, -4) === '.xsl') {
$name = substr($filename, 0, -4);
$URL = htmlentities("$BASEDIR/templates/$filename", ENT_QUOTES);
$URL = "$BASEDIR/templates/".rawurlencode($filename);
if (isset($options["--stylesheet"]) && $URL == $options["--stylesheet"]) {
echo " <option value='$URL' selected>$name</option>\n";
} else {
@ -433,7 +433,7 @@ if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
foreach (scandir($SCANSDIR) as $filename) {
if (substr($filename, -4) === '.xml') {
$name = substr($filename, 0, -4);
$URL = htmlentities("$BASEDIR/$SCANSDIR/$filename", ENT_QUOTES);
$URL = "$BASEDIR/$SCANSDIR/".rawurlencode($filename);
if (isset($options["compareWith"]) && $URL == $options["compareWith"]) {
echo " <option value='$URL' selected>$name</option>\n";
} else {