Subversion Repositories ALCASAR

Rev

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

Rev 1894 Rev 1899
Line 63... Line 63...
63
}
63
}
64
if($liste == "bl")
64
if($liste == "bl")
65
{
65
{
66
	if(isset($ossi))
66
	if(isset($ossi))
67
	{
67
	{
-
 
68
	if(isset($_GET['state']) && $_GET['state']=='disable')
-
 
69
	{
-
 
70
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl/".$categorie;
-
 
71
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl/".$categorie;
-
 
72
	}
-
 
73
	else
-
 
74
	{
68
	$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
75
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
69
	$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
76
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
-
 
77
	}
70
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
78
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
71
	{
79
	{
72
		$nb_domains = $_GET['nb_domains'];
80
		$nb_domains = $_GET['nb_domains'];
73
		$nb_ip = $_GET['nb_ip'];
81
		$nb_ip = $_GET['nb_ip'];
74
	}
82
	}
Line 117... Line 125...
117
else
125
else
118
{
126
{
119
	
127
	
120
	if(isset($ossi))
128
	if(isset($ossi))
121
	{
129
	{
-
 
130
	if(isset($_GET['state']) && $_GET['state']=='disable')
-
 
131
	{
-
 
132
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl/".$categorie;
-
 
133
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl/".$categorie;
-
 
134
	}
-
 
135
	else
-
 
136
	{
122
	$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
137
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
123
	$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
138
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
-
 
139
	}
124
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
140
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
125
	{
141
	{
126
		$nb_domains = $_GET['nb_domains'];
142
		$nb_domains = $_GET['nb_domains'];
127
		$nb_ip = $_GET['nb_ip'];
143
		$nb_ip = $_GET['nb_ip'];
128
	}
144
	}
Line 262... Line 278...
262
	</td></tr>
278
	</td></tr>
263
</TABLE>
279
</TABLE>
264
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
280
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
265
</BODY>
281
</BODY>
266
</HTML>
282
</HTML>
-
 
283