eafdc12d4d4130ab240df3009e73f6b42f83d472
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

1) #!/usr/bin/perl -w
2) use warnings;
3) use strict;
4) use LWP::Simple;
5) use LWP;
6) use Date::Parse;
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 16 years ago

7) use Date::Format;
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

8) 
Jacob Appelbaum Add credit and some idea of...

Jacob Appelbaum authored 16 years ago

9) #
10) # A quick hack by Jacob Appelbaum <jacob@appelbaum.net>
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

11) # LWP suggestions by Leigh Honeywell
Jacob Appelbaum Add credit and some idea of...

Jacob Appelbaum authored 16 years ago

12) # This is Free Software (GPLv3)
13) # http://www.gnu.org/licenses/gpl-3.0.txt
14) #
15) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

16) print "Creating LWP agent ($LWP::VERSION)...\n";
17) my $lua = LWP::UserAgent->new(
18)     keep_alive => 1,
Andrew Lewman Change mirror script to use...

Andrew Lewman authored 15 years ago

19)     timeout => 1,
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

20)     agent => "Tor MirrorCheck Agent"
21) );
22) 
23) sub sanitize {
24)     my $taintedData = shift;
25)     my $cleanedData;
26)     my $whitelist = '-a-zA-Z0-9: +';
27) 
28)     # clean the data, return cleaned data
29)     $taintedData =~ s/[^$whitelist]//go;
30)     $cleanedData = $taintedData;
31) 
32)     return $cleanedData;
33) }
34) 
35) sub FetchDate {
36)     my $url = shift; # Base url for mirror
37)     my $trace = "project/trace/www.torproject.org"; # Location of recent update info
38)     $url = "$url$trace";
39) 
40)     print "Fetching possible date from: $url\n";
41) 
42)     my $request = new HTTP::Request GET => "$url";
43)     my $result = $lua->request($request);
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

44)     my $code = $result->code();
45)     print "Result code $code\n";
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

46) 
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

47)     if ($result->is_success && $code eq "200"){
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

48)        my $taint = $result->content;
49)        my $content = sanitize($taint);
50)        if ($content) {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

51) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

52)             my $date = str2time($content);
53) 
54)             if ($date) {
55)                 print "We've fetched a date $date.\n";
56)                 return $date;
57)             } else {
58)                 print "We've haven't fetched a date.\n";
59)                 return "Unknown";
60)             }
61) 
62)         } else {
63)             print "Unable to fetch date, empty content returned.\n";
64)             return "Unknown";
65)         }
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

66) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

67)     } else {
68)        print "Our request failed, we had no result.\n";
69)        return "Unknown";
70)     }
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

71) 
72)     return "Unknown";
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

73) }
74) 
75) # This is the list of all known Tor mirrors
76) # Add new mirrors to the bottom!
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

77) my %m = (
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

78)        mirror000 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

79)             adminContact => "or-assistants.local",
Mfr add contact address on mirr...

Mfr authored 16 years ago

80)             orgName => "Cypherpunks",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

81)             isoCC => "AT",
82)             subRegion => "",
83)             region => "Europe",
84)             ipv4 => "True",
85)             ipv6 => "False",
86)             loadBalanced => "Unknown",
87)             httpWebsiteMirror => "http://tor.cypherpunks.at/",
88)             rsyncWebsiteMirror => "rsync://tor.cypherpunks.at/tor",
89)             httpDistMirror => "http://tor.cypherpunks.at/dist/",
Jacob Appelbaum Normalize rsync urls.

Jacob Appelbaum authored 16 years ago

90)             rsyncDistMirror => "rsync://tor.cypherpunks.at::tor/dist/",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

91)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

92)         },
93) 
94)        mirror001 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

95)             adminContact => "webmaster.depthstrike.com",
Mfr add contact address on mirr...

Mfr authored 16 years ago

96)             orgName => "Depthstrike",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

97)             isoCC => "CA",
98)             subRegion => "NS",
99)             region => "North America",
100)             ipv4 => "True",
101)             ipv6 => "False",
102)             loadBalanced => "Unknown",
103)             httpWebsiteMirror => "http://tor.depthstrike.com/",
104)             ftpWebsiteMirror => "",
105)             rsyncWebsiteMirror => "",
106)             httpDistMirror => "http://tor.depthstrike.com/dist/",
107)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

