Subversion Repositories ALCASAR

Rev

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

Rev 1862 Rev 1863
Line 233... Line 233...
233
			{
233
			{
234
			if (strstr($key,'chk-'))
234
			if (strstr($key,'chk-'))
235
			{	
235
			{	
236
				$line=str_replace('chk-','',$key)."\n";
236
				$line=str_replace('chk-','',$key)."\n";
237
				fwrite($pointeur,$line);
237
				fwrite($pointeur,$line);
238
				if(trim($line) == 'malware')
-
 
239
				{
238
				
240
					$cron_malware = 1;
-
 
241
					$fichier=fopen($cron_apache,"w+");
-
 
242
					fputs($fichier, "# update malware categories every 12 hours\n");
-
 
243
					fputs($fichier, "* 0-23/12 * * * rsync -rv rsync://ftp.ut-capitole.fr/blacklist/dest/malware /etc/dansguardian/lists/blacklists/malware\n");
-
 
244
				}
-
 
245
			}
239
			}
246
			}
240
			}
247
			if(!$cron_malware)
-
 
248
			{
-
 
249
				$fichier=fopen($cron_apache,"w+");
-
 
250
				fputs($fichier, "# malware updates disabled\n");
-
 
251
			}
-
 
252
			
241
			
253
		fclose($pointeur);
242
		fclose($pointeur);
254
		}
243
		}
255
	else {echo "$l_error_open_file $bl_categories_enabled";}
244
	else {echo "$l_error_open_file $bl_categories_enabled";}
256
	$fichier=fopen($dir_dg."blacklists/ossi/domains","w+");
245
	$fichier=fopen($dir_dg."blacklists/ossi/domains","w+");