From dfd8df5e10f2b5c64748ef9c68bf816dbf2dcf69 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 5 May 2011 14:59:07 +0000 Subject: [PATCH] add versioncheck :> git-svn-id: http://www.observium.org/svn/observer/trunk@2253 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/versioncheck.inc.php | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 includes/versioncheck.inc.php diff --git a/includes/versioncheck.inc.php b/includes/versioncheck.inc.php new file mode 100644 index 0000000000..5a9ea8393e --- /dev/null +++ b/includes/versioncheck.inc.php @@ -0,0 +1,62 @@ + rrd/version.txt "); + + } else { + + if($cur != $data) { + echo("Current Version : $cur_omnipotence.$cur_year.$cur_month.$cur_revision \n"); + + if($omnipotence > $cur_omnipotence) { + echo("New version : $omnipotence.$year.$month.$revision\n"); + } elseif ($year > $cur_year) { + echo("New version : $omnipotence.$year.$month.$revision\n"); + } elseif ($month > $cur_month) { + echo("New version : $omnipotence.$year.$month.$revision\n"); + } elseif ($revision > $cur_revision) { + echo("New release : $omnipotence.$year.$month.$revision\n"); + } + } + } + } + fclose($dataHandle); +} + +?>