Révision b67cdd05
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 | ||
---|---|---|
612 | 612 |
$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor)); |
613 | 613 |
if(is_array($grepinvert)) |
614 | 614 |
$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert)); |
615 |
if(file_exists($logfile) && filesize($logfile) == 0) { |
|
615 |
if (is_dir($logfile)) { |
|
616 |
$logarr = array("File $logfile is a directory."); |
|
617 |
} elsif(file_exists($logfile) && filesize($logfile) == 0) { |
|
616 | 618 |
$logarr = array("Log file started."); |
617 | 619 |
} else { |
618 | 620 |
if($config['system']['disablesyslogclog']) { |
Formats disponibles : Unified diff
Fix core dump on viewing invalid package log