Fix undefined constant
This commit is contained in:
@@ -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';
|
||||||
|
Reference in New Issue
Block a user