Location: PHPKode > projects > DebWeb GUI > debwgui/reboot.php
<?php require_once("includes/acl.inc"); ?>
<p class="pgtitle">System: Reboot</p>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">

if(isset($_POST['reboot']) && !empty($_POST['reboot'])) {
	if($_POST['reboot'] == "Yes") {
		print "will reboot in 5 second, no way to abort now";
		exec("$SUDO /sbin/reboot");
	} else {
		print "<script type=\"text/javascript\">window.location = \"index.php\"</script>";
<form action="" method="POST">
	<p><strong>Are you sure you want to reboot the system?</strong></p>
	<input name="reboot" type="submit" class="formbtn" name="reboot" value="Yes" onclick="return confirm('Are you completly sure you want to restart the server?')">
	<input name="reboot" type="submit" class="formbtn" value="No">
Return current item: DebWeb GUI