Line 112... |
Line 112... |
112 |
$l_one_ip="Entrez une IP par ligne (exemple : 123.123.123.123)";
|
112 |
$l_one_ip="Entrez une IP par ligne (exemple : 123.123.123.123)";
|
113 |
$l_record="Enregistrer les modifications";
|
113 |
$l_record="Enregistrer les modifications";
|
114 |
$l_wait="Une fois validées, 10 secondes sont nécessaires pour traiter vos modifications";
|
114 |
$l_wait="Une fois validées, 10 secondes sont nécessaires pour traiter vos modifications";
|
115 |
$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)";
|
115 |
$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)";
|
116 |
$l_safe_searching="Activer le contrôle scolaire/parental des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
|
116 |
$l_safe_searching="Activer le contrôle scolaire/parental des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
|
117 |
$l_safe_youtube="Pour Youtube, entrez votre identifiant ici : ";
|
117 |
$l_safe_youtube="Pour Youtube, suivez les étapes ici : ";
|
118 |
$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>)";
|
118 |
$l_youtube_id="(<a href='https://support.google.com/youtube/answer/174084?hl=fr' 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>)";
|
119 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
119 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
120 |
$l_additional_file_title="Fichiers de 'listes noires' additionnels";
|
120 |
$l_additional_file_title="Fichiers de 'listes noires' additionnels";
|
121 |
$l_file_list="Liste des fichiers";
|
121 |
$l_file_list="Liste des fichiers";
|
122 |
$l_add_file="Ajouter un fichier";
|
122 |
$l_add_file="Ajouter un fichier";
|
123 |
$l_add_file_explain="Chaque ligne du fichier doit être une adresse IP ou un nom de domaine";
|
123 |
$l_add_file_explain="Chaque ligne du fichier doit être une adresse IP ou un nom de domaine";
|
Line 157... |
Line 157... |
157 |
$l_one_ip="Enter one IP per row (example : 123.123.123.123)";
|
157 |
$l_one_ip="Enter one IP per row (example : 123.123.123.123)";
|
158 |
$l_record="Save changes";
|
158 |
$l_record="Save changes";
|
159 |
$l_wait="Once validated, 10 seconds are necessary to compute your modifications";
|
159 |
$l_wait="Once validated, 10 seconds are necessary to compute your modifications";
|
160 |
$l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
|
160 |
$l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
|
161 |
$l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube.";
|
161 |
$l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube.";
|
162 |
$l_safe_youtube="For Youtube, enter your ID here : ";
|
162 |
$l_safe_youtube="For Youtube, follow these steps : ";
|
163 |
$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>)";
|
163 |
$l_youtube_id="(<a href='https://support.google.com/youtube/answer/174084?hl=en' 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>)";
|
164 |
$l_error_open_file="Error opening file";
|
164 |
$l_error_open_file="Error opening file";
|
165 |
$l_additional_file_title="Additional blacklist files";
|
165 |
$l_additional_file_title="Additional blacklist files";
|
166 |
$l_file_list="Files list";
|
166 |
$l_file_list="Files list";
|
167 |
$l_add_file="Add a file";
|
167 |
$l_add_file="Add a file";
|
168 |
$l_add_file_explain="Each line of the file must be an IP address or a domain name";
|
168 |
$l_add_file_explain="Each line of the file must be an IP address or a domain name";
|
Line 263... |
Line 263... |
263 |
foreach ($_POST as $key => $value)
|
263 |
foreach ($_POST as $key => $value)
|
264 |
{
|
264 |
{
|
265 |
if (strstr($key,'chk-ip')) $pureip="-pureip_on";
|
265 |
if (strstr($key,'chk-ip')) $pureip="-pureip_on";
|
266 |
if (strstr($key,'chk-safesearch')) $safesearch="-safesearch_on";
|
266 |
if (strstr($key,'chk-safesearch')) $safesearch="-safesearch_on";
|
267 |
}
|
267 |
}
|
268 |
if ($_POST['Youtube_ID'] == '') { $New_ID="ABCD1234567890abcdef";} // default ID (no action)
|
- |
|
269 |
else {$New_ID=$_POST['Youtube_ID'];}
|
- |
|
270 |
file_put_contents($conf_file, str_replace("YOUTUBE_ID=$YOUTUBE_ID", "YOUTUBE_ID=$New_ID", file_get_contents($conf_file)));
|
- |
|
271 |
$YOUTUBE_ID=$New_ID;
|
- |
|
272 |
exec ("sudo /usr/local/bin/alcasar-url_filter.sh $safesearch $pureip");
|
268 |
exec ("sudo /usr/local/bin/alcasar-url_filter_bl.sh $safesearch $pureip");
|
273 |
break;
|
269 |
break;
|
274 |
case 'MAJ_ip_file_delete' :
|
270 |
case 'MAJ_ip_file_delete' :
|
275 |
foreach($_POST as $fichier => $value)
|
271 |
foreach($_POST as $fichier => $value)
|
276 |
{
|
272 |
{
|
277 |
if($fichier != "choix")
|
273 |
if($fichier != "choix")
|
Line 513... |
Line 509... |
513 |
else {
|
509 |
else {
|
514 |
echo "$l_error_open_file $urlregex_file";
|
510 |
echo "$l_error_open_file $urlregex_file";
|
515 |
}
|
511 |
}
|
516 |
echo "> $l_safe_searching";
|
512 |
echo "> $l_safe_searching";
|
517 |
echo "<br>$l_safe_youtube";
|
513 |
echo "<br>$l_safe_youtube";
|
518 |
echo "<input type='text' name='Youtube_ID' size='30' value='";
|
- |
|
519 |
if ($YOUTUBE_ID == "ABCD1234567890abcdef") // generic ID (do nothing)
|
- |
|
520 |
{
|
- |
|
521 |
echo "'>";
|
- |
|
522 |
}
|
- |
|
523 |
else {
|
- |
|
524 |
echo "$YOUTUBE_ID'>";
|
- |
|
525 |
}
|
- |
|
526 |
echo " $l_youtube_id<tr><td>";
|
514 |
echo " $l_youtube_id<tr><td>";
|
527 |
echo "<input type='submit' value='$l_record'></td></tr>";
|
515 |
echo "<input type='submit' value='$l_record'></td></tr>";
|
528 |
?>
|
516 |
?>
|
529 |
</FORM>
|
517 |
</FORM>
|
530 |
</TABLE>
|
518 |
</TABLE>
|