Subversion Repositories ALCASAR

Rev

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

Rev 1874 Rev 1875
Line 215... Line 215...
215
				$tmp = explode("/",$PRIVATE_IP_MASK);
215
				$tmp = explode("/",$PRIVATE_IP_MASK);
216
				$PRIVATE_IP=$tmp[0];
216
				$PRIVATE_IP=$tmp[0];
217
				}
217
				}
218
			}
218
			}
219
		}
219
		}
220
	}
220
	}	
221
	
-
 
222
#update categories via rsync
-
 
223
$update_select = array();
-
 
224
$update_select[0] = "";
-
 
225
$update_select[1] = "";
-
 
226
 
-
 
227
if ( 0 == filesize( $update_file_cat ) ) $update_select[0] = "checked";
-
 
228
else $update_select[1] = "checked";
-
 
229
	
-
 
230
	
-
 
231
else { echo "$l_error_open_file $conf_file";}
221
else { echo "$l_error_open_file $conf_file";}
232
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
222
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
233
switch ($choix)
223
switch ($choix)
234
{
224
{
235
case 'Download_list' :
225
case 'Download_list' :
Line 251... Line 241...
251
			{
241
			{
252
			if (strstr($key,'chk-'))
242
			if (strstr($key,'chk-'))
253
			{	
243
			{	
254
				$line=str_replace('chk-','',$key)."\n";
244
				$line=str_replace('chk-','',$key)."\n";
255
				fwrite($pointeur,$line);
245
				fwrite($pointeur,$line);
256
				if(trim($line) == 'malware' && $update_select[1] == "checked")
246
				if(trim($line) == 'malware' && $_POST['update_cat'] == 1)
257
				{
247
				{
258
					fputs($fichier, "malware rsync://ftp.ut-capitole.fr/blacklist/dest/malware\n");
248
					fputs($fichier, "malware rsync://ftp.ut-capitole.fr/blacklist/dest/malware\n");
259
				}
249
				}
260
			}
250
			}
261
			}
251
			}
Line 419... Line 409...
419
	}
409
	}
420
else	{
410
else	{
421
	echo "$l_error_open_file $bl_categories";
411
	echo "$l_error_open_file $bl_categories";
422
}
412
}
423
 
413
 
-
 
414
#update categories via rsync
-
 
415
$update_select = array();
-
 
416
$update_select[0] = "";
-
 
417
$update_select[1] = "";
424
 
418
 
-
 
419
if ( 0 == filesize( $update_file_cat ) ) $update_select[0] = "checked";
-
 
420
else $update_select[1] = "checked";
425
	
421
	
426
echo "</td></tr>";
422
echo "</td></tr>";
427
echo "<tr><td valign='middle' align='left' colspan=10>";
423
echo "<tr><td valign='middle' align='left' colspan=10>";
428
echo "<center>$l_update_cat 
424
echo "<center>$l_update_cat 
429
	<input type='radio' name='update_cat' value=0 $update_select[0]> $l_no_update_cat 
425
	<input type='radio' name='update_cat' value=0 $update_select[0]> $l_no_update_cat