source: trunk/website/download.php @ 2960

Revision 2649, 7.3 KB checked in by lowjoel, 2 years ago (diff)

Remove the 6.0.9 build from our download page.

Line 
1<?php
2require('scripts/Download.php');
3require('scripts/Build.php');
4require('scripts/BuildBranch.php');
5require('scripts/SourceForge.php');
6
7if (!empty($_GET['id']))
8{
9    try
10    {
11        $download = new Download(intval($_GET['id']));
12
13        //Check for supersedence
14        if (!$download->Superseded)
15        {
16            $download->InitiateDownload();
17            exit;
18        }
19
20        $error = 'The requested download has been superseded with a newer version.';
21    }
22    catch (Exception $e)
23    {
24        $error = $e->getMessage();
25    }
26}
27?>
28<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
29    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
30<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/Eraser.dwt" codeOutsideHTMLIsLocked="false" -->
31<head>
32<!-- InstanceBeginEditable name="Title" -->
33<title>Eraser :: Downloads</title>
34<!-- InstanceEndEditable -->
35<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
36<link href="style.css" rel="stylesheet" type="text/css" />
37<script type="text/javascript" src="scripts.js"></script>
38<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
39<!-- InstanceParam name="ArticlePoster" type="boolean" value="false" -->
40</head>
41
42<body onload="MM_preloadImages('images/btn_home_hov.gif', 'images/btn_download_hov.gif', 'images/btn_forum_hov.gif', 'images/btn_trac_hov.gif')">
43<div id="wrap">
44    <div id="banner">
45        <a href="index.php"><img src="images/header.jpg" class="banner_img" alt="Eraser v6" /></a>
46    </div>
47    <div id="content">
48        <div class="left">
49            <!-- InstanceBeginRepeat name="LeftContent" --><!-- InstanceBeginRepeatEntry -->
50            <div class="article">
51                <div class="article_head">
52                    <div class="title">
53                        <h2><!-- InstanceBeginEditable name="LeftContentEditTitle" --><a href="index.php">Eraser</a> Downloads<!-- InstanceEndEditable --></h2>
54                       
55                    </div>
56                </div>
57
58                <!-- InstanceBeginEditable name="LeftContentEdit" -->
59                <?php if (!empty($error)) printf('<p class="error">%s</p>', $error); ?>
60                <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>
61                <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>
62                <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>
63                <table>
64                    <tr>
65                        <td colspan="4"><h3>Stable Builds</h3></td>
66                    </tr>
67                    <tr>
68                        <th>Build Name</th>
69                        <th>Version</th>
70                        <th>Release Date</th>
71                        <th>Downloads</th>
72                    </tr>
73                    <tr>
74                        <td><a href="http://sourceforge.net/projects/eraser/files/Eraser%206/6.0.10/Eraser%206.0.10.2620.exe/download">Eraser 6.0.10.2620</a></td>
75                        <td>6.0.10.2620</td>
76                        <td>23/5/2012 10:30am</td>
77                        <td><?php echo SourceForge::GetDownloads('http://sourceforge.net/projects/eraser/files/Eraser%206/6.0.10/Eraser%206.0.10.2620.exe/download'); ?></td>
78                    </tr>
79                    <tr>
80                        <td colspan="4"><h3>Beta Builds</h3></td>
81                    </tr>
82                    <tr>
83                        <th>Build Name</th>
84                        <th>Version</th>
85                        <th>Release Date</th>
86                        <th>Downloads</th>
87                    </tr>
88                    <tr>
89                        <td colspan="4">No beta builds available.</td>
90                    </tr>
91                    <tr>
92                        <td colspan="4">
93                            <div style="position: relative; width: 100%">
94                                <div style="position: absolute; text-align: right; width: 100%; height: 100%; padding: 4px 2px 4px 0">
95                                    <a href="trac/timeline?changeset=on">(view changelog)</a>
96                                </div>
97                                <h3>Nightly Builds</h3>
98                            </div>
99                        </td>
100                    </tr>
101                    <tr>
102                        <th>Build Name</th>
103                        <th>Revision</th>
104                        <th>Build Date</th>
105                        <th>Downloads</th>
106                    </tr>
107<?php
108                    foreach (BuildBranch::Get() as $branch)
109                    {
110?>
111                    <tr>
112                        <td colspan="4"><h4><?php echo $branch->Title; ?></h4></td>
113                    </tr>
114<?php
115                        foreach (Build::GetActive($branch->ID) as $build)
116                        {
117?>
118                    <tr>
119                        <td><a href="<?php echo $_SERVER['PHP_SELF'] . '?id=' . $build->ID; ?>"><?php echo $build->Name; ?></a></td>
120                        <td>r<?php echo $build->Revision; ?></td>
121                        <td><?php echo $build->Released->format('j/n/y g:ia'); ?></td>
122                        <td><?php echo $build->Downloads; ?></td>
123                    </tr>
124<?php
125                        }
126                    }
127?>
128                </table>
129                <div style="height: 150px">&nbsp;</div><hr />
130                <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>
131                <!-- InstanceEndEditable -->
132            </div>
133            <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
134        </div>
135        <div class="right">
136            <div class="right_nav">
137                <div class="right_nav_bg">
138                    <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="/forum/viewforum.php?f=30"><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>
139                </div>
140            </div>
141           
142            <div class="right_news">
143                <h3>Latest News</h3>
144                <div class="right_news_bg">
145                    <h2>Eraser 6.0.10 released!</h2>
146                    <div class="posted">Posted by: Joel, 23<sup>rd</sup> May 2012, 10:30 am +800GMT</div>
147                    <p>Eraser 6.0.10 has been released today. This is a bugfix release which continues to build on the stability Eraser 6 series. All users are recommended to upgrade to this version. <a href="announcements/20120523.html">Read the full announcement.</a></p>
148                </div>
149            </div>
150
151            <!-- InstanceBeginRepeat name="RightContent" --><!-- InstanceEndRepeat -->
152        </div>
153    </div>
154    <div id="footer">
155        <div class="footer">
156            <div class="footer_l">
157                <p>2008-2012 &copy; Eraser</p>
158            </div>
159            <div class="footer_r">
160                <p>
161                    Original Design by <a href="http://eatlon.com" target="_blank">Olle Axelsson</a><br />
162                    Modified for Eraser by <a href="http://lemarquis.deviantart.com" target="_blank">Dennis van Lith</a><br />
163                    HTML edits by <a href="http://joelsplace.sg" target="_blank">Joel Low</a>
164                </p>
165            </div>
166        </div>
167    </div>
168</div>
169<div id="ffscrollbarfix"></div>
170</body>
171<!-- InstanceEnd --></html>
Note: See TracBrowser for help on using the repository browser.