Skip to content

Commit

Permalink
Update lmo-adminmain.php
Browse files Browse the repository at this point in the history
Gives a warning that the PHP version is less than 8. The LMO is designed for PHP > 8.
  • Loading branch information
henshingly committed May 9, 2024
1 parent 9dace6c commit 04f872b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lmo/lmo-adminmain.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function getmicrotime(){
$file=isset($_REQUEST['file'])?$_REQUEST['file']:"";
$subdir=isset($_REQUEST["subdir"])?$_REQUEST["subdir"]:dirname($file)."/";

if (version_compare(PHP_VERSION, '8.0.0', '<')) echo getMessage('This LMO was designed for PHP 8.<br>You don´t have PHP 8 yet, your PHP version: ' . PHP_VERSION, TRUE);
if (@file_exists(PATH_TO_LMO."/install/install.php") && @is_readable(PATH_TO_LMO."/install/install.php")) echo getMessage('Delete install folder or set its chmod to 000!',TRUE);
?>
<script type="text/javascript" src="<?php echo URL_TO_LMO?>/js/admin.js.php"></script>
Expand Down

0 comments on commit 04f872b

Please sign in to comment.