mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-09-18 15:57:41 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
181
config/e2guardian/languages/french/fancydmtemplate.html
Normal file
181
config/e2guardian/languages/french/fancydmtemplate.html
Normal file
@@ -0,0 +1,181 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Téléchargement de -FILENAME- (-FILESIZE- octets)
|
||||
</title>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
var scanned = 1;
|
||||
var fs = -FILESIZE-;
|
||||
function timestring(seconds) {
|
||||
var hours = Math.floor(seconds/3600);
|
||||
var minutes = Math.floor((seconds/60) - (hours*3600));
|
||||
var seconds = seconds - (minutes*60) - (hours*3600);
|
||||
var string = "";
|
||||
if (hours > 0) {
|
||||
if (hours < 10)
|
||||
string = "0"+hours;
|
||||
else
|
||||
string = hours;
|
||||
string += ":";
|
||||
}
|
||||
if (minutes > 0) {
|
||||
if (minutes < 10)
|
||||
string += "0"+minutes;
|
||||
else
|
||||
string += minutes;
|
||||
} else {
|
||||
string += "00";
|
||||
}
|
||||
string += ":";
|
||||
if (seconds > 0) {
|
||||
if (seconds < 10)
|
||||
string += "0"+seconds;
|
||||
else
|
||||
string += seconds;
|
||||
} else {
|
||||
string += "00";
|
||||
}
|
||||
return string;
|
||||
}
|
||||
function filesizestring(bytes) {
|
||||
var gb = Math.floor(bytes/1073741824);
|
||||
if (gb > 0)
|
||||
return gb.toString()+" Gb";
|
||||
var mb = Math.floor(bytes/1048576);
|
||||
if (mb > 0)
|
||||
return mb.toString()+" Mb";
|
||||
var kb = Math.floor(bytes/1024);
|
||||
if (kb > 0)
|
||||
return kb.toString()+" Kb";
|
||||
return bytes.toString()+" bytes";
|
||||
}
|
||||
function progressupdate(got, speed) {
|
||||
var msg;
|
||||
if (fs > 0) {
|
||||
var sofar = (got/fs)*16;
|
||||
for (var i = 1; i <=sofar; i++)
|
||||
document.getElementById('progress'+i).style.backgroundColor = 'blue';
|
||||
msg = Math.round((got/-FILESIZE-)*100)+"%, temps restant : "+timestring(Math.round((fs-got)/speed))+"; "+filesizestring(speed)+"/s; total téléchargé : "+filesizestring(got);
|
||||
} else {
|
||||
msg = "Temps restant : inconnu; "+filesizestring(speed)+"/s; total téléchargé : "+filesizestring(got);
|
||||
}
|
||||
document.getElementById('message1').innerHTML = msg;
|
||||
}
|
||||
function nowscanning() {
|
||||
for (var i = 1; i <=16; i++)
|
||||
document.getElementById('progress'+i).style.backgroundColor = 'blue';
|
||||
if (scanned == 1) {
|
||||
var msg = "Téléchargement terminé. Inspection des logiciels malveillants en cours ...";
|
||||
document.getElementById('message1').innerHTML = msg;
|
||||
}
|
||||
}
|
||||
function downloadlink(rawlink, prettylink, type) {
|
||||
if (type == 0)
|
||||
var msg = "Fichier inspecté";
|
||||
else if (type == 1)
|
||||
var msg = "Fichier téléchargé, mais non inspecté car trop volumineux";
|
||||
else if (type == 2)
|
||||
var msg = "Fichier trop volumineux pour être mis en cache, veuillez le téléchargér directement";
|
||||
document.getElementById('message1').innerHTML = msg;
|
||||
if (type != 2)
|
||||
document.getElementById('message2').innerHTML = "<a href='"+rawlink+"'>"+prettylink+"</a>";
|
||||
else
|
||||
document.getElementById('message2').innerHTML = "<a href='"+prettylink+"'>"+prettylink+"</a>";
|
||||
document.write("</body></html>");
|
||||
}
|
||||
function downloadwarning(sizelimit) {
|
||||
scanned = 0;
|
||||
document.getElementById('message2').innerHTML = "Avertissement : fichier trop volumineux pour ètre inspecté. Si vous pensez que le fichier est plus volumineux que "+filesizestring(sizelimit)+", raffraîchissez la page pour le télécharger directement.";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
document.write(
|
||||
unescape(
|
||||
"\
|
||||
<table align='center'><tr><td>\
|
||||
<div style='font-size:8pt;padding:2px;border:solid black 1px'>\
|
||||
<span id='progress1'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress2'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress3'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress4'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress5'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress6'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress7'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress8'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress9'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress10'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress11'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress12'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress13'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress14'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress15'>%26nbsp; %26nbsp;</span> \
|
||||
<span id='progress16'>%26nbsp; %26nbsp;</span> \
|
||||
</div>\
|
||||
</td></tr></table>\
|
||||
<center><p><tt id='message1'></tt></p><p id='message2' style='color: #600;'></p></center>"
|
||||
)
|
||||
);
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<!--
|
||||
The available variables are as follows:
|
||||
- FILENAME- gives the name of the file being downloaded
|
||||
- FILESIZE- gives the size of the file in bytes
|
||||
|
||||
- FILESIZE- of zero indicates that file size is not known
|
||||
|
||||
You need to remove the space between the - and the variable to use them
|
||||
in your HTML. They are there above so extra processing is not required.
|
||||
|
||||
The following JavaScript functions must be defined:
|
||||
|
||||
progressupdate(got, speed)
|
||||
This is called when the page is initially displayed (i.e. after
|
||||
initialtrickledelay has passed), and periodically afterwards to
|
||||
update progress (once every trickledelay seconds).
|
||||
Parameters:
|
||||
got - how much of the file we have downloaded, in bytes.
|
||||
speed - current estimate of download speed, in bytes per second.
|
||||
|
||||
nowscanning()
|
||||
This is called once downloading is complete, and scanning has
|
||||
begun. (Note: scanning has not actually begun if downloadwarning()
|
||||
has been called at some point.)
|
||||
|
||||
downloadlink(rawlink, prettylink, type)
|
||||
This is called after scanning has completed, and the file is
|
||||
ready to be sent to the user.
|
||||
Parameters:
|
||||
rawlink - the URL from which the scanned file can be grabbed
|
||||
prettylink - the original URL which triggered the fancy download manager
|
||||
type - the status of the download/scan:
|
||||
0 - downloaded & scanned
|
||||
1 - downloaded, but too big to have been scanned
|
||||
2 - too big to be completely downloaded
|
||||
codes 1 and 2 can only be encountered on files for which the content
|
||||
length is not known in advance. "rawlink" should be ignored for code 2.
|
||||
|
||||
downloadwarning(sizelimit)
|
||||
This is called when a file with unknown content-length has exceeded
|
||||
the configured maxcontentfilecachescansize. Used to warn the user
|
||||
that the fancy DM may not be able to retrieve the entire file,
|
||||
and that they should download directly (refresh the page; the URL will
|
||||
have been added to DG's clean cache) if they know it to be larger
|
||||
than sizelimit.
|
||||
sizelimit - the value of the fancy DM's maxdownloadsize. If a file
|
||||
exceeds this limit also, the fancy DM cannot continue
|
||||
(will trigger downloadlink status type 2).
|
||||
|
||||
Please note that the fancy download manager also outputs content contained in
|
||||
<noscript> tags, for browsers which disable or do not support javascript. If you
|
||||
customise this template, you may wish to test its behaviour and appearance in
|
||||
such circumstances.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
122
config/e2guardian/languages/french/messages
Normal file
122
config/e2guardian/languages/french/messages
Normal file
@@ -0,0 +1,122 @@
|
||||
# e2guardian messages file in French
|
||||
# Translated by: Bernard Wanadoo and Jacques Theys
|
||||
# Improvements by Jeanuel
|
||||
# Improvements by Mathieu Parent (2011)
|
||||
#
|
||||
# ! Quote "'" changed by backquote "`" to avoid bad interpretation !
|
||||
"0","Message number absent" # needs translation
|
||||
"1","Accès interdit"
|
||||
"10","IP limit exceeded. There is a " # needs translation
|
||||
"11"," IP limit set." # needs translation
|
||||
"50"," in " # needs translation
|
||||
"51","TRUSTED" # needs translation
|
||||
"52","Accès interdit"
|
||||
"53","INFECTED" # needs translation
|
||||
"54","SCANNED" # needs translation
|
||||
"55","CONTENTMOD" # needs translation
|
||||
"56","URLMOD" # needs translation
|
||||
"57","HEADERMOD" # needs translation
|
||||
"58","HEADERADD" # needs translation
|
||||
"59","NETERROR" # needs translation
|
||||
"70","SSL SITE" # needs translation
|
||||
"71","IP Limit" # needs translation
|
||||
"72","Content scanning" # needs translation
|
||||
"100","Votre addresse IP n`est pas autorisée à naviguer sur le site : "
|
||||
"101","Votre addresse IP n`est pas autorisée à naviguer."
|
||||
"102","Votre compte utilisateur n`est pas autorisé à afficher le site : "
|
||||
"103","Banned Client IP" # needs translation
|
||||
"104","Banned Location" # needs translation
|
||||
"105","Banned User" # needs translation
|
||||
"110","Proxy authentication error" # needs translation
|
||||
"121","Only limited access allowed from your location" # needs translation
|
||||
"150","Certificate supplied by server was not valid" # needs translation
|
||||
"151","Could not open ssl connection" # needs translation
|
||||
"152","Failed to get ssl certificate" # needs translation
|
||||
"153","Failed to load ssl private key" # needs translation
|
||||
"154","Failed to negotiate ssl connection to client" # needs translation
|
||||
"155","No SSL certificate supplied by server" # needs translation
|
||||
"156","Server`s SSL certificate does not match domain name" # needs translation
|
||||
"157","Unable to create tunnel through local proxy" # needs translation
|
||||
"158","Opening tunnel failed" # needs translation
|
||||
"159","Could not connect to proxy server" # needs translation
|
||||
"160","Failed to nogotiate ssl connection to server" # needs translation
|
||||
"200","L`URL demandée n'est pas bien formée."
|
||||
"201","Unable to get response from upstream proxy (timeout)" # needs translation
|
||||
"202","Unable to get response from upstream proxy (error)" # needs translation
|
||||
"203","The site requested is not responding" # needs translation
|
||||
"204"," - Please try again later" # needs translation
|
||||
"205","Upstream proxy is not responding (network error)" # needs translation
|
||||
"206"," - Please try again later" # needs translation
|
||||
"207","The site requested does not exist" # needs translation
|
||||
"208","The site requested does not have an IPv4 address" # needs translation
|
||||
"209","Temporary DNS service failure - please try again" # needs translation
|
||||
"210","DNS service failure - please try again later" # needs translation
|
||||
"300","Phrase interdite : "
|
||||
"301","Phrase interdite trouvée."
|
||||
"400","Combinaison de mots interdite : "
|
||||
"401","Combinaison de mots interdite trouvée."
|
||||
"402","Limite de pondération "
|
||||
"403","Limite de pondération dépassée."
|
||||
"450","Terme de recherche interdit : "
|
||||
"451","Terme de recherche interdit trouvé."
|
||||
"452","Combinaison de termes de recherche interdite : "
|
||||
"453","Combinaison de termes de recherche interdite trouvée."
|
||||
"454","Limite de pondération de termes de recherche "
|
||||
"455","Limite de pondération de termes de recherche dépassée."
|
||||
"456","Exception de combinaison de termes de recherche autorisée : "
|
||||
"457","Exception de terme de recherche autorisé : "
|
||||
"500","Site interdit : "
|
||||
"501","URL interdite : "
|
||||
"502","Le mode liste blanche (Blanket Block) est actif et ce site n`est pas dans la liste autorisée, blanche ou grise."
|
||||
"503","Expression régulière d`URL interdite : "
|
||||
"504","Expression régulière d`URL interdite trouvée."
|
||||
"505","Le mode liste blanche d`IPs (IP Blanket Block) est actif et cette addresse est une adresse IP uniquement."
|
||||
"506","Le mode liste blanche SSL (SSL Blanket Block) est actif et ce site n`est pas dans la liste autorisée, blanche ou grise."
|
||||
"507","Le mode liste blanche SSL d`IPs (SSL IP Blanket Block) est actif et cette addresse est une adresse IP uniquement."
|
||||
"508","Expression régulière d`entète HTTP interdite : ",
|
||||
"509","Expression régulière d`entète HTTP interdite trouvée."
|
||||
"510","Blocked IP site " # needs translation
|
||||
"511","Tranparent https connection is not TLS: " # needs translation
|
||||
"512","Tranparent https connection does not have SNI: " # needs translation
|
||||
"520","Blocked HTTPS site: " # needs translation
|
||||
"521","Banned Search Words: " # needs translation
|
||||
"522","Blocked User-Agent: " # needs translation
|
||||
"560","Blocked site (local): " # needs translation
|
||||
"561","Blocked URL (local): " # needs translation
|
||||
"580","Blocked HTTPS site (local): " # needs translation
|
||||
"581","Banned Search Words (local): " # needs translation
|
||||
"600","Exception d`adresse IP client trouvée."
|
||||
"601","Exception d`utilisateur client trouvée."
|
||||
"602","Exception de site trouvée : "
|
||||
"603","Exception d`URL trouvée : "
|
||||
"604","Exception de phrase trouvée : "
|
||||
"605","Exception de combinaison de mots trouvée : "
|
||||
"606","Exception d`URL sans controle trouvée."
|
||||
"607","Exception de cookie sans controle trouvée."
|
||||
"608","Exception d`URL sans inspection des logiciels malveillants trouvée."
|
||||
"609","Exception d`expression régulière d'URL trouvée : "
|
||||
"610","User-Agent pattern match: " # needs translation
|
||||
"620","Referer match: " # needs translation
|
||||
"630","URL match in " # needs translation
|
||||
"631"," location allow list" # needs translation
|
||||
"632","Location overide allow list matched" # needs translation
|
||||
"662","Site (local): " # needs translation
|
||||
"663","URL (local): " # needs translation
|
||||
"700","L`upload web est interdit."
|
||||
"701","Dépassement de la limite d`upload Web."
|
||||
"750","Le mode liste blanche de téléchargement (Blanket file download) est actif et ce type MIME n`est pas dans la liste blanche : "
|
||||
"751","Le mode liste blanche de téléchargement (Blanket file download) est actif et ce fichier n`est pas dans la liste blanche."
|
||||
"800","Type MIME interdit: "
|
||||
"900","Type de fichier interdit : "
|
||||
"1000","Niveau PICS depassé sur le site entier."
|
||||
"1100","Logiciel malveillant détecté."
|
||||
"1101","Publicité bloqué"
|
||||
"1200","Veuillez patienter - téléchargement du fichier en cours ..."
|
||||
"1201","Avertissement : fichier trop volumineux pour ètre inspecté. Si vous pensez que le fichier est plus volumineux que "
|
||||
"1202",", raffraîchissez la page pour le télécharger directement."
|
||||
"1203","WARNING: Could not perform content scan!" # needs translation
|
||||
"1210","Téléchargement terminé. Inspection des logiciels malveillants en cours ..."
|
||||
"1220","Inspection du fichier terminée.</p><p>Cliquez ici pour le télécharger : "
|
||||
"1221","Télécharge terminé. fichier non inspecté.</p><p>Cliquez ici pour le télécharger : "
|
||||
"1222","Fichier trop volumineux pour ètre mis en cache.</p><p>Cliquez ici pour le télécharger à nouveau, sans inspection des logiciels malveillants : "
|
||||
"1230","Le fichier n`est plus disponible"
|
144
config/e2guardian/languages/french/neterr_template.html
Normal file
144
config/e2guardian/languages/french/neterr_template.html
Normal file
File diff suppressed because one or more lines are too long
89
config/e2guardian/languages/french/template.html
Normal file
89
config/e2guardian/languages/french/template.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>e2guardian - Acc&eagrav;s interdit</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#FFFFFF>
|
||||
|
||||
<center>
|
||||
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
|
||||
<tr>
|
||||
<td colspan=2 bgcolor=#FEA700 height=100 align=center>
|
||||
<font face=arial,helvetica size=6>
|
||||
<b>Accès interdit !</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2 bgcolor=#FFFACD height=30 align=right>
|
||||
<font face=arial,helvetica size=3 color=black>
|
||||
<b>-USER- </b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
|
||||
<font face=arial,helvetica size=1 color=black>
|
||||
YOUR ORG NAME
|
||||
</td>
|
||||
<td width=550 bgcolor=#FFFFFF align=center valign=center>
|
||||
<font face=arial,helvetica color=black>
|
||||
<font size=4>
|
||||
L'accès à la page :
|
||||
<br><br>
|
||||
<a href="-URL-" target="_blank">-URL-</a>
|
||||
<br><br>
|
||||
<font size=3>
|
||||
... a été interdit pour les raisons suivantes :
|
||||
<br><br>
|
||||
<font color=red>
|
||||
<b>-REASONGIVEN-</b>
|
||||
<font color=black>
|
||||
<br><br>
|
||||
Catégories:
|
||||
<br><br>
|
||||
<font color=red>
|
||||
<b>-CATEGORIES-</b>
|
||||
<font color=black>
|
||||
<br><br><br><br>
|
||||
Vous voyez ce message parce que vous tentez d'accéder à
|
||||
une page qui contient, ou est réputée contenir des élements
|
||||
qui ont été déclarés inappropriés.
|
||||
<br><br>
|
||||
Pour toute question, contactez votre administrateur réseau.
|
||||
<br><br><br><br>
|
||||
<font size=1>
|
||||
Propulsé par <a href="http://www.e2guardian.org?block" target="_blank">e2guardian</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<!--
|
||||
The available variables are as follows:
|
||||
- URL- gives the URL the user was trying to get to.
|
||||
- REASONGIVEN- gives the nice reason (i.e. not quoting the banned phrase).
|
||||
- REASONLOGGED- gives the reason that gets logged including full details.
|
||||
- USER- gives the username if known.
|
||||
- IP- gives the originating IP.
|
||||
- HOST- gives the originating hostname if known.
|
||||
- RAWFILTERGROUP- gives the group number.
|
||||
- FILTERGROUP- gives the group name.
|
||||
- SERVERIP- gives the IP address on which the filter is running (correct for multiple filterip lines, but not if filterip option is blank).
|
||||
- BYPASS- gives URL which allows temporary bypass of denied page
|
||||
- CATEGORIES- gives the categories assigned to the banned content
|
||||
|
||||
You need to remove the space between the - and the variable to use them
|
||||
in your HTML. They are there above so extra processing is not required.
|
||||
|
||||
More example templates are likely to be found on the e2guardian web site
|
||||
on the Extras page.
|
||||
|
||||
This page was designed by Paul Richards. (http://www.ridney.com/)
|
||||
|
||||
Daniel Barron 2003-09-01
|
||||
|
||||
#Translated by: Mathieu Parent 2011
|
||||
-->
|
Reference in New Issue
Block a user