Commit e1377289 authored by Camille Lafitte's avatar Camille Lafitte

Statistique brute compatible Apache2

 * see #439,
 * A verifier mais il semble que ce ticket peut \303\252tre ferm\303\251.
parent 9d9caa80
......@@ -32,6 +32,7 @@
require("/var/alternc/bureau/class/local.php");
$FILES_OWNER = 33;
$APACHE_LOG = '/var/log/apache/access.log.1';
$APACHE2_LOG = '/var/log/apache2/access.log';
umask(0177);
$hosts = array();
$nolog_hosts = array();
......@@ -80,8 +81,11 @@ while ($row = mysql_fetch_assoc($result)) {
}
//Open apache log file
if (!$apache_log_file = fopen($APACHE_LOG, 'r')) {
return 1;
//Open apache log file
if (!$apache_log_file = @fopen($APACHE_LOG, 'r')) {
if (!$apache_log_file = @fopen($APACHE2_LOG, 'r')) {
return 1;
}
}
//Parsing log file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment