From 140f64e6d82e6fd3a22cbb394e2300fda8f83223 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 25 Jul 2006 23:44:20 +0000 Subject: [PATCH] r952: Added the version checker --- admin/index.php | 17 +++++++++++++++++ docs/changes.txt | 1 + 2 files changed, 18 insertions(+) diff --git a/admin/index.php b/admin/index.php index 9bb6d83..b0eb25d 100755 --- a/admin/index.php +++ b/admin/index.php @@ -27,6 +27,23 @@ $navigator->set_focus('link', 'options-pages-home', 'options-pages'); $admin->page_start('Home'); +if (!defined('NO_VERSION_CHEK') OR constant('NO_VERSION_CHECK') != true) +{ + $check = @file_get_contents('http://www.bluestatic.org/versioncheck.php?prod=bugdar&ver=' . $bugsys->options['trackerversion']); + if (strpos($check, '') !== false) + { + $check = $bugsys->xml->parse($check); + if (isset($check['version-check']['update'])) + { + $admin->page_code('
Update Avaliable:
Your installation of Bugdar is out-of-date. You are running version ' . $bugsys->options['trackerversion'] . ' and the latest version is ' . $check['version-check']['update']['value'] . '. You can download the update at Blue Static\'s website. You are strongly encouraged to apply all updates to fix bugs and any security issues (if present).
'); + } + else if (isset($check['version-check']['up-to-date'])) + { + $admin->page_code('
Up-to-Date:
Your installation of Bugdar is up-to-date. You are running version ' . $bugsys->options['trackerversion'] . '.
'); + } + } +} + $admin->page_code($lang->string('Hi and welcome to the Bugdar administration screen!')); $admin->page_end(); diff --git a/docs/changes.txt b/docs/changes.txt index 2d1fc4a..d3b123d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -29,6 +29,7 @@ - Data (bugs and comments) can now be removed (http://bugs.iris-studios.com/showreport.php?bugid=16) - Specific statuses can be hidden by the administrator and users individually (http://bugs.iris-studios.com/showreport.php?bugid=9) - Column sorting of bug lists (http://bugs.iris-studios.com/showreport.php?bugid=14) +- Added a version checker in the admin section 1.0.2 ================== -- 2.43.5