summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-06-26 15:12:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-06-26 15:12:43 +0000
commit9cd108612f5373c6e1a61d775a66833a889093f9 (patch)
tree40ae6d87c184ece94bd787d2fd0f236daa561e14 /usr
parentb2f76d1ef98459375127cc0f3db4e2a14fdc175e (diff)
downloadpfsense-9cd108612f5373c6e1a61d775a66833a889093f9.zip
pfsense-9cd108612f5373c6e1a61d775a66833a889093f9.tar.gz
Remove repeat return_clog()
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc26
1 files changed, 0 insertions, 26 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 1d59eb0..24656d5 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -615,32 +615,6 @@ function return_clog($logfile, $tail, $grepfor = "", $grepinvert = "", $grepreve
return($logarray);
}
-function return_clog($logfile, $tail, $grepfor = "", $grepinvert = "") {
- global $g, $config;
- $sor = isset($config['syslog']['reverse']) ? "-r" : "";
- $logarr = "";
- exec("/usr/sbin/clog {$logfile} | grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail {$sor} -n {$tail}", $logarr);
-
- if(is_array($grepfor)) {
- $i = 0;
- foreach($grepfor as $agrep) {
- $regexp = "/" . $agrep . "/i";
- if($grepinvert[$i]) {
- $logarr = preg_grep($regexp, $logarr, PREG_GREP_INVERT);
- } else {
- $logarr = preg_grep($regexp, $logarr);
- }
- $i++;
- }
- }
- $i = 0;
- foreach ($logarr as $logent) {
- $logarray[$i] = "$logent";
- $i++;
- }
- return($logarray);
-}
-
/* Check if variable has changed, update and log if it has
* returns true if var changed
* varname = variable name in plain text
OpenPOWER on IntegriCloud