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 pathadministration.php
More file actions
47 lines (46 loc) · 1.68 KB
/
administration.php
File metadata and controls
47 lines (46 loc) · 1.68 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
46
47
<?php
// include files
require_once("includes/check-authorize.php");
require_once("includes/functions.php");
$empire_permanent_token = "";
$arr_result = get_permanent_session_token($sess_ip, $sess_port, $sess_token);
if(array_key_exists("token", $arr_result))
{
$empire_permanent_token = htmlentities($arr_result["token"]);
}
else
{
$empire_permanent_token = "<div class='alert alert-danger'>Unexpected response</div>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Empire: Administration</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">Permanent Session Token</div>
<div class="panel-body"><code><?php echo $empire_permanent_token; ?></code></div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading">Restart Empire REST API Server</div>
<div class="panel-body"><button type="button" class="btn btn-warning" onclick="location.href='restart-api-server.php';">Restart API Server</button></div>
</div>
<br>
<div class="panel panel-primary">
<div class="panel-heading">Shutdown Empire REST API Server</div>
<div class="panel-body"><button type="button" class="btn btn-danger" onclick="location.href='shutdown-api-server.php';">Shutdown API Server</button></div>
</div>
</div>
<br>
</div>
<?php @require_once("includes/footer.php"); ?>
</body>
</html>