Subversion Repositories ALCASAR

Rev

Rev 790 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 790 Rev 871
Line 41... Line 41...
41
$folder = "/var/log/firewall";
41
$folder = "/var/log/firewall";
42
$dossier = opendir($folder);
42
$dossier = opendir($folder);
43
$index=0;
43
$index=0;
44
while ($Fichier = readdir($dossier))	{
44
while ($Fichier = readdir($dossier))	{
45
		$exclusion = stripos ($Fichier, '.gz');
45
		$exclusion = stripos ($Fichier, '.gz');
46
		if ($Fichier != "." && $Fichier != ".." && $fichier != " " && $exclusion == 0)	{
46
		if ($Fichier != "." && $Fichier != ".." && $Fichier != " " && $exclusion == 0)	{
47
			$index ++;
47
			$index ++;
48
			$logfiles[]=$folder . "/" . $Fichier;
48
			$logfiles[]=$folder . "/" . $Fichier;
49
		} # end if
49
		} # end if
50
	} # end while
50
	} # end while
51
closedir($dossier);
51
closedir($dossier);