This commit is contained in:
adrien committed 2025-02-03 18:22:49 +01:00
1 parent f39c328d06
commit b4016685a0
4 files changed
+161 -69

No files matched your search

+4 -6
View File
@@ -7,15 +7,13 @@ if ($lan) {
$cmd = "$lanScanCmd $lan";
if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
$filname = str_replace("/", "!", $lan);
$path = "$SCANSDIR/$filname.xml";
$filename = str_replace("/", "!", $lan);
$path = "$SCANSDIR/$filename.xml";
if (!file_exists($path)) {
$cmd .= " | tee '$path'";
}
if (!file_exists($path)) $cmd .= " | tee '$path'";
header('Content-type: text/xml');
system($cmd, $retcode);
system("$cmd", $retcode);
}
exit();