Révision 7be297a2
Ajouté par Matt Smith il y a presque 10 ans
usr/local/www/diag_pkglogs.php | ||
---|---|---|
73 | 73 |
} |
74 | 74 |
} |
75 | 75 |
} elseif($apkg) { |
76 |
$pkgwithlogging = true; |
|
77 | 76 |
$apkgid = get_pkg_id($apkg); |
78 |
$i = $apkgid; |
|
77 |
if ($apkgid != -1) { |
|
78 |
$pkgwithlogging = true; |
|
79 |
$i = $apkgid; |
|
80 |
} |
|
79 | 81 |
} |
80 | 82 |
|
81 | 83 |
$pgtitle = array(gettext("Status"),gettext("Package logs")); |
usr/local/www/guiconfig.inc | ||
---|---|---|
595 | 595 |
$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor)); |
596 | 596 |
if(is_array($grepinvert)) |
597 | 597 |
$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert)); |
598 |
if(file_exists($logfile) && filesize($logfile) == 0) { |
|
598 |
if (is_dir($logfile)) { |
|
599 |
$logarr = array("File $logfile is a directory."); |
|
600 |
} elseif(file_exists($logfile) && filesize($logfile) == 0) { |
|
599 | 601 |
$logarr = array("Log file started."); |
600 | 602 |
} else { |
601 | 603 |
if($config['system']['disablesyslogclog']) { |
Formats disponibles : Unified diff
Fix core dump on viewing invalid package log