108)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

109)         },
110) 
111)        mirror002 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

112)             adminContact => "operator.hermetix.org",
Mfr add contact address on mirr...

Mfr authored 16 years ago

113)             orgName => "Hermetix",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

114)             isoCC => "CA",
115)             subRegion => "QC",
116)             region => "North America",
117)             ipv4 => "True",
118)             ipv6 => "False",
119)             loadBalanced => "Unknown",
120)             httpWebsiteMirror => "http://tor.hermetix.org/",
121)             rsyncWebsiteMirror => "",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

122)             httpDistMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

123)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

124)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

125)         },
126) 
127)        mirror003 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

128)             adminContact => "",
Mfr add contact address on mirr...

Mfr authored 16 years ago

129)             orgName => "Boinc",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

130)             isoCC => "CH",
131)             subRegion => "",
132)             region => "Europe",
133)             ipv4 => "True",
134)             ipv6 => "False",
135)             loadBalanced => "Unknown",
136)             httpWebsiteMirror => "http://tor.boinc.ch/",
137)             ftpWebsiteMirror => "",
138)             rsyncWebsiteMirror => "",
139)             httpDistMirror => "http://tor.boinc.ch/dist/",
140)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

141)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

142)         },
143) 
144)        mirror004 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

145)             adminContact => "peihanru.gmail.com",
Mfr add contact address on mirr...

Mfr authored 16 years ago

146)             orgName => "Anonymity",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

147)             isoCC => "CN",
148)             subRegion => "",
149)             region => "Asia",
150)             ipv4 => "True",
151)             ipv6 => "False",
152)             loadBalanced => "Unknown",
153)             httpWebsiteMirror => "http://tor.anonymity.cn/",
154)             ftpWebsiteMirror => "",
155)             rsyncWebsiteMirror => "",
156)             httpDistMirror => "http://tor.anonymity.cn/dist/",
157)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

158)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

159)         },
160) 
Jacob Appelbaum Fix numbering of mirror, up...

Jacob Appelbaum authored 16 years ago

161)        mirror005 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

162)             adminContact => "citizen428.gmail.com",
Mfr add contact address on mirr...

Mfr authored 16 years ago

163)             orgName => "Bbs",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

164)             isoCC => "DE",
165)             subRegion => "",
166)             region => "Europe",
167)             ipv4 => "True",
168)             ipv6 => "False",
169)             loadBalanced => "Unknown",
170)             httpWebsiteMirror => "http://tor.blingblingsquad.net/",
171)             ftpWebsiteMirror => "",
172)             rsyncWebsiteMirror => "",
Andrew Lewman Removed the DE bbs /dist mi...

Andrew Lewman authored 16 years ago

173)             httpDistMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

174)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

175)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

176)         },
177) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

178)        mirror005 => {
179)             orgName => "Berapla",
180)             isoCC => "DE",
181)             subRegion => "",
182)             region => "Europe",
183)             ipv4 => "True",
184)             ipv6 => "False",
185)             loadBalanced => "Unknown",
186)             httpWebsiteMirror => "http://download.berapla.de/mirrors/tor/",
187)             ftpWebsiteMirror => "",
188)             rsyncWebsiteMirror => "",
189)             httpDistMirror => "http://download.berapla.de/mirrors/tor/dist/",
190)             rsyncDistMirror => "",
191)             updateDate => "Unknown",
192)         },
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

193) 
194)        mirror006 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

195)             adminContact => "cm.cybermirror.org",
Mfr add contact address on mirr...

Mfr authored 16 years ago

196)             orgName => "Cybermirror",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

197)             isoCC => "DE",
198)             subRegion => "",
199)             region => "Europe",
200)             ipv4 => "True",
201)             ipv6 => "False",
202)             loadBalanced => "Unknown",
203)             httpWebsiteMirror => "http://tor.cybermirror.org/",
204)             ftpWebsiteMirror => "",
205)             rsyncWebsiteMirror => "",
206)             httpDistMirror => "http://tor.cybermirror.org/dist/",
207)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

208)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

209)         },
210) 
211)        mirror007 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

212)             adminContact => "contact.algorithmus.com",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

