Revert "Merge pull request #369 from g7vjr/master"

This reverts commit 1beb0613d6, reversing
changes made to 51419ad9e0.
This commit is contained in:
Peter Goodhall
2019-10-11 13:58:43 +01:00
parent 1beb0613d6
commit 576442a5cb
2 changed files with 6 additions and 59 deletions

View File

@@ -33,7 +33,7 @@ class Lookup extends CI_Controller {
echo $log_calls ." ";
}
$arCalls = array();
// SCP results from master scp db
$file = 'updates/masterscp.txt';
@@ -46,30 +46,10 @@ class Lookup extends CI_Controller {
$result = preg_grep('~' . $input . '~', $lines, 0);
foreach ($result as &$value) {
$arCalls[] = $value;
echo " ".$value. " ";
}
}
// SCP from Club Log
$file = "updates/clublog_scp.txt";
if (is_readable($file)) {
$lines = file($file, FILE_IGNORE_NEW_LINES);
foreach ($lines as $strCall)
{
if (in_array($strCall, $arCalls) == false)
{
$arCalls[] = $value;
}
}
}
sort($arCalls);
foreach ($arCalls as $strCall)
{
echo " " . $strCall . " ";
}
}
}