This file is indexed.

/etc/dansguardian/languages/arspanish/fancydmtemplate.html is in dansguardian 2.10.1.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
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.
--!>