Subversion Repositories ALCASAR

Rev

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

Rev 1955 Rev 1958
Line 204... Line 204...
204
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
204
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
205
	break;
205
	break;
206
case 'MAJ_cat_wl' :
206
case 'MAJ_cat_wl' :
207
	if (file_exists($wl_categories_enabled))
207
	if (file_exists($wl_categories_enabled))
208
	{
208
	{
-
 
209
		exec("/bin/sed -i \"/^ossi-/!d\" $wl_categories_enabled"); // keep ossi custom categories
209
		$pointeur=fopen($wl_categories_enabled, "w+");
210
		$pointeur=fopen($wl_categories_enabled, "a+");
210
		foreach ($_POST as $key => $value)
211
		foreach ($_POST as $key => $value)
211
		{
212
		{
212
			if (strstr($key,'chk-'))
213
			if (strstr($key,'chk-'))
213
			{	
214
			{	
214
				$line=str_replace('chk-','',$key)."\n";
215
				$line=str_replace('chk-','',$key)."\n";