<?php
require_once realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'bootstrap.php';
$getStatus = getStatus(['curl' => true, "nodejsport" => true, "htaccess" => true]);
?>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>System Status</title>
	<link rel="stylesheet" href="<?php echo  $config->uri . '/themes/' . $config->theme .'/assets';?>/css/style.css">

</head>
<body>
	<div class="container content-container">
		<ul style="list-style: circle;">
	<?php if (!empty($getStatus)) { ?> 
        <?php
        foreach ($getStatus as $key => $value) {?>
            <li style="margin-bottom: 20px;"><?php echo ($value["type"] == "error") ? '<strong style="color: red">Important!</strong>' : '<strong style="color: #f98f1d">Warning:</strong>';?> <?php echo $value["message"];?></li>
    <?php }} else { ?>
        <li>All good, no issues found.</li>
    <?php } ?>
    </ul>
	</div>
</body>
</html>