source: trunk/website/download.php @ 1901

Revision 1901, 7.4 KB checked in by lowjoel, 5 years ago (diff)

Updated copyright year to 2010.

Line 
1<?php
2require('scripts/downloads.php');
3
4if (!empty($_GET['id']))
5{
6    try
7    {
8        $download = Build::GetBuildFromID(intval($_GET['id']));
9        if (empty($download))
10            $download = new Download(intval($_GET['id']));
11       
12        //Check for supersedence
13        if ($download->Superseded)
14        {
15            header('location: ' . $_SERVER['PHP_SELF'] . '?error=' . urlencode('The requested download has been superseded with a newer version.'));
16            exit;
17        }
18       
19        $download->InitiateDownload();
20    }
21    catch (Exception $e)
22    {
23        header('location: ' . $_SERVER['PHP_SELF'] . '?error=' . urlencode($e->getMessage()));
24    }
25
26    exit;
27}
28?>
29<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
30    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
31<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/Eraser.dwt" codeOutsideHTMLIsLocked="false" -->
32<head>
33<!-- InstanceBeginEditable name="Title" -->
34<title>Eraser :: Downloads</title>
35<!-- InstanceEndEditable -->
36<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
37<link href="style.css" rel="stylesheet" type="text/css" />
38<script type="text/javascript" src="scripts.js"></script>
39<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
40<!-- InstanceParam name="ArticlePoster" type="boolean" value="false" -->
41</head>
42
43<body onload="MM_preloadImages('images/btn_home_hov.gif', 'images/btn_download_hov.gif', 'images/btn_forum_hov.gif', 'images/btn_trac_hov.gif')">
44<div id="wrap">
45    <div id="banner">
46        <a href="index.php"><img src="images/header.jpg" class="banner_img" alt="Eraser v6" /></a>
47    </div>
48    <div id="content">
49        <div class="left">
50            <!-- InstanceBeginRepeat name="LeftContent" --><!-- InstanceBeginRepeatEntry -->
51            <div class="article">
52                <div class="article_head">
53                    <div class="title">
54                        <h2><!-- InstanceBeginEditable name="LeftContentEditTitle" --><a href="index.php">Eraser</a> Downloads<!-- InstanceEndEditable --></h2>
55                       
56                    </div>
57                </div>
58
59                <!-- InstanceBeginEditable name="LeftContentEdit" -->
60                <?php if (!empty($_GET['error'])) printf('<p class="error">%s</p>', $_GET['error']); ?>
61                <p>Thank for you having interest in Eraser. Eraser is available in a few flavours, the stable, the beta as well as the nightly builds.</p>
62                <p>Stable builds of Eraser are builds in which few, if any, bugs remain in the code and is suitable for use in all environments. If in doubt, choose the Stable version. The beta and nightly builds cater to a slightly different audience. Beta and nightly builds are built on the previous stable version released, but may contain new features or bug fixes to bugs discovered in the stable builds. Use the Beta and Nightly builds at your own risk<sup><a href="#footnote1" name="footnote1Src">1</a></sup>. </p>
63                <p>If you do discover bugs in the nightly builds, report them on <a href="trac/newticket">Trac</a>, citing the build number that you have used (the number after 'r', it can also be found in the About dialog for Eraser 6, it is <em>d</em> value in the version number <em>a.b.c.d</em>).</p>
64                <table>
65                    <tr>
66                        <td colspan="4"><h3>Stable Builds</h3></td>
67                    </tr>
68                    <tr>
69                        <th>Build Name</th>
70                        <th>Version</th>
71                        <th>Release Date</th>
72                        <th>&nbsp;</th>
73                    </tr>
74                    <tr>
75                        <td><a href="http://sourceforge.net/projects/eraser/files/Eraser 6/6.0.7/Eraser 6.0.7.1893.exe/download">Eraser 6.0.7.1893</a></td>
76                        <td>6.0.7.1893</td>
77                        <td>14/4/2010 8:00am</td>
78                        <td>&nbsp;</td>
79                    </tr>
80                    <tr>
81                        <td colspan="4"><h3>Beta Builds</h3></td>
82                    </tr>
83                    <tr>
84                        <th>Build Name</th>
85                        <th>Version</th>
86                        <th>Release Date</th>
87                        <th>Downloads</th>
88                    </tr>
89                    <tr>
90                        <td colspan="4">No beta builds available.</td>
91                    </tr>
92                    <tr>
93                        <td colspan="4">
94                            <div style="position: relative; width: 100%">
95                                <div style="position: absolute; text-align: right; width: 100%; height: 100%; padding: 4px 2px 4px 0">
96                                    <a href="trac/timeline?changeset=on">(view changelog)</a>
97                                </div>
98                                <h3>Nightly Builds</h3>
99                            </div>
100                        </td>
101                    </tr>
102                    <tr>
103                        <th>Build Name</th>
104                        <th>Revision</th>
105                        <th>Build Date</th>
106                        <th>Downloads</th>
107                    </tr>
108<?php
109                    $builds = Build::Get();
110                    foreach ($builds as $buildName => $build)
111                    {
112?>
113                    <tr>
114                        <td colspan="4"><h4><?php echo $buildName; ?></h4></td>
115                    </tr>
116<?php
117                        foreach ($build as $revision)
118                        {
119                            if ($revision->Superseded)
120                                continue;
121?>
122                    <tr>
123                        <td><a href="<?php echo $_SERVER['PHP_SELF'] . '?id=' . $revision->ID; ?>"><?php echo $revision->Name; ?></a></td>
124                        <td>r<?php echo $revision->Revision; ?></td>
125                        <td><?php echo date('j/n/y g:ia', $revision->Released); ?></td>
126                        <td><?php echo $revision->Downloads; ?></td>
127                    </tr>
128<?php
129                        }
130                    }
131?>
132                </table>
133                <div style="height: 150px">&nbsp;</div><hr />
134                <p><a href="#footnote1Src" name="footnote1"></a>Disclaimer: The security of the erasures has not been verified by internal or external entities. The code may be still of <em>beta quality</em> and may not remove all traces of files. If you have security concerns, do use the stable versions.</p>
135                <!-- InstanceEndEditable -->
136            </div>
137            <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
138        </div>
139        <div class="right">
140            <div class="right_nav">
141                <div class="right_nav_bg">
142                    <a href="index.php"><img src="images/btn_home.gif" id="nav1" alt="Home" onmouseover="MM_swapImage('nav1','','images/btn_home_hov.gif',1)" onmouseout="MM_swapImgRestore()" /></a><a href="download.php"><img src="images/btn_download.gif" id="nav2" alt="Download" onmouseover="MM_swapImage('nav2', '', 'images/btn_download_hov.gif', 1)" onmouseout="MM_swapImgRestore()" /></a><a href="http://bbs.heidi.ie/viewforum.php?f=30" target="_blank"><img src="images/btn_forum.gif" id="nav3" alt="Forum" onmouseover="MM_swapImage('nav3', '', 'images/btn_forum_hov.gif', 1)" onmouseout="MM_swapImgRestore()" /></a><a href="trac/"><img src="images/btn_trac.gif" id="nav4" alt="Trac" onmouseover="MM_swapImage('nav4', '', 'images/btn_trac_hov.gif', 1)" onmouseout="MM_swapImgRestore()" /></a>
143                </div>
144            </div>
145           
146            <div class="right_news">
147                <h3>Latest News</h3>
148                <div class="right_news_bg">
149                    <h2>Eraser 6.0.7 released!</h2>
150                    <div class="posted">Posted by: Joel, 14<sup>th</sup> April 2010, 8:00 am +800GMT</div>
151                    <p>Eraser 6.0.7, next in the stable release line of 6.0.x has been released today. 6.0.7 addresses a significant number of stability and usability issues which were found in the initial stable 6.0.6. <a href="announcements/20100414.html">See the full announcement</a>.</p>
152                </div>
153            </div>
154
155            <!-- InstanceBeginRepeat name="RightContent" --><!-- InstanceEndRepeat -->
156        </div>
157    </div>
158    <div id="footer">
159        <div class="footer">
160            <div class="footer_l">
161                <p>2008-2010 &copy; Eraser</p>
162            </div>
163            <div class="footer_r">
164                <p>
165                    Original Design by <a href="http://eatlon.com" target="_blank">Olle Axelsson</a><br />
166                    Modified for Eraser by <a href="http://lemarquis.deviantart.com" target="_blank">Dennis van Lith</a><br />
167                    HTML edits by <a href="http://joelsplace.sg" target="_blank">Joel Low</a>
168                </p>
169            </div>
170        </div>
171    </div>
172</div>
173<div id="ffscrollbarfix"></div>
174</body>
175<!-- InstanceEnd --></html>
Note: See TracBrowser for help on using the repository browser.