-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreboot.php
More file actions
29 lines (26 loc) · 925 Bytes
/
reboot.php
File metadata and controls
29 lines (26 loc) · 925 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
27
28
29
<?php
session_start();
if(!isset($_SESSION['login']) || $_SESSION['login'] != true)
{
header("location: login.php");
exit;
}
$_SESSION['login'] = false;
$do = `sudo /var/www/html/scripts/reboot.sh > /dev/null 2>/dev/null &`;
$pageTitle = "System Rebooting...";
include_once("header.php");
?>
<div id="page-wrapper">
<div id="page-inner">
<div class="row" style="padding-right:15px;padding-left:15px;">
<div class="col-md-12">
<h2><?=$pageTitle?></h2>
</div>
</div>
<hr />
<div class="row" style="padding-right:15px;padding-left:15px;">
<p>Please wait while the system is rebooted.</p>
</div>
</div>
</div>
<?php include_once("footer.php"); ?>