213)             orgName => "Spline",
214)             isoCC => "DE",
215)             subRegion => "FU",
216)             region => "Europe",
217)             ipv4 => "True",
218)             ipv6 => "False",
219)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

220)             httpWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

221)             ftpWebsiteMirror => "",
222)             rsyncWebsiteMirror => "",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

223)             httpDistMirror => "http://rem.spline.de/tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

224)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

225)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

226)         },
227) 
228)        mirror009 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

229)             adminContact => "beaver.trash.net",
Mfr add contact address on mirr...

Mfr authored 16 years ago

230)             orgName => "Onionland",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

231)             isoCC => "DE",
232)             subRegion => "",
233)             region => "Europe",
234)             ipv4 => "True",
235)             ipv6 => "False",
236)             loadBalanced => "Unknown",
237)             httpWebsiteMirror => "http://mirror.onionland.org/",
238)             ftpWebsiteMirror => "",
239)             rsyncWebsiteMirror => "rsync: mirror.onionland.org::tor/",
240)             httpDistMirror => "http://mirror.onionland.org/dist/",
Jacob Appelbaum Normalize rsync urls.

Jacob Appelbaum authored 16 years ago

241)             rsyncDistMirror => "rsync://mirror.onionland.org::tor/dist/",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

242)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

243)         },
244) 
245)        mirror010 => {
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

246)             adminContact => "contact.plentyfact.org",
Mfr add contact address on mirr...

Mfr authored 16 years ago

247)             orgName => "Plentyfact",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

248)             isoCC => "DE",
249)             subRegion => "",
250)             region => "Europe",
251)             ipv4 => "True",
252)             ipv6 => "False",
253)             loadBalanced => "Unknown",
254)             httpWebsiteMirror => "http://tor.plentyfact.net/",
255)             ftpWebsiteMirror => "",
256)             httpsWebsiteMirror => "https://tor.plentyfact.net/",
257)             rsyncWebsiteMirror => "",
258)             httpDistMirror => "http://tor.plentyfact.net/dist/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

259)             httpsDistMirror => "https://tor.plentyfact.net/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

260)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

261)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

262)         },
263) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

264)        mirror011 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

265)             adminContact => "info.zentrum-der-gesundheit.de",
Mfr add contact address on mirr...

Mfr authored 16 years ago

266)             orgName => "Zentrum der Gesundheit",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

267)             isoCC => "DK",
268)             subRegion => "",
269)             region => "Europe",
270)             ipv4 => "True",
271)             ipv6 => "False",
272)             loadBalanced => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

273)             httpWebsiteMirror => "http://tor.zdg-gmbh.eu/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

274)             ftpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

275)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

276)             httpDistMirror => "http://tor.zdg-gmbh.eu/dist/",
277)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

278)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

279)         },
280) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

281)        mirror012 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

282)             adminContact => "kurt.miroir-francais.fr",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

283)             orgName => "CRAN",
284)             isoCC => "FR",
Mfr add contact address on mirr...

Mfr authored 16 years ago

285)             subRegion => "Ile de France",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

286)             region => "Europe",
287)             ipv4 => "True",
288)             ipv6 => "False",
289)             loadBalanced => "Unknown",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

290)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

291)             rsyncWebsiteMirror => "rsync://miroir-francais.fr::tor",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

292)             ftpWebsiteMirror => "ftp://miroir-francais.fr/pub/tor/",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

293)             httpDistMirror => "http://tor.miroir-francais.fr/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

294)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

295)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

296)         },
297) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

298)        mirror013 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

299)             adminContact => "root.amorphis.eu",
Mfr add contact address on mirr...

Mfr authored 16 years ago

300)             orgName => "Amorphis",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

301)             isoCC => "NL",
302)             subRegion => "",
303)             region => "Europe",
304)             ipv4 => "True",
305)             ipv6 => "False",
306)             loadBalanced => "Unknown",
307)             httpWebsiteMirror => "http://tor.amorphis.eu/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

308)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

309)             ftpWebsiteMirror => "",
310)             httpDistMirror => "http://tor.amorphis.eu/dist/",
311)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

312)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

313)         },
314) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

315)        mirror014 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

316)             adminContact => "mirror.bit.nl",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

