mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-09-18 09:57:46 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
179
config/e2guardian/languages/italian/fancydmtemplate.html
Normal file
179
config/e2guardian/languages/italian/fancydmtemplate.html
Normal file
@@ -0,0 +1,179 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Downloading -FILENAME- (-FILESIZE- bytes)</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)+"%, time remaining: "+timestring(Math.round((fs-got)/speed))+"; "+filesizestring(speed)+"/s; total downloaded: "+filesizestring(got);
|
||||
} else {
|
||||
msg = "Time remaining: unknown; "+filesizestring(speed)+"/s; total downloaded: "+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 = "Download complete! Now scanning...";
|
||||
document.getElementById('message1').innerHTML = msg;
|
||||
}
|
||||
}
|
||||
function downloadlink(rawlink, prettylink, type) {
|
||||
if (type == 0)
|
||||
var msg = "File scanned";
|
||||
else if (type == 1)
|
||||
var msg = "File downloaded, but not scanned due to size";
|
||||
else if (type == 2)
|
||||
var msg = "File too large to cache, please download directly";
|
||||
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 = "Warning: File too large for content scanning. If you suspect that this file is larger than "+filesizestring(sizelimit)+", refresh this page to download directly.";
|
||||
}
|
||||
//-->
|
||||
</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>
|
118
config/e2guardian/languages/italian/messages
Normal file
118
config/e2guardian/languages/italian/messages
Normal file
@@ -0,0 +1,118 @@
|
||||
# e2guardian messages file in IT Italian
|
||||
# Translated by andrea at diclemente.net
|
||||
"0","Message number absent" # needs translation
|
||||
"1","Accesso Negato"
|
||||
"10","IP limit exceeded. There is a " # needs translation
|
||||
"11"," IP limit set." # needs translation
|
||||
"50"," in " # needs translation
|
||||
"51","TRUSTED" # needs translation
|
||||
"52","DENIED" # needs translation
|
||||
"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","Al tuo indirizzo IP non e' permesso di navigare il web: "
|
||||
"101","Al tuo indirizzo IP non e' permesso di navigare il web."
|
||||
"102","Al tuo username non permesso di navigare il web: "
|
||||
"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 richiesta e' malformata."
|
||||
"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","Trovata una frase vietata: "
|
||||
"301","Trovata una frase vietata."
|
||||
"400","Trovata una combinazione di frasi vietata: "
|
||||
"401","Trovata una combinazione di frasi vietata."
|
||||
"402","Il limite di frasi pesate di "
|
||||
"403","E' stato superato il limite per le frasi pesate."
|
||||
"450","Banned search term found: " # needs translation
|
||||
"451","Banned search term found." # needs translation
|
||||
"452","Banned combination search term found: " # needs translation
|
||||
"453","Banned combination search term found." # needs translation
|
||||
"454","Weighted search term limit of " # needs translation
|
||||
"455","Weighted search term limit exceeded." # needs translation
|
||||
"456","Exception combination search term found: " # needs translation
|
||||
"457","Exception search term found: " # needs translation
|
||||
"500","Sito vietato: "
|
||||
"501","URL vietato: "
|
||||
"502","Il blocco 'Blanket' e' attivo e il sito non e' nella white list."
|
||||
"503","URL con espressione regolare vietata: "
|
||||
"504","URL con espressione regolare vietata trovato."
|
||||
"505","Il blocco 'Blanket' e' attivo e l'indirizzo e' formato dal solo indirizzo IP."
|
||||
"506","HTTPS access is only allowed to trusted sites." # needs translation
|
||||
"507","HTTPS access by IP address is not allowed." # needs translation
|
||||
"508","Access not allowed using this browser (or app): " # needs translation
|
||||
"509","Access not allowed using this browser (or app)." # needs translation
|
||||
"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 client IP match."
|
||||
"601","Exception client user match."
|
||||
"602","Exception site match."
|
||||
"603","Exception URL match."
|
||||
"604","Exception phrase found: "
|
||||
"605","Combination exception phrase found: "
|
||||
"606","Bypass URL exception."
|
||||
"607","Bypass cookie exception."
|
||||
"608","Scan bypass URL exception."
|
||||
"609","Exception regular expression URL match: "
|
||||
"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","Il Web-upload e' vietato."
|
||||
"701","E' stato superato il limite per il Web upload."
|
||||
"750","Blanket file download is active and this MIME type is not on the white list: " # needs translation
|
||||
"751","Blanket file download is active and this file is not matched by the white lists." # needs translation
|
||||
"800","MIME Type vietato: "
|
||||
"900","Extensione vietata: "
|
||||
"1000","Si e' oltrepassato il limite del livello PICS sul sito."
|
||||
"1100","Virus or bad content detected."
|
||||
"1101","Advert blocked"
|
||||
"1200","Please wait - downloading to be scanned..."
|
||||
"1201","Warning: file too large to scan. If you suspect that this file is larger than " # needs translation
|
||||
"1202",", then refresh this page to download directly." # needs translation
|
||||
"1203","WARNING: Could not perform content scan!" # needs translation
|
||||
"1210","Download Complete. Starting scan..."
|
||||
"1220","Scan complete.</p><p>Click here to download: "
|
||||
"1221","Download complete; file not scanned.</p><p>Click here to download: " # needs translation
|
||||
"1222","File too large to cache.</p><p>Click here to re-download, bypassing scan: " # needs translation
|
||||
"1230","File no longer available"
|
144
config/e2guardian/languages/italian/neterr_template.html
Normal file
144
config/e2guardian/languages/italian/neterr_template.html
Normal file
File diff suppressed because one or more lines are too long
38
config/e2guardian/languages/italian/template.html
Normal file
38
config/e2guardian/languages/italian/template.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<HTML><HEAD><TITLE>e2guardian - Accesso Negato</TITLE></HEAD>
|
||||
<BODY>
|
||||
<CENTER><H2>L'ACCESSO E' STATO NEGATO -USER-</H2>
|
||||
<br>L'accesso alla pagina:<P>
|
||||
<strong><a href="-URL-">-URL-</a></strong>
|
||||
<P>... e' stato negato per il seguente motivo:<P>
|
||||
<strong><font color="#ff0000">-REASONGIVEN-</font></strong>
|
||||
<p><table border=1 bgcolor="#FFEE00"><tr><td>Stai vedendo questo errore perche' la pagina che hai cercato<br>
|
||||
di accedere contiene, o e' marcata come contenente, materiale che<br>
|
||||
e' stato ritenuto non appropriato.</td></tr></table>
|
||||
<P><table border=1 bgcolor="#44dd44"><tr><td>Se hai ulteriori domande, contatta il tuo coordinatore ICT o Network Manager.</td></tr></table>
|
||||
|
||||
<P><font size=-3>Powered by <a href="http://e2guardian.org?block" target="_blank">e2guardian</a></font>
|
||||
</center>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<!--
|
||||
|
||||
# Translated by andrea at diclemente.net
|
||||
|
||||
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.
|
||||
- FILTERGROUP- gives the group number.
|
||||
- BYPASS- gives URL which allows temporary bypass of denied page
|
||||
|
||||
|
||||
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.
|
||||
|
||||
Daniel Barron 2002-03-27
|
||||
-->
|
Reference in New Issue
Block a user