2 /*=====================================================================*\
3 || ###################################################################
5 || # Copyright (c)2002-2007 Blue Static
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version 2 of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
22 require_once('./global.php');
24 // ###################################################################
26 if (!isset($bugsys->in
['next']))
28 $db->showerrors
= false;
30 $version = $db->query_first("SELECT * FROM " . TABLE_PREFIX
. "setting WHERE varname = 'trackerversion'");
31 $version = $version['value'];
33 if ($version == '[#]version[#]')
35 header('Location: upgrade16.php');
41 die('You have done something to your database and this script cannot determine Bugdar\'s version... or you have no upgrade to perform...');
44 if ($bugsys->versions
["$version"] == -1)
48 echo "<h1
>Bugdar Upgrade System
</h1
>\n\n";
50 echo "<p
>Your Bugdar installation is up
-to
-date
!</p
>\n\n";
56 header("Location
: upgrade
.php
?next
=$version");
59 $db->showerrors
= true;
62 // ###################################################################
66 if ($bugsys->versions
[ $bugsys->in
['next'] ] == -1)
68 die('Bugdar is up-to-date already');
71 header("Location: upgrade" . $bugsys->versions
[ $bugsys->in
['next'] ] . ".php");