This commit is contained in:
2025-02-03 18:22:49 +01:00
parent f39c328d06
commit b4016685a0
4 changed files with 161 additions and 69 deletions

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();