Skip to content

Commit 2a08d82

Browse files
author
jantje
committed
updated remind.php
added a globals.txt that contain the stable minor and major version number
1 parent cc3c47f commit 2a08d82

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

website/WebContent/globals.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
$STABLE_VERSION_MAJOR=4;
3+
$STABLE_VERSION_MINOR=2;
4+
?>

website/WebContent/remind.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
include 'globals.txt';
23
$default = 1;
34
if (isset ( $_GET ["systemhash"] )) {
45
$KEY = $_GET ["systemhash"];
@@ -30,7 +31,7 @@
3031
$VERSION_MINOR = $_GET ["minorVersion"];
3132
$VERSION_MICRO = $_GET ["microVersion"];
3233
$VERSION_QUAL = $_GET ["qualifierVersion"];
33-
$ADVICE_UPGRADE =(($VERSION_MAJOR < 3) && ($VERSION_MAJOR >0)) || (($VERSION_MAJOR == 3) && ($VERSION_MINOR < 1) );
34+
$ADVICE_UPGRADE =($VERSION_MAJOR < $STABLE_VERSION_MAJOR) || (($VERSION_MAJOR == $STABLE_VERSION_MAJOR) && ($VERSION_MINOR<$STABLE_VERSION_MINOR ) );
3435
$ADVERTISE_HIDE_THIS_PAGE =($VERSION_MAJOR > 3);
3536
?>
3637

@@ -60,7 +61,7 @@
6061

6162

6263
<?php if($ADVICE_UPGRADE){
63-
echo "<h1>You are running Sloeber V".$VERSION_MAJOR.".".$VERSION_MINOR." and the Latest stable version is V3.1!</h1>" ?>
64+
echo "<h1>You are running Sloeber V".$VERSION_MAJOR.".".$VERSION_MINOR." and the Latest stable version is V".$STABLE_VERSION_MAJOR.".".$STABLE_VERSION_MINOR."!</h1>" ?>
6465
Please consider upgrading to the latest Stable.<br>
6566
Click <a href="http://eclipse.baeyens.it/how_to.shtml#/n">here to see how to upgrade.</a>
6667
<?php } ?>

0 commit comments

Comments
 (0)