mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-30 20:35:44 +09:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
use fruithost\Auth;
|
|
use fruithost\Utils;
|
|
|
|
$template->header();
|
|
|
|
if(!Auth::hasPermission('SERVER::MANAGE')) {
|
|
?>
|
|
<div class="alert alert-danger mt-4" role="alert">
|
|
<strong>Access denied!</strong>
|
|
<p class="pb-0 mb-0">You have no permissions for this page.</p>
|
|
</div>
|
|
<?php
|
|
$template->footer();
|
|
exit();
|
|
}
|
|
?>
|
|
<div class="jumbotron text-center bg-transparent text-muted">
|
|
<i class="material-icons text-warning">warning</i>
|
|
<h2>System-Reboot</h2>
|
|
<?php
|
|
if(isset($error)) {
|
|
?>
|
|
<p class="lead text-bold text-danger"><?php print $error; ?></p>
|
|
<?php
|
|
} else if(isset($success)) {
|
|
?>
|
|
<p class="lead text-bold text-success"><?php print $success; ?></p>
|
|
<?php
|
|
} else {
|
|
?>
|
|
<p class="lead">Do you really want to reboot the complete system?</p>
|
|
<form method="post" action="<?php print $this->url('/server/reboot'); ?>">
|
|
<button type="submit" name="action" value="reboot" class="btn btn-sm btn-outline-primary">Reboot now!</button>
|
|
</form>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<?php
|
|
$template->footer();
|
|
?>
|