317)             orgName => "BIT BV",
318)             isoCC => "NL",
319)             subRegion => "",
320)             region => "Europe",
321)             ipv4 => "True",
322)             ipv6 => "False",
323)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

324)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

325)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

326)             ftpWebsiteMirror => "ftp://ftp.bit.nl/mirror/tor/",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

327)             httpDistMirror => "http://ftp.bit.nl/mirror/tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

328)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

329)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

330)         },
331) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

332)        mirror015 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

333)             adminContact => "webmaster.ccc.de",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

334)             orgName => "CCC",
335)             isoCC => "NL",
336)             subRegion => "",
337)             region => "Europe",
338)             ipv4 => "True",
339)             ipv6 => "False",
340)             loadBalanced => "Unknown",
341)             httpWebsiteMirror => "http://tor.ccc.de/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

342)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

343)             ftpWebsiteMirror => "",
344)             httpDistMirror => "http://tor.ccc.de/dist/",
345)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

346)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

347)         },
348) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

349)        mirror016 => {
Roger Dingledine update mirrors

Roger Dingledine authored 16 years ago

350)             adminContact => "root.kamagurka.org",
Mfr add contact address on mirr...

Mfr authored 16 years ago

351)             orgName => "Kamagurka",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

352)             isoCC => "NL",
353)             subRegion => "Haarlem",
354)             region => "Europe",
355)             ipv4 => "True",
356)             ipv6 => "False",
357)             loadBalanced => "Unknown",
358)             httpWebsiteMirror => "http://tor.kamagurka.org/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

359)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

360)             ftpWebsiteMirror => "",
361)             httpDistMirror => "http://tor.kamagurka.org/dist/",
362)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

363)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

364)         },
365) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

366)        mirror017 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

367)             adminContact => "mirrors.osmirror.nl",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

368)             orgName => "OS Mirror",
369)             isoCC => "NL",
370)             subRegion => "",
371)             region => "Europe",
372)             ipv4 => "True",
373)             ipv6 => "False",
374)             loadBalanced => "Unknown",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

375)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

376)             rsyncWebsiteMirror => "rsync://rsync.osmirror.nl::tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

377)             ftpWebsiteMirror => "ftp://ftp.osmirror.nl/pub/tor/",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

378)             httpDistMirror => "http://tor.osmirror.nl/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

379)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

380)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

381)         },
382) 
383) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

384)        mirror018 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

385)             adminContact => "evert.meulie.net",
Mfr add contact address on mirr...

Mfr authored 16 years ago

386)             orgName => "Meulie",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

387)             isoCC => "NO",
388)             subRegion => "",
389)             region => "Europe",
390)             ipv4 => "True",
391)             ipv6 => "False",
392)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

393)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

394)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

395)             ftpWebsiteMirror => "",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

396)             httpDistMirror => "http://tor.meulie.net/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

397)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

398)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

399)         },
400) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

401)        mirror019 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

402)             adminContact => "ghirai.ghirai.com",
Mfr add contact address on mirr...

Mfr authored 16 years ago

403)             orgName => "Ghirai",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

404)             isoCC => "UK",
405)             subRegion => "London",
406)             region => "Europe",
407)             ipv4 => "True",
408)             ipv6 => "False",
409)             loadBalanced => "Unknown",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

410)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

411)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

412)             ftpWebsiteMirror => "",
Jacob Appelbaum Updated the mirrors-table t...

Jacob Appelbaum authored 16 years ago

413)             httpDistMirror => "http://www.ghirai.com/tor/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

414)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

415)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

416)         },
417) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

418)        mirror020 => {
419) 	    adminContact => "bjw.bjwonline.com",
Mfr fix more typos

Mfr authored 16 years ago

420)             orgName => "BJWOnline",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

421)             isoCC => "US",
422)             subRegion => "California",
423)             region => "North America",
424)             ipv4 => "True",
425)             ipv6 => "False",
426)             loadBalanced => "Unknown",
427)             httpWebsiteMirror => "http://mirror.bjwonline.com/tor/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

428)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

429)             ftpWebsiteMirror => "",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

430)             httpDistMirror => "http://mirror.bjwonline.com/tor/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

431)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

432)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

433)         },
434) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

435)        mirror021 => {
436) 	    adminContact => "hostmaster.zombiewerks.com",
Mfr fix more typos

Mfr authored 16 years ago

437)             orgName => "TheOnionRouter",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

438)             isoCC => "US",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

439)             subRegion => "New Jersey",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

440)             region => "North America",
441)             ipv4 => "True",
442)             ipv6 => "False",
443)             loadBalanced => "Unknown",
444)             httpWebsiteMirror => "http://www.theonionrouter.com/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

445)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

446)             ftpWebsiteMirror => "",
447)             httpDistMirror => "http://www.theonionrouter.com/dist/",
448)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

449)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

450)         },
451) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

452)        mirror022 => {
Mfr give help to the fighter in...

Mfr authored 16 years ago

453)             adminContact => "jeroen.unfix.org",
Mfr fix more typos

Mfr authored 16 years ago

454)             orgName => "Unfix",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

455)             isoCC => "CH",
456)             subRegion => "",
457)             region => "Europe",
458)             ipv4 => "True",
459)             ipv6 => "True",
460)             loadBalanced => "Unknown",
461)             httpWebsiteMirror => "http://tor.unfix.org/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

462)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

463)             ftpWebsiteMirror => "",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

464)             httpDistMirror => "http://tor.unfix.org/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

465)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

466)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

467)         },
468) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

469)        mirror023 => {
Mfr give help to the fighter in...

Mfr authored 16 years ago

470)             adminContact => "jeroen.unfix.org",
Mfr fix more typos

Mfr authored 16 years ago

471)             orgName => "Sixx",
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 16 years ago

472)             isoCC => "CH",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

473)             subRegion => "",
474)             region => "Europe",
475)             ipv4 => "True",
476)             ipv6 => "True",
477)             loadBalanced => "Unknown",
478)             httpWebsiteMirror => "http://tor.sixxs.net/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

479)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

480)             ftpWebsiteMirror => "",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

481)             httpDistMirror => "http://tor.sixxs.net/dist/",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

482)             rsyncDistMirror => "",
Jacob Appelbaum Fix a date bug.

Jacob Appelbaum authored 16 years ago

483)             updateDate => "Unknown",
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

484)         },
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 16 years ago

485) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

486)        mirror024 => {
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 16 years ago

487)             adminContact => "",
Mfr fix more typos

Mfr authored 16 years ago

488)             orgName => "Crypto",
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 16 years ago

489)             isoCC => "US",
490)             subRegion => "",
491)             region => "North America",
492)             ipv4 => "True",
493)             ipv6 => "False",
494)             loadBalanced => "Unknown",
495)             httpWebsiteMirror => "http://crypto.nsa.org/tor/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

496)             rsyncWebsiteMirror => "",
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 16 years ago

497)             ftpWebsiteMirror => "",
498)             httpDistMirror => "http://crypto.nsa.org/tor/dist/",
499)             rsyncDistMirror => "",
500)             updateDate => "Unknown",
501)         },
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 16 years ago

502) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

503)        mirror025 => {
Mfr give help to the fighter in...

Mfr authored 16 years ago

504)             adminContact => "web2005a.year2005a.wiretapped.net",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

505)             orgName => "Wiretapped",
506)             isoCC => "AU",
507)             subRegion => "Sydney",
508)             region => "Oceania",
509)             ipv4 => "True",
510)             ipv6 => "False",
511)             loadBalanced => "Unknown",
512)             httpWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

513)             rsyncWebsiteMirror => "",
Jacob Appelbaum Update of mirrors from M Fr.

Jacob Appelbaum authored 16 years ago

514)             ftpWebsiteMirror => "ftp://ftp.mirrors.wiretapped.net/pub/security/cryptography/network/tor/",
515)             httpDistMirror => "http://www.mirrors.wiretapped.net/security/cryptography/network/tor/",
516)             rsyncDistMirror => "",
517)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

518)         },
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 16 years ago

519) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

520)         mirror026 => {
Mfr give help to the fighter in...

Mfr authored 16 years ago

521)             adminContact => "tormaster.xpdm.us",
Mfr fix more typos

Mfr authored 16 years ago

522)             orgName => "Xpdm",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 16 years ago

523)             isoCC => "US",
524)             subRegion => "",
525)             region => "North America",
526)             ipv4 => "True",
527)             ipv6 => "False",
528)             loadBalanced => "Unknown",
529)             httpWebsiteMirror => "http://torproj.xpdm.us/",
Jacob Appelbaum Update table to include htt...

Jacob Appelbaum authored 16 years ago

530)             httpsWebsiteMirror => "https://torproj.xpdm.us/",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

531)             rsyncWebsiteMirror => "",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 16 years ago

532)             ftpWebsiteMirror => "",
Jacob Appelbaum Update table to include htt...

Jacob Appelbaum authored 16 years ago

533)             httpDistMirror => "http://torproj.xpdm.us/dist/",
534)             httpsDistMirror => "https://torproj.xpdm.us/dist/",
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 16 years ago

535)             rsyncDistMirror => "",
536)             hiddenServiceMirror => "http://h3prhz46uktgm4tt.onion/",
537)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

538)         },
Jacob Appelbaum New mirror, update mirror t...

Jacob Appelbaum authored 16 years ago

539) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

540)         mirror027 => {
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

541)             adminContact => "internetfreebeijing\@gmail.com",
542)             orgName => "Unknown",
543)             isoCC => "CN",
544)             subRegion => "China",
545)             region => "Asia",
546)             ipv4 => "True",
547)             ipv6 => "False",
548)             loadBalanced => "No",
549)             httpWebsiteMirror => "http://free.be.ijing2008.cn/tor/",
550)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

551)             rsyncWebsiteMirror => "",
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

552)             ftpWebsiteMirror => "",
553)             httpDistMirror => "http://free.be.ijing2008.cn/tor/dist/",
554)             httpsDistMirror => "",
555)             rsyncDistMirror => "",
556)             hiddenServiceMirror => "",
557)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

558)         },
Jacob Appelbaum Updated to add new mirror.

Jacob Appelbaum authored 16 years ago

559) 
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

560)         mirror028 => {
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

561)             adminContact => "security\@hostoffice.hu",
562)             orgName => "Unknown",
563)             isoCC => "HU",
564)             subRegion => "Hungary",
565)             region => "Europe",
566)             ipv4 => "True",
567)             ipv6 => "False",
568)             loadBalanced => "No",
569)             httpWebsiteMirror => "http://mirror.tor.hu/",
570)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

571)             rsyncWebsiteMirror => "",
Andrew Lewman Added mirror.tor.hu back to...

Andrew Lewman authored 15 years ago

572)             ftpWebsiteMirror => "",
573)             httpDistMirror => "http://mirror.tor.hu/dist/",
574)             httpsDistMirror => "",
575)             rsyncDistMirror => "",
576)             hiddenServiceMirror => "",
577)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

578)         },
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

579)         mirror029 => {
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

580)             adminContact => "",
Andrew Lewman Add the organization sponso...

Andrew Lewman authored 15 years ago

581)             orgName => "Technica-03",
Roger Dingledine fix a syntax error in our perl

Roger Dingledine authored 15 years ago

582)             isoCC => "UA",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

583)             subRegion => "Ukraine",
584)             region => "Eastern Europe",
585)             ipv4 => "True",
586)             ipv6 => "False",
587)             loadBalanced => "No",
588)             httpWebsiteMirror => "http://torua.reactor-xg.kiev.ua/",
589)             httpsWebsiteMirror => "",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

590)             rsyncWebsiteMirror => "",
Andrew Lewman Added mirror in the Ukraine.

Andrew Lewman authored 15 years ago

591)             ftpWebsiteMirror => "",
592)             httpDistMirror => "http://tordistua.reactor-xg.kiev.ua",
593)             httpsDistMirror => "",
594)             rsyncDistMirror => "",
595)             hiddenServiceMirror => "",
596)             updateDate => "Unknown",
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

597)         },
Andrew Lewman clean up the dead mirror li...

Andrew Lewman authored 15 years ago

598) 	mirror030 => {
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

599)             adminContact => "",
600)             orgName => "chaos darmstadt",
601)             isoCC => "DE",
602)             subRegion => "Germany",
603)             region => "Europe",
604)             ipv4 => "True",
605)             ipv6 => "False",
606)             loadBalanced => "No",
607)             httpWebsiteMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/",
608)             httpsWebsiteMirror => "",
609)             rsyncWebsiteMirror => "",
610)             ftpWebsiteMirror => "",
611)             httpDistMirror => "http://mirrors.chaos-darmstadt.de/tor-mirror/dist/",
612)             httpsDistMirror => "",
613)             rsyncDistMirror => "",
614)             hiddenServiceMirror => "",
615)             updateDate => "Unknown",
616)         }
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

617) );
618) 
619) my $count = values %m;
620) print "We have a total of $count mirrors\n";
621) print "Fetching the last updated date for each mirror.\n";
622) 
Andrew Lewman Change mirror script to use...

Andrew Lewman authored 15 years ago

623) my $tortime;
624) $tortime = FetchDate("http://www.torproject.org/");
625) print "The official time for Tor is $tortime. \n";
626) 
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

627) foreach my $server ( keys %m ) {
628) 
629)     print "Attempting to fetch from $m{$server}{'orgName'}\n";
630) 
631)     if ($m{$server}{'httpWebsiteMirror'}) {
632)         print "Attempt to fetch via HTTP.\n";
633)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpWebsiteMirror'}");
634)     } elsif ($m{$server}{'httpsWebsiteMirror'}) {
635)         print "Attempt to fetch via HTTPS.\n";
636)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'httpsWebsiteMirror'}");
637)     } elsif ($m{$server}{'ftpWebsiteMirror'}) {
638)         print "Attempt to fetch via FTP.\n";
639)         $m{$server}{"updateDate"} = FetchDate("$m{$server}{'ftpWebsiteMirror'}");
640)     } else {
641)         print "We were unable to fetch or store anything. We still have the following: $m{$server}{'updateDate'}\n";
642)     }
643) 
644)     print "We fetched and stored the following: $m{$server}{'updateDate'}\n";
645) 
646)  }
647) 
648) 
649) print "We sorted the following mirrors by their date of last update: \n";
650) foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
651) 
652)      print "\n";
653)      print "Mirror $m{$server}{'orgName'}: \n";
654) 
655)      foreach my $attrib ( sort keys %{$m{$server}} ) {
656)         print "$attrib = $m{$server}{$attrib}";
657)         print "\n";
658)      };
659) }
660) 
661) my $outFile = "include/mirrors-table.wmi";
662) my $html;
663) open(OUT, "> $outFile") or die "Can't open $outFile: $!";
664) 
Andrew Lewman updated mirrors, added new...

Andrew Lewman authored 15 years ago

665) # Here's where we open a file and print some wml include goodness
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

666) # This is storted from last known recent update to unknown update times
667) foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
668) 
Jacob Appelbaum ensure the date is either p...

Jacob Appelbaum authored 16 years ago

669)      my $time;
670)      if( "$m{$server}{'updateDate'}" ne "Unknown") {
Andrew Lewman fix code spacing to avoid t...

Andrew Lewman authored 15 years ago

671) 	  if( "$m{$server}{'updateDate'}" eq "$tortime" ) {
672) 	    $time = "Up to date";
673) 	  } else { $time = "Out of date"; }
Andrew Lewman revert the last change to u...

Andrew Lewman authored 15 years ago

674)      } else { $time = "Unknown"; }
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 16 years ago

675) print OUT <<"END";
676)      \n<tr>\n
677)          <td>$m{$server}{'isoCC'}</td>\n
678)          <td>$m{$server}{'orgName'}</td>\n
679)          <td>$time</td>\n
680) END
681) 
682)      my %prettyNames = (
683)                         httpWebsiteMirror => "http",
684)                         httpsWebsiteMirror => "https",
685)                         ftpWebsiteMirror => "ftp",
686)                         rsyncWebsiteMirror => "rsync",
687)                         httpDistMirror => "http",
688)                         httpsDistMirror => "https",
689)                         rsyncDistMirrors => "rsync", );
690) 
691)      foreach my $precious ( sort keys %prettyNames )
Jacob Appelbaum Add a perl script that auto...

Jacob Appelbaum authored 16 years ago

692)      {
693)         if ($m{$server}{"$precious"}) {
694)             print OUT "    <td><a href=\"" . $m{$server}{$precious} . "\">" .
Jacob Appelbaum Removed dupe mirror entry,...

Jacob Appelbaum authored 16 years ago

695)                       "$prettyNames{$precious}</a></td>\n";