Added the ablity to search the contesting master scp database.

这个提交包含在:
Peter Goodhall 2019-08-13 21:22:06 +01:00
父节点 eafae062e5
当前提交 933ff98979
共有 2 个文件被更改,包括 37280 次插入0 次删除

查看文件

@ -0,0 +1,35 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
Data lookup functions used within Cloudlog
*/
class Lookup extends CI_Controller {
public function index()
{
}
public function scp($string) {
$file = 'updates/masterscp.txt';
$lines = file($file, FILE_IGNORE_NEW_LINES);
$input = preg_quote($string, '~');
$result = preg_grep('~' . $input . '~', $lines, 0);
$copy = $result;
foreach ($result as &$value) {
echo $value;
if (next($copy )) {
echo ', '; // Add comma for all elements instead of last
}
}
}
}

37245
updates/masterscp.txt 普通文件

文件差异内容过多而无法显示 加载差异