r972: Rebranding from Iris Studios to Blue Static
[bugdar.git] / admin / index.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
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 [#]gpl[#] of the License.
10 || #
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
14 || # more details.
15 || #
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 \*=====================================================================*/
21
22 require_once('./global.php');
23
24 NavLinks::optionsPages();
25 $navigator->set_focus('tab', 'options', null);
26 $navigator->set_focus('link', 'options-pages-home', 'options-pages');
27
28 $admin->page_start('Home');
29
30 if (!defined('NO_VERSION_CHEK') OR constant('NO_VERSION_CHECK') != true)
31 {
32 $check = @file_get_contents('http://www.bluestatic.org/versioncheck.php?prod=bugdar&ver=' . $bugsys->options['trackerversion']);
33 if (strpos($check, '<version-check>') !== false)
34 {
35 $check = $bugsys->xml->parse($check);
36 if (isset($check['version-check']['update']))
37 {
38 $admin->page_code('<div style="background-color: white; border-color: red; border-width: 2px; border-style: solid; color: red; padding: 4px"><div style="font-size: 18px; font-weight: bold">Update Avaliable:</div>Your installation of Bugdar is out-of-date. You are running version <strong>' . $bugsys->options['trackerversion'] . '</strong> and the latest version is <strong>' . $check['version-check']['update']['value'] . '</strong>. You can download the update at <a href="http://www.bluestatic.org">Blue Static\'s website</a>. You are strongly encouraged to apply all updates to fix bugs and any security issues (if present).</div>');
39 }
40 else if (isset($check['version-check']['up-to-date']))
41 {
42 $admin->page_code('<div style="background-color: white; border-color: green; border-width: 2px; border-style: solid; color: green; padding: 4px"><div style="font-size: 18px; font-weight: bold">Up-to-Date:</div>Your installation of Bugdar is up-to-date. You are running version <strong>' . $bugsys->options['trackerversion'] . '</strong>.</div>');
43 }
44 }
45 }
46
47 $admin->page_code($lang->string('Hi and welcome to the Bugdar administration screen!'));
48
49 $admin->page_end();
50
51 /*=====================================================================*\
52 || ###################################################################
53 || # $HeadURL$
54 || # $Id$
55 || ###################################################################
56 \*=====================================================================*/
57 ?>