|
1 | 1 | <?php
|
2 | 2 | require 'fragments/file-buttons.php';
|
3 |
| -$STABLE_MAJOR_VERSION = 3; |
4 |
| -$STABLE_MINOR_VERSION = 0; |
| 3 | +$STABLE_MAJOR_VERSION = "3"; |
| 4 | +$STABLE_MINOR_VERSION = "0"; |
5 | 5 | $OS = "unknown";
|
6 | 6 | $ARCH = "unknown";
|
7 | 7 | $MAJOR_VERSION = "unknown";
|
|
38 | 38 | <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
|
39 | 39 |
|
40 | 40 | <?php
|
41 |
| - |
42 | 41 | echo "<title>Should I upgrade from - $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION.$QUALIFIER_VERSION on $OS</title>";
|
43 |
| - if (($MAJOR_VERSION != $STABLE_MAJOR_VERSION) or ($MINOR_VERSION != $STABLE_MINOR_VERSION)) { |
44 |
| - echo "you are on the latest stable version. There is no need to upgrade.<br>"; |
45 |
| - } else { |
46 |
| - echo "Please consider upgrading to the latest stable.<br>"; |
47 |
| - if ($MAJOR_VERSION == "1") { |
48 |
| - echo "Are you really still running V1??? Why???<br>"; |
49 |
| - } elseif ($MAJOR_VERSION == "2") { |
50 |
| - if ($MINOR_VERSION < "4") { |
51 |
| - echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%202.4%22%20"> Fixed in 2.4</a><br> )'; |
52 |
| - } |
53 |
| - echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.0%22%20"> Fixed in 3.0</a><br> )'; |
54 |
| - } elseif ($MAJOR_VERSION == "3") { |
55 |
| - if ($MINOR_VERSION == "0") { |
56 |
| - echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.1%22%20"> Fixed in 3.1</a><br> )'; |
57 |
| - } |
58 |
| - } |
59 |
| - echo "Fixed in nightly<br>"; |
60 |
| - echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?q=is%3Aissue+is%3Aopen+label%3A%22status%3A+fixed+in+nightly%22"> Fixed in nightly</a><br> )'; |
61 |
| - } |
62 | 42 | ?>
|
63 | 43 | <!-- Bootstrap core CSS and theme -->
|
64 | 44 | <link rel="stylesheet"
|
|
88 | 68 |
|
89 | 69 | <div class="container" role="main">
|
90 | 70 | <div class="page-header">
|
91 |
| - <?php echo "<h1>You are running version $VERSION</h1>"; ?> |
| 71 | + <?php echo "<h1>You are running version $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION.$QUALIFIER_VERSION on $OS</h1>"; ?> |
92 | 72 | </div>
|
| 73 | + <?php |
| 74 | + if (($MAJOR_VERSION == $STABLE_MAJOR_VERSION) and ($MINOR_VERSION == $STABLE_MINOR_VERSION)) { |
| 75 | + echo "you are on the latest stable version $STABLE_MAJOR_VERSION.$STABLE_MINOR_VERSION. There is no need to upgrade.<br>"; |
| 76 | + } else { |
| 77 | + echo "Please consider upgrading to the latest stable.<br>"; |
| 78 | + if ($MAJOR_VERSION == "1") { |
| 79 | + echo "<strong>Are you really still running V1??? Why???</strong><br>"; |
| 80 | + } elseif ($MAJOR_VERSION == "2") { |
| 81 | + if ($MINOR_VERSION < "4") { |
| 82 | + echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%202.4%22%20"> Fixed in 2.4</a><br>'; |
| 83 | + } |
| 84 | + echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.0%22%20"> Fixed in 3.0</a><br>'; |
| 85 | + } elseif ($MAJOR_VERSION == "3") { |
| 86 | + if ($MINOR_VERSION == "0") { |
| 87 | + echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?utf8=%E2%9C%93&q=%20label%3A%22status%3A%20fixed%20in%203.1%22%20"> Fixed in 3.1</a><br>'; |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + echo '<a href="https://github.com/jantje/arduino-eclipse-plugin/issues?q=is%3Aissue+label%3A%22status%3A+fixed+in+nightly%22"> Fixed in nightly</a><br>'; |
| 92 | + ?> |
93 | 93 | </div>
|
94 | 94 | <div id="footer">
|
95 | 95 | <?php include 'fragments/footer.html';?>
|
|
0 commit comments