Fix undefined constant

This commit is contained in:
John Crisp
2021-03-01 16:09:50 +01:00
parent 2967936314
commit a2e418a067

View File

@@ -23,8 +23,9 @@ $serial = escapeshellcmd(trim($_SERVER['QUERY_STRING']));
# old Reg Ex doesnt work, new should do the work # old Reg Ex doesnt work, new should do the work
#$regexp = "^R\t.*\t.*\t$serial\t.*\t.*$"; #$regexp = "^R\t.*\t.*\t$serial\t.*\t.*$";
$regexp = "^R.*$serial.*$"; $regexp = "^R.*$serial.*$";
$configIndex = $config['index'];
if (exec("egrep '$regexp' $config[index]")) if (exec("egrep '$regexp' '$configIndex'"))
print '1'; print '1';
else else
print '0'; print '0';