]>
src.bluestatic.org Git - bugdar.git/blob - admin/index.php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] 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 [#]gpl[#] 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 NavLinks
:: optionsPages ();
25 $navigator- > set_focus ( 'tab' , 'options' , null );
26 $navigator- > set_focus ( 'link' , 'options-pages-home' , 'options-pages' );
28 $admin- > page_start ( 'Home' );
30 if (! defined ( 'NO_VERSION_CHEK' ) OR constant ( 'NO_VERSION_CHECK' ) != true )
32 $check = @ file_get_contents ( 'http://www.bluestatic.org/versioncheck.php?prod=bugdar&ver=' . $bugsys- > options
[ 'trackerversion' ]);
33 if ( strpos ( $check , '<version-check>' ) !== false )
35 $check = $bugsys- > xml
-> parse ( $check );
36 if ( isset ( $check [ 'version-check' ][ 'update' ]))
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>' );
40 else if ( isset ( $check [ 'version-check' ][ 'up-to-date' ]))
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>' );
47 $admin- > page_code ( $lang- > string ( 'Hi and welcome to the Bugdar administration screen!' ));
51 /*=====================================================================*\
52 || ###################################################################
55 || ###################################################################
56 \*=====================================================================*/