Subversion Repositories ALCASAR

Rev

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

Rev 1377 Rev 1390
Line 76... Line 76...
76
}
76
}
77
else
77
else
78
{
78
{
79
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
79
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
80
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
80
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
81
	if(isset($_GET['nb_domains']) && isset($_GET['nb_ip']))
81
	if(isset($_GET['nb_domains']))
82
	{
82
	{
83
		$nb_domains = $_GET['nb_domains'];
83
		$nb_domains = $_GET['nb_domains'];
84
		$nb_urls = 0;
84
		$nb_urls = 0;
85
		$nb_ip = $_GET['nb_ip'];
85
		$nb_ip = 0;
86
	}
86
	}
87
	else
87
	else
88
	{
88
	{
89
		if (file_exists($wl_categorie_domain_file))
89
		if (file_exists($wl_categorie_domain_file))
90
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
90
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
91
		else
91
		else
92
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
92
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
93
		$nb_urls = 0;
93
		$nb_urls = 0;
94
		if(file_exists($wl_categorie_ip_file))
-
 
95
			$nb_ip = exec("wc -l $wl_categorie_ip_file | cut -d ' ' -f1");
-
 
96
		else
94
		$nb_ip = 0;
97
			$nb_ip = $l_error_open_file." ".$wl_categorie_ip_file;
-
 
98
	}
95
	}
99
}
96
}
100
$global_usage = file($bl_dir."global_usage");
97
$global_usage = file($bl_dir."global_usage");
101
$langue = strtoupper($Language);
98
$langue = strtoupper($Language);
102
if($categorie == "ossi")
99
if($categorie == "ossi")