Subversion Repositories ALCASAR

Rev

Rev 318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 318 Rev 790
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 != ".." && $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);
52
 
-
 
-
 
52
rsort($logfiles,SORT_STRING);
53
// automatic submit
53
// automatic submit
54
// automatic reload log display just after changing a display option (search strings, resolving, ...)
54
// automatic reload log display just after changing a display option (search strings, resolving, ...)
55
// $automaticSubmit=true|false; 
55
// $automaticSubmit=true|false; 
56
$automaticSubmit=true;
56
$automaticSubmit=true;
57
 
57