Subversion Repositories ALCASAR

Rev

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

Rev 1614 Rev 1665
Line 65... Line 65...
65
$Language = 'en';
65
$Language = 'en';
66
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
66
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
67
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
67
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
68
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
68
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
69
if($Language == 'fr'){
69
if($Language == 'fr'){
70
  $l_bl="Liste noire";
70
  $l_bl="Liste noire générale";
71
  $l_list_version="Version de la liste : ";
71
  $l_list_version="Version de la liste : ";
72
  $l_bl_categories="Sélectionnez les catégories à filtrer";
72
  $l_bl_categories="Sélectionnez les catégories à filtrer";
73
  $l_download_bl="Télécharger la dernière version";
73
  $l_download_bl="Télécharger la dernière version";
74
  $l_fingerprint="L'empreinte numérique du fichier téléchargé est : ";
74
  $l_fingerprint="L'empreinte numérique du fichier téléchargé est : ";
75
  $l_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
75
  $l_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
Line 93... Line 93...
93
  $l_ip_filtering="Filtrer les URLs contenant une adresse IP au lieu d'un nom de domaine (ex: http://25.56.58.59/index.htm)";
93
  $l_ip_filtering="Filtrer les URLs contenant une adresse IP au lieu d'un nom de domaine (ex: http://25.56.58.59/index.htm)";
94
  $l_safe_searching="Activer le contrôle scolaire/parental des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
94
  $l_safe_searching="Activer le contrôle scolaire/parental des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
95
  $l_safe_youtube="Pour Youtube, entrez votre identifiant ici : "; 
95
  $l_safe_youtube="Pour Youtube, entrez votre identifiant ici : "; 
96
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>lien pour créer un identifiant Youtube (Id)</a>)";
96
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>lien pour créer un identifiant Youtube (Id)</a>)";
97
  $l_error_open_file="Erreur d'ouverture du fichier";
97
  $l_error_open_file="Erreur d'ouverture du fichier";
98
  $l_personal_file_title="Fichiers personnels";
98
  $l_additional_file_title="Fichiers de 'listes noires' additionnels";
99
  $l_file_list="Liste des fichiers IP";
99
  $l_file_list="Liste des fichiers";
100
  $l_add_file="Ajouter un fichier (une entrée par ligne)";
100
  $l_add_file="Ajouter un fichier";
-
 
101
  $l_add_file_explain="Chaque ligne du fichier doit être une adresse IP ou un nom de domaine"; 
101
  $l_file_name="Nom du fichier";
102
  $l_file_name="Nom du fichier";
102
  $l_file_remove="Supprimer";
103
  $l_file_remove="Supprimer";
103
  $l_error_upload="Erreur d'envoi du fichier";
104
  $l_error_upload="Erreur d'envoi du fichier";
104
  $l_remove="Supprimer";
105
  $l_remove="Supprimer";
105
  $l_submit="Envoyer";
106
  $l_submit="Envoyer";
Line 137... Line 138...
137
  $l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
138
  $l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
138
  $l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube."; 
139
  $l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube."; 
139
  $l_safe_youtube="For Youtube, enter your ID here : "; 
140
  $l_safe_youtube="For Youtube, enter your ID here : "; 
140
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>link to create a Youtube Id</a>)";
141
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>link to create a Youtube Id</a>)";
141
  $l_error_open_file="Error opening file";
142
  $l_error_open_file="Error opening file";
142
  $l_personal_file_title="Personal files";
143
  $l_additional_file_title="Additional blacklist files";
143
  $l_file_list="Files list";
144
  $l_file_list="Files list";
144
  $l_add_file="Add a file (one entry per line)";
145
  $l_add_file="Add a file (one entry per line)";
-
 
146
  $l_add_file_explain="Each line of the file must be an IP address or a domain name"; 
145
  $l_file_name="Filename";
147
  $l_file_name="Filename";
146
  $l_file_remove="Remove";
148
  $l_file_remove="Remove";
147
  $l_error_upload="Error during the upload process";
149
  $l_error_upload="Error during the upload process";
148
  $l_remove="Delete";
150
  $l_remove="Delete";
149
  $l_submit="Submit";
151
  $l_submit="Submit";
Line 403... Line 405...
403
echo "<input type='submit' value='$l_record'>";
405
echo "<input type='submit' value='$l_record'>";
404
echo "</form> ($l_wait)";
406
echo "</form> ($l_wait)";
405
echo "</td></tr></table><br/>";
407
echo "</td></tr></table><br/>";
406
?>
408
?>
407
<table width="100%" border="0" cellspacing="0" cellpadding="0">
409
<table width="100%" border="0" cellspacing="0" cellpadding="0">
408
	<tr><th><?php echo $l_personal_file_title; ?></th></tr>
410
	<tr><th><?php echo $l_additional_file_title; ?></th></tr>
409
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
411
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
410
</table>
412
</table>
411
<table width="100%" border=1 cellspacing=0 cellpadding=1>
413
<table width="100%" border=1 cellspacing=0 cellpadding=1>
412
<form action='bl_filter.php' method='POST'>
414
<form action='bl_filter.php' method='POST'>
413
<input type='hidden' name='choix' value='MAJ_ip_file_delete'>
415
<input type='hidden' name='choix' value='MAJ_ip_file_delete'>
Line 421... Line 423...
421
	echo "<tr><td><center>".exec("sed 's/^.....//g' <<< $value")."</center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>";
423
	echo "<tr><td><center>".exec("sed 's/^.....//g' <<< $value")."</center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>";
422
}
424
}
423
echo "</table><br/></td></form><form action='bl_filter.php' method='POST' enctype='multipart/form-data'>";
425
echo "</table><br/></td></form><form action='bl_filter.php' method='POST' enctype='multipart/form-data'>";
424
echo "<input type='hidden' name='choix' value='MAJ_ip_file_upload'><td width=50% colspan=5 align=center>";
426
echo "<input type='hidden' name='choix' value='MAJ_ip_file_upload'><td width=50% colspan=5 align=center>";
425
echo "<H3>$l_add_file</H3>";
427
echo "<H3>$l_add_file</H3>";
-
 
428
echo "$l_add_file_explain";
426
echo "<input type='file' name='fichier_ip'>";
429
echo "<input type='file' name='fichier_ip'>";
427
echo "<input type='submit' value='$l_submit'>";
430
echo "<input type='submit' value='$l_submit'>";
428
echo "</td></tr>";
431
echo "</td></tr>";
429
echo "</form>";
432
echo "</form>";
430
echo "</table><br/>";
433
echo "</table><br/>";