PHP max version check added
This commit is contained in:
@@ -116,10 +116,10 @@ $bootstrapPermission = substr(sprintf('%o', fileperms($basePath.DIRECTORY_SEPARA
|
||||
</tr>
|
||||
<?php
|
||||
echo '<tr>';
|
||||
if (version_compare(phpversion(), '7.1.9', '>=') == 1) {
|
||||
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</td>';
|
||||
if (version_compare(phpversion(), '7.1') == -1 || version_compare('7.1.50', phpversion()) == -1) {
|
||||
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Recommended PHP version 7.1</p></td>';
|
||||
} else {
|
||||
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Please upgrade PHP Version to 7.1.3 or greater version </p></td>';
|
||||
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
|
Reference in New Issue
Block a user