e351883ab3d9d77bde8dac0add3074f8ff5209b3
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) #!/usr/bin/env wml
Runa A. Sandvik list available languages /...

Runa A. Sandvik authored 13 years ago

2) #use "functions.wmi"
3) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

4)     <div id="footer">
Sebastian Hahn de-xhtmlify more stuff

Sebastian Hahn authored 13 years ago

5)     	<div class="onion"><img src="$(IMGROOT)/onion.jpg" alt="Tor"></div>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

6)       <div class="about">
Andrew Lewman update copyright and tradem...

Andrew Lewman authored 10 years ago

7)     <p>Trademark, copyright notices, and rules for use by third parties can be found
8)     <a href="<page docs/trademark-faq>">in our FAQ</a>.</p>
Andrew Lewman move the svn-based info int...

Andrew Lewman authored 13 years ago

9) <!--
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

10)         # This will grab the date from svn info/git
11)         # REQUIRES svn or git for this to work
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

12)         <:{
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

13)           my $svninfo = `svn info 2>/dev/null`;
14)           my $modifydate;
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

15)           if ($svninfo =~ m/Last Changed Date: (\d{4}-\d{2}-\d{2})\s(\d{2}:\d{2}:\d{2})\s(.*)\s\((.*)\)/) {
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

16)             $modifydate = "$4 $2 $3";
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

17)             # remove commas from date
18)             $modifydate =~ s/,//;
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

19)           } else {
20)             $modifydate = `git log --format=%cd -n 1`
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

21)           }
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

22)           print 'Last modified: '.$modifydate."\n";
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

23)         }:>
24)         <:{
25)           #my $compiledate = `date`;
26)           my $compiledate = `date +"%a %b %d %Y %k:%M:%S %z"`;
27)           print 'Last compiled: '.$compiledate."\n";
28)         }:>
Andrew Lewman move the svn-based info int...

Andrew Lewman authored 13 years ago

29) -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

30)       </div>
31)       <!-- END ABOUT -->
32)       <div class="col first">
33)       	<h4>About Tor</h4>
34)         <ul>
Andrew Lewman fix up the info blurb, upda...

Andrew Lewman authored 13 years ago

35)           <li><a href="<page about/overview>">What Tor Does</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

36)           <li><a href="<page about/torusers>">Users of Tor</a></li>
37)           <li><a href="<page about/corepeople>">Core Tor People</a></li>
38)           <li><a href="<page about/sponsors>">Sponsors</a></li>
39)           <li><a href="<page about/contact>">Contact Us</a></li>
40)         </ul>
41)       </div>
42)       <!-- END COL -->
43)       <div class="col">
44)       	<h4>Get Involved</h4>
45)         <ul>
46)           <li><a href="<page donate/donate>">Donate</a></li>
Andrew Lewman update phone number across...

Andrew Lewman authored 12 years ago

47)           <li><a href="<page docs/documentation>#MailingLists">Mailing Lists</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

48)           <li><a href="<page docs/hidden-services>">Hidden Services</a></li>
49)           <li><a href="<page getinvolved/translation>">Translations</a></li>
Andrew Lewman comment out careers in the...

Andrew Lewman authored 12 years ago

50) #          <li><a href="<page getinvolved/open-positions>">Careers</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

51)         </ul>
52)       </div>
53)       <!-- END COL -->
54)       <div class="col">
55)       	<h4>Documentation</h4>
56)         <ul>
57)           <li><a href="<page docs/tor-manual>">Manuals</a></li>
58)           <li><a href="<page docs/documentation>">Installation Guides</a></li>
Andrew Lewman remove the glossary. fix up...

Andrew Lewman authored 13 years ago

59)           <li><a href="<wiki>">Tor Wiki</a></li>
Andrew Lewman link the static faq page in...

Andrew Lewman authored 13 years ago

60)           <li><a href="<page docs/faq>">General Tor FAQ</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

61)         </ul>
62)       </div>
Andrew Lewman add the internet defense le...

Andrew Lewman authored 11 years ago

63)         <div class="col">
Nima Fatemi update internetdefenseleagu...

Nima Fatemi authored 9 years ago

64)         <a href="https://internetdefenseleague.org/"><img src="$(IMGROOT)/InternetDefenseLeague-footer-badge.png" alt="Internet Defense League"></a>
Andrew Lewman add the internet defense le...

Andrew Lewman authored 11 years ago

65)         </div>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

66)       <!-- END COL -->
Runa A. Sandvik list available languages /...

Runa A. Sandvik authored 13 years ago

67) 
Andrew Lewman remove the newsletter cruft...

Andrew Lewman authored 12 years ago

68) #	<!-- List available languages -->
69) #	<div class="col wider">
70) #	<h4>Languages</h4>
71) #	<: if (has_translations()) {  :>
72) #		<p>
73) #		This page is also available in the following languages:
74) #		<: print list_translations() :>.<br />
75) #		How to set <a href="http://www.debian.org/intro/cn#howtoset">the default document language</a>.
76) #		</p>
77) #	<: }; :>
78) #	</div>
Runa A. Sandvik list available languages /...

Runa A. Sandvik authored 13 years ago

79) 
Andrew Lewman update copyright and tradem...

Andrew Lewman authored 10 years ago

80) # LANGUAGE SWITCH CGI
Andrew Lewman comment out careers in the...

Andrew Lewman authored 12 years ago

81) #      <div class="col wider">
82) #      	<h4>Languages</h4>
83) #        # this is a cgi trampoline to bounce us to the right page
84) #        # alternately, if the client supports javascript we can redirect that way
85) #        # noscript does not block onclick but clients may have disabled javascript completely
86) #        #
87) #        # for this to work we need to know the relative path from the document root
Andrew Lewman update copyright and tradem...

Andrew Lewman authored 10 years ago

88) #        # to the current directory that wml is in.
Andrew Lewman comment out careers in the...

Andrew Lewman authored 12 years ago

89) #        <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi">
90) #          <select name="Language" id="lang">
91) #          <:{
92) #            #import "perl-globals.wmi";
93) #            use Cwd;
94) #            use Cwd 'abs_path';
95) #            use File::Spec;
96) #            my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
97) #            my $LANGUAGES;
98) #            my $page = $WML_SRC_FILENAME;
99) #            opendir(DIR, getcwd()) or die $!;
100) #            # take a look and see what language support we have
101) #            while (my $file = readdir(DIR)) {
102) #                if (-d $file) {
103) #                    if (-e "$file/$page") {
104) #                        my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file;
105) #                        my $url2js = $WML_SRC_BASENAME.'.html.'.$file;
106) #                        print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
107) #                    }
108) #                }
109) #            }
110) #            closedir(DIR);
111) #          }:>
112) #          </select>
113) #          <input class="go" type="submit" name="submit" value="Go">
114) #        </form>
115) #        <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p>
116) #      </div>
117) #