This repository was archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathconfiguration.php
More file actions
45 lines (44 loc) · 1.31 KB
/
configuration.php
File metadata and controls
45 lines (44 loc) · 1.31 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
// include files
require_once("includes/check-authorize.php");
require_once("includes/functions.php");
$empire_config = "";
$arr_result = get_configuration($sess_ip, $sess_port, $sess_token);
if(!empty($arr_result))
{
$empire_config = '<table class="table table-hover table-striped"><thead><tr><th>Configuration Name</th><th>Configuration Value</th></tr></thead><tbody>';
foreach($arr_result["config"][0] as $key => $value)
{
$key = htmlentities($key);
$value = htmlentities($value);
$empire_config .= "<tr><td>$key</td><td>$value</td></tr>";
}
$empire_config .= '</tbody></table>';
}
else
{
$empire_config = "<div class='alert alert-danger'>Unexpected response</div>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Empire: Configuration</title>
<?php @require_once("includes/head-section.php"); ?>
</head>
<body>
<div class="container">
<?php @require_once("includes/navbar.php"); ?>
<br>
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading">Configuration Information</div>
<div class="panel-body"><?php echo $empire_config; ?>
</div>
</div>
</div>
<br>
</div>
<?php @require_once("includes/footer.php"); ?>
</body>
</html>