OSDN Git Service

Fix Email patch body show subject problem
[tortoisegit/TortoiseGitJp.git] / contrib / drupal-modules / module / download.php
1 <?php\r
2 //\r
3 // Drupal download page for TortoiseSVN\r
4 //\r
5 // Copyright (C) 2004-2008 the TortoiseSVN team\r
6 // This file is distributed under the same license as TortoiseSVN\r
7 //\r
8 // $Author: steveking $\r
9 // $Date: 2008-07-13 15:37:31 +0800 (Sun, 13 Jul 2008) $\r
10 // $Rev: 13473 $\r
11 //\r
12 // Author: Lübbe Onken 2004-2008\r
13 //         Stefan Küng 2004-2008\r
14 //\r
15 \r
16 include("/var/www/vhosts/default/htdocs/modules/tortoisesvn/trans_countries.inc");\r
17 include("/var/www/vhosts/default/htdocs/modules/tortoisesvn/tortoisevars.inc");\r
18 \r
19 $w['w32']=$tsvn_var['release'].".".$tsvn_var['build']."-win32"; \r
20 $w['w32wrong']=$tsvn_var['release'].".".$tsvn_var['build'].""; \r
21 $w['x64']=$tsvn_var['release'].".".$tsvn_var['build_x64']."-x64"; \r
22 \r
23 if (!function_exists('get_changelog')) {\r
24 function get_changelog($v)\r
25 {\r
26 $t_ln="http://sourceforge.net/project/shownotes.php?release_id=".$v['sf_release_id'];\r
27 return "<a href=\"$t_ln\">changelog</a>";\r
28 }\r
29 }\r
30 \r
31 if (!function_exists('get_installer')) {\r
32 function get_installer($v, $w)\r
33 {\r
34 $t_ln="TortoiseSVN-".$w."-svn-".$v['svnver'].".msi";\r
35 return "<a href=\"".$v['url1'].$t_ln.$v['url2']."\">$t_ln</a>" ;\r
36 }\r
37 }\r
38 \r
39 if (!function_exists('get_checksum')) {\r
40 function get_checksum($v, $w)\r
41 {\r
42 $t_ln="TortoiseSVN-".$w."-svn-".$v['svnver'].".msi.asc";\r
43 return "<a href=\"http://tortoisesvn.net/files/".$t_ln."\">$t_ln</a>";\r
44 }\r
45 }\r
46 \r
47 if (!function_exists('get_langpack')) {\r
48 function get_langpack($l, $n, $v, $w)\r
49 {\r
50 $t_ln="LanguagePack_".$w."-".$l.".msi";\r
51 return "<a href=\"".$v['url1'].$t_ln.$v['url2']."\">$n</a>";\r
52 }\r
53 }\r
54 \r
55 if (!function_exists('print_langpack')) {\r
56 function print_langpack($i, $postat, $v, $w)\r
57 {\r
58   $infobits=$postat[1];\r
59   $lang_cc=$postat[2];\r
60   $lang_name=$postat[3];\r
61   $flagimg=$v['flagpath'].$lang_cc.".png";\r
62   $flagtag="<img src=\"$flagimg\" height=\"12\" width=\"18\" alt=\"$lang_name flag\"/>";\r
63   \r
64   $dlfile32=get_langpack($lang_cc, 'Setup', $v, $w['w32']);\r
65   $dlfile64=get_langpack($lang_cc, 'Setup', $v, $w['x64']);\r
66   \r
67   if ( ($infobits & "010") <> "0") {\r
68    $t_ts="TortoiseSVN-".$v['release'].'-'.$lang_cc.".pdf";\r
69    $dlmanTSVN="<a href=\"".$v['url1'].$t_ts.$v['url2']."\">TSVN</a>";\r
70   } else {\r
71    $dlmanTSVN="";\r
72   }\r
73 \r
74   if ( ($infobits & "100") <> "0") {\r
75    $t_tm="TortoiseMerge-".$v['release'].'-'.$lang_cc.".pdf";\r
76    $dlmanTMerge="<a href=\"".$v['url1'].$t_tm.$v['url2']."\">TMerge</a>";\r
77   } else {\r
78    $dlmanTMerge="";\r
79   }\r
80 \r
81   echo "<tr class=\"stat_ok\">";\r
82   echo "<td>$i</td>";\r
83   echo "<td>$flagtag&nbsp;$lang_name</td>";\r
84   echo "<td>$dlfile32</td>";\r
85   echo "<td>$dlfile64</td>";\r
86   echo "<td>$dlmanTSVN</td>";\r
87   echo "<td>$dlmanTMerge</td>";\r
88   echo "</tr>";\r
89 }\r
90 }\r
91 \r
92 //------------------------------------\r
93 //\r
94 // The program starts here\r
95 //\r
96 \r
97 ?>\r
98 <h1>The current version is <?php echo $tsvn_var['release'] ?>.</h1>\r
99 <p>\r
100 For detailed info on what's new, read the <?php echo get_changelog($v); ?> and the <a href="http://tortoisesvn.tigris.org/tsvn_1.5_releasenotes.html">release notes</a>.\r
101 </p>\r
102 <p>\r
103 This page points to installers for 32 bit and 64 bit operating systems. Please make sure that you choose the right installer for your PC. Otherwise the setup will fail.\r
104 </p>\r
105 <p>\r
106 Note for x64 users: you can install both the 32 and 64-bit version side by side. This will enable the TortoiseSVN features also for 32-bit applications.\r
107 </p>\r
108 \r
109 <div class="table">\r
110 <table>\r
111 <tr>\r
112 <td>&nbsp;</td>\r
113 <th colspan="2">Download Application</th>\r
114 </tr>\r
115 <tr>\r
116 <th>32 Bit</th>\r
117 <td><?php echo get_installer($tsvn_var,$w['w32']) ?></td>\r
118 <td>Installer</td>\r
119 </tr>\r
120 <tr>\r
121 <td>&nbsp;</td>\r
122 <td><?php echo get_checksum($tsvn_var,$w['w32']) ?></td>\r
123 <td><a href="http://www.gnupg.org/">GPG</a> signature</td>\r
124 </tr>\r
125 <tr>\r
126 <th>64 Bit</th>\r
127 <td><?php echo get_installer($tsvn_var,$w['x64']) ?></td>\r
128 <td>Installer</td>\r
129 </tr>\r
130 <tr>\r
131 <td>&nbsp;</td>\r
132 <td><?php echo get_checksum($tsvn_var,$w['x64']) ?></td>\r
133 <td><a href="http://www.gnupg.org/">GPG</a> signature</td>\r
134 </tr>\r
135 </table>\r
136 </div>\r
137 The public GPG key can be found <a href="http://tortoisesvn.net/files/tortoisesvn%20(0x459E2D3E)%20pub.asc">here</a>.\r
138 <br />\r
139 <script type="text/javascript"><!--\r
140 google_ad_client = "pub-0430507460695576";\r
141 /* 300x250, tsvn.net inPage */\r
142 google_ad_slot = "5167477883";\r
143 google_ad_width = 300;\r
144 google_ad_height = 250;\r
145 //-->\r
146 </script>\r
147 <script type="text/javascript"\r
148 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\r
149 </script>\r
150 <?php\r
151 \r
152 // Convert Data into a list of columns\r
153 foreach ($countries as $key => $row) {\r
154    $potfile[$key] = $row[0];\r
155    $country[$key] = $row[3];\r
156 }\r
157 \r
158 // Add $countries as the last parameter, to sort by the common key\r
159 array_multisort($potfile, $country, $countries);\r
160 \r
161 ?>\r
162 \r
163 <h2>Language packs</h2>\r
164 <div class="table">\r
165 <table class="translations">\r
166 <tr>\r
167 <th class="lang">&nbsp;</th>\r
168 <th class="lang">Country</th>\r
169 <th class="lang">32 Bit</th>\r
170 <th class="lang">64 Bit</th>\r
171 <th class="lang" colspan="2">Separate manual (PDF)</th>\r
172 </tr>\r
173 \r
174 <?php\r
175   $i=0;\r
176   foreach ($countries as $key => $postat)\r
177     if ($postat[0] == "1" ) {\r
178       $i++;\r
179       print_langpack($i, $postat, $tsvn_var, $w);\r
180     }\r
181 ?>\r
182 \r
183 </table>\r
184 </div>\r
185 \r
186 <h2>Tools</h2>\r
187 <p>We also provide some tools you already get together with TortoiseSVN as standalone applications for those which don't use TortoiseSVN as their Subversion client.</p>\r
188 <p>Our diff/merge tools TortoiseMerge (for text file diffs and merges), TortoiseIDiff (for diffing image files) are zipped into one package, and SubWCRev is also available.</p>\r
189 <p>You can download these tools from the <a href="https://sourceforge.net/project/showfiles.php?group_id=138498&package_id=281312">SourceForge download page</a>\r
190 <p>Note: <em>DO NOT</em> install these tools if you already have TortoiseSVN installed - you already <em>have</em> them.</p>\r
191 \r
192 \r
193 \r
194 <h1>Forthcoming Releases</h1>\r
195 <p>To find out what is happening with the project and when you can expect the next release, take a look at our <a href="/status">project status</a> page.</p>\r
196 \r
197 <h1>Release Candidates</h1>\r
198 <p>We maintain ongoing <a href="http://sourceforge.net/project/showfiles.php?group_id=138498">Release Candidates</a>\r
199 <!--\r
200 <a href="http://nightlybuilds.tortoisesvn.net/1.4.x/">Release Candidates</a>\r
201 -->\r
202 as well. These contain the latest official release plus latest bugfixes. They are not built nightly, but on demand from the current release branch. If you find that a certain bug has been fixed and you do not want to wait until the next release, install one of these. You would also help us tremendously by installing and testing release candidates.\r
203 Please read <a href="http://nightlybuilds.tortoisesvn.net/1.4.x/Readme.txt">Readme.txt</a> first.</p>\r
204 \r
205 <h1>Nightly Builds</h1>\r
206 <p><a href="http://nightlybuilds.tortoisesvn.net/latest/">Nightly Builds</a> are available too. They are built from the current development head and are for testing only. Please read <a href="http://nightlybuilds.tortoisesvn.net/latest/Readme.txt">Readme.txt</a> first.</p>\r
207 \r
208 <h1>Older Releases</h1>\r
209 <p>Older releases are available from the <a href="http://sourceforge.net/project/showfiles.php?group_id=<?php print $tsvn_var['sf_project']; ?>">Sourceforge files</a> section.</p>\r
210 \r
211 <h1>Sourcecode</h1>\r
212 <p>TortoiseSVN is under the GPL license. That means you can get the whole sourcecode and build the program yourself.\r
213 <br />\r
214 The sourcecode is hosted on <a href="http://www.tigris.org">tigris.org</a> in our own Subversion repository. You can browse the sourcecode with your favorite webbrowser directly on the <a href="http://tortoisesvn.tigris.org/svn/tortoisesvn/">repository</a>. Use <em>guest</em> as the username and an empty password to log in.\r
215 <br />\r
216 If you have TortoiseSVN installed, you can check out the whole sourcecode by clicking on the tortoise icon below:\r
217 <br />\r
218 <a href="tsvn:http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk"><img src="/files/TortoiseCheckout.png" alt="Tortoise Icon"/></a></p>\r
219 \r
220 <script type="text/javascript"><!--\r
221 google_ad_client = "pub-0430507460695576";\r
222 /* 300x250, tsvn.net inPage */\r
223 google_ad_slot = "5167477883";\r
224 google_ad_width = 300;\r
225 google_ad_height = 250;\r
226 //-->\r
227 </script>\r
228 <script type="text/javascript"\r
229 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\r
230 </script>\r
231 <!--break-->\r