mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-09-18 03:57:46 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
173
config/e2guardian/languages/danish/fancydmtemplate.html
Normal file
173
config/e2guardian/languages/danish/fancydmtemplate.html
Normal file
@@ -0,0 +1,173 @@
|
||||
<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.
|
||||
-->
|
120
config/e2guardian/languages/danish/messages
Normal file
120
config/e2guardian/languages/danish/messages
Normal file
@@ -0,0 +1,120 @@
|
||||
# e2guardian messages file in Danish
|
||||
#
|
||||
# Translated by Peter Kilsgaard
|
||||
"0","Message number absent" # needs translation
|
||||
"1","Adgang ngtet"
|
||||
"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","Din IP address har ikke lov til at bruge internet: "
|
||||
"101","Din IP address har ikke lov til at bruge internet."
|
||||
"102","Dit brugernavn har ikke lov til at bruge internet: "
|
||||
"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","Den indtastede adresse er ikke valid."
|
||||
"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","Forbudt stning fundet: "
|
||||
"301","Forbudt stning fundet."
|
||||
"400","Forbudt stningskombination fundet: "
|
||||
"401","Forbudt stningskombination fundet."
|
||||
"402","Vgtede stningsgrnse p "
|
||||
"403","Vgtede stningsgrnse overskredet."
|
||||
"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","Forbudt side: "
|
||||
"501","Forbudt Adresse: "
|
||||
"502","Total blokering er aktiveret og den forspurgte side er ikke p positiv listen."
|
||||
"503","Forbudt ord i adressefelt: "
|
||||
"504","Forbudt ord i adressefelt fundet."
|
||||
"505","IP Blokering er aktiveret og den forspurgte side har IP ingen DNS navn."
|
||||
"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","Undtagelse PC IP match."
|
||||
"601","Undtagelse brugernavn match."
|
||||
"602","Undtagelse side match."
|
||||
"603","Undtagelse adresse match."
|
||||
"604","Undtagelses stning fundet: "
|
||||
"605","Kombinations undtagelse stning fundet: "
|
||||
"606","Bypass URL undtagelse."
|
||||
"607","Bypass cookie undtagelse."
|
||||
"608","Scan bypass URL exception."
|
||||
"609","Exception regular expression URL match: "
|
||||
# 606,607 by Daniel Barron - corrections welcome
|
||||
"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","Web upload er forbudt."
|
||||
"701","Web upload grnse overskredet."
|
||||
"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","Forbudt MIME Type: "
|
||||
"900","Forbudt fil format: "
|
||||
"1000","PICS niveau overskredet p den pgldende side."
|
||||
"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/danish/neterr_template.html
Normal file
144
config/e2guardian/languages/danish/neterr_template.html
Normal file
File diff suppressed because one or more lines are too long
68
config/e2guardian/languages/danish/template.html
Normal file
68
config/e2guardian/languages/danish/template.html
Normal file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
|
||||
<TITLE>e2guardian - Access Denied</TITLE>
|
||||
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.0.1 (Win32)">
|
||||
<META NAME="CREATED" CONTENT="20021001;20151540">
|
||||
<META NAME="CHANGED" CONTENT="16010101;0">
|
||||
</HEAD>
|
||||
<BODY LANG="en-US">
|
||||
<H2 ALIGN=CENTER>ADGANG NÆGTET -USER-</H2>
|
||||
<P ALIGN=CENTER><BR>Adgang til denne side:</P>
|
||||
<P ALIGN=CENTER><STRONG><A HREF="-URL-">-URL-</A></STRONG>
|
||||
</P>
|
||||
<P ALIGN=CENTER>... er blevet nægtet på grund af:</P>
|
||||
<P ALIGN=CENTER><STRONG><FONT COLOR="#ff0000">-REASONGIVEN-</FONT></STRONG>
|
||||
</P>
|
||||
<CENTER>
|
||||
<TABLE BORDER=1 CELLPADDING=2 CELLSPACING=2 BGCOLOR="#ffee00">
|
||||
<TR>
|
||||
<TD>
|
||||
<P>Denne meddelse kommer fordi, siden du forsøger at få
|
||||
adgang til indeholder, eller er blevet katagoriseret som, uegnet
|
||||
materiale .</P>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
<CENTER>
|
||||
<TABLE WIDTH=481 BORDER=1 CELLPADDING=2 CELLSPACING=3 BGCOLOR="#44dd44" STYLE="page-break-before: always">
|
||||
<COL WIDTH=469>
|
||||
<TR>
|
||||
<TD WIDTH=469>
|
||||
<P ALIGN=CENTER>Hvis du har spørgsmål til
|
||||
ovennævnte, <BR>bedes du kontakte netværksadministratoren</P>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT SIZE=1>Powered by
|
||||
<A HREF="http://e2guardian.org?block" TARGET="_blank">e2guardian</A></FONT>
|
||||
</P>
|
||||
<P STYLE="margin-bottom: 0cm">
|
||||
<!--
|
||||
|
||||
# Translated by Peter Kilsgaard
|
||||
|
||||
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
|
||||
--><BR>
|
||||
</P>
|
||||
</BODY>
|
||||
</HTML>
|
Reference in New Issue
Block a user