-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsystem-status.php
More file actions
26 lines (25 loc) · 923 Bytes
/
Copy pathsystem-status.php
File metadata and controls
26 lines (25 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require_once('assets/init.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 $pt->config->theme_url;?>/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>