mini14
31st December 2010, 15:53
I started noticing this in my server logs a while ago. Please help!
ispconfig/scripts/shell/logs.php
PHP Warning: Invalid argument supplied for foreach() in /root/ispconfig/scripts/shell/logs.php on line 173
__line 173__
foreach($index as $i => $t) {
if($t < time()-86400*$purge) {
@unlink($dir.'/'.$files[$i]);
}
}
}
$time_end = getmicrotime();
$dauer = $time_end - $time_start;
//echo "Duration: $dauer seconds. Lines: $zeilen_gesamt\n";
?>
================================================== ==================
PHP Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
// Traffic auswerten und Symlinks für Webalizer aktualisieren
foreach($traffic as $virtual_host => $bytes) {
if(trim($virtual_host) != '' && trim($virtual_host)!='localhost') {
// Traffic in DB Schreiben
// Bestimme Web-ID
__line 125___ $link = readlink("$webroot/$virtual_host");
$parts = split("/",$link);
$web_id = intval(substr($parts[count($parts) - 1],3));
ispconfig/scripts/shell/logs.php
PHP Warning: Invalid argument supplied for foreach() in /root/ispconfig/scripts/shell/logs.php on line 173
__line 173__
foreach($index as $i => $t) {
if($t < time()-86400*$purge) {
@unlink($dir.'/'.$files[$i]);
}
}
}
$time_end = getmicrotime();
$dauer = $time_end - $time_start;
//echo "Duration: $dauer seconds. Lines: $zeilen_gesamt\n";
?>
================================================== ==================
PHP Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
// Traffic auswerten und Symlinks für Webalizer aktualisieren
foreach($traffic as $virtual_host => $bytes) {
if(trim($virtual_host) != '' && trim($virtual_host)!='localhost') {
// Traffic in DB Schreiben
// Bestimme Web-ID
__line 125___ $link = readlink("$webroot/$virtual_host");
$parts = split("/",$link);
$web_id = intval(substr($parts[count($parts) - 1],3));