Subversion Repositories ALCASAR

Rev

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

Rev 1957 Rev 1958
Line 99... Line 99...
99
	$l_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
99
	$l_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
100
	$l_activate_bl="Activer la nouvelle version";
100
	$l_activate_bl="Activer la nouvelle version";
101
	$l_reject_bl="Rejeter";
101
	$l_reject_bl="Rejeter";
102
	$l_warning="Temps estimé : une minute.";
102
	$l_warning="Temps estimé : une minute.";
103
	$l_specific_filtering="Filtrage special";
103
	$l_specific_filtering="Filtrage special";
104
	$l_maj_rehabilitated="Noms de domaine ou IP réhabilités";
104
	$l_maj_rehabilitated="Noms de domaine ou adresses IP réhabilités";
105
	$l_rehabilitated_dns="Noms de domaine réhabilités";
105
	$l_rehabilitated_dns="Noms de domaine réhabilités";
106
	$l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire <BR> que vous souhaitez réhabiliter.";
106
	$l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire <BR> que vous souhaitez réhabiliter.";
107
	$l_add_to_bl="Noms de domaine ou adresses IP à ajouter à la liste noire";
107
	$l_add_to_bl="Noms de domaine ou adresses IP à ajouter à la liste noire";
108
	$l_rehabilitated_ip="IP réhabilitées";
108
	$l_rehabilitated_ip="Adresses IP réhabilitées";
109
	$l_rehabilitated_ip_explain="Entrez ici des IP bloquées par la liste noire <BR> que vous souhaitez réhabiliter.";
109
	$l_rehabilitated_ip_explain="Entrez ici des IP bloquées par la liste noire <BR> que vous souhaitez réhabiliter.";
110
	$l_one_dns="Entrez une adresse DNS par ligne (exemple : www.domaine.com)";
110
	$l_one_dns="Entrez une adresse DNS par ligne (exemple : www.domaine.com)";
111
	$l_one_ip="Entrez une IP par ligne (exemple : 123.123.123.123)";
111
	$l_one_ip="Entrez une IP par ligne (exemple : 123.123.123.123)";
112
	$l_one_dns_ip="Entrez un nom de domaine ou une adresse IP ou une adresse de réseau par ligne<br>exemple (domaine) : .domaine.org - exemple (ip) : 61.54.52.56 - exemple (réseau) : 172.16.0.0/16";
112
	$l_one_dns_ip="Entrez un nom de domaine ou une adresse IP ou une adresse de réseau par ligne<br>exemple (domaine) : .domaine.org - exemple (ip) : 61.54.52.56 - exemple (réseau) : 172.16.0.0/16";
113
	$l_record="Enregistrer les modifications";
113
	$l_record="Enregistrer les modifications";
Line 147... Line 147...
147
	$l_activate_bl="Activate the new version";
147
	$l_activate_bl="Activate the new version";
148
	$l_reject_bl="Reject";
148
	$l_reject_bl="Reject";
149
	$l_warning="Estimated time : one minute.";
149
	$l_warning="Estimated time : one minute.";
150
	$l_specific_filtering="Specific filtering";
150
	$l_specific_filtering="Specific filtering";
151
	$l_allowed_dns="Allowed domain names";
151
	$l_allowed_dns="Allowed domain names";
152
	$l_maj_rehabilitated="Domain names or IP rehabilitated";
152
	$l_maj_rehabilitated="Domain names or IP addresses to rehabilitated";
153
	$l_rehabilitated_dns="Rehabilitated domain names";
153
	$l_rehabilitated_dns="Domain names to rehabilitated";
154
	$l_rehabilitated_dns_explain="Enter here domain names that are blocked by the blacklist <BR> and you want to rehabilitate.";
154
	$l_rehabilitated_dns_explain="Enter here domain names that are blocked by the blacklist <BR> and you want to rehabilitate.";
155
	$l_add_to_bl="Domain names or IP addresses to add to the blacklist";
155
	$l_add_to_bl="Domain names or IP addresses to add to the blacklist";
156
	$l_rehabilitated_ip="Rehabilitated IP";
156
	$l_rehabilitated_ip="IP addresses to rehabilitated";
157
	$l_rehabilitated_ip_explain="Enter here IP that are blocked by the blacklist <BR> and you want to rehabilitate.";
157
	$l_rehabilitated_ip_explain="Enter here IP that are blocked by the blacklist <BR> and you want to rehabilitate.";
158
	$l_one_dns="Enter one DNS per row (example : www.domaine.com)";
158
	$l_one_dns="Enter one DNS per row (example : www.domaine.com)";
159
	$l_one_ip="Enter one IP per row (example : 123.123.123.123)";
159
	$l_one_ip="Enter one IP per row (example : 123.123.123.123)";
160
	$l_one_dns_ip="Enter one domain name or one IP address or one network address per row <br>example (domain): .domain.org - example (ip): 61.54.56.52 - example (network) : 172.16.0.0/16";
160
	$l_one_dns_ip="Enter one domain name or one IP address or one network address per row <br>example (domain): .domain.org - example (ip): 61.54.56.52 - example (network) : 172.16.0.0/16";
161
	$l_record="Save changes";
161
	$l_record="Save changes";
Line 233... Line 233...
233
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
233
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
234
	break;
234
	break;
235
case 'MAJ_cat_bl' :
235
case 'MAJ_cat_bl' :
236
	if (file_exists($bl_categories_enabled))
236
	if (file_exists($bl_categories_enabled))
237
	{
237
	{
238
		$cat_tab=file_get_contents("$bl_categories_enabled");
238
		exec("/bin/sed -i \"/^ossi-/!d\" $bl_categories_enabled"); // keep ossi custom categories
239
		$ossi_cat_tab=preg_match_all('/^ossi-/',$cat_tab);
-
 
240
		foreach ($cat_tab as $key => $line)
-
 
241
		{
-
 
242
			echo $key."-".$line;
-
 
243
			//if (preg_match ('/^ossi-/', $line))
-
 
244
			//{
-
 
245
			//	$ossi_cat_tab[$n]=$line;
-
 
246
			//	$n=$n+1;
-
 
247
			//}
-
 
248
		}
-
 
249
		foreach ($ossi_cat_tab as $$key => $ossi_cat)
-
 
250
		{
-
 
251
			echo "tab-".$ossi_cat;	
-
 
252
		}
-
 
253
		$pointeur=fopen($bl_categories_enabled, "w+");
239
		$pointeur=fopen($bl_categories_enabled, "a+");
254
		$fichier=fopen($update_file_cat,"w+");
240
		$fichier=fopen($update_file_cat,"w+");
255
		foreach ($_POST as $key => $value)
241
		foreach ($_POST as $key => $value)
256
		{
242
		{
257
			if (strstr($key,'chk-'))
243
			if (strstr($key,'chk-'))
258
			{	
244
			{	
Line 262... Line 248...
262
				{
248
				{
263
					fputs($fichier, "malware rsync://ftp.ut-capitole.fr/blacklist/dest/malware\n");
249
					fputs($fichier, "malware rsync://ftp.ut-capitole.fr/blacklist/dest/malware\n");
264
				}
250
				}
265
			}
251
			}
266
		}
252
		}
267
		//foreach ($ossi_cat_tab as $ossi_cat)
-
 
268
		//{
-
 
269
		//	fwrite($pointeur,$ossi_cat); //restore OSSI custom categories
-
 
270
		//}
-
 
271
		fclose($pointeur);
253
		fclose($pointeur);
272
		fclose($fichier);
254
		fclose($fichier);
273
	}
255
	}
274
	else {echo "$l_error_open_file $bl_categories_enabled";}
256
	else {echo "$l_error_open_file $bl_categories_enabled";}
275
	$fichier=fopen($dir_blacklist."ossi-bl/domains","w+");
257
	$fichier=fopen($dir_blacklist."ossi-bl/domains","w+");