<?php include 'functions.php'; include 'head.php'; ?>
<body id="management">
<div class="main">
<div class="page">
<div class="header" >
<!--<h1>White-Rabbit Switch Tool</h1>-->
<div class="header-ports" ><?php wrs_header_ports(); ?></div>
<div class="topmenu">
	<?php include 'topmenu.php' ?>
</div>
</div>
<div class="content">
<div class="leftpanel">
<h2>Main Menu</h2>
	<?php include 'menu.php' ?>
</div>
<div class="rightpanel">
<div class="rightbody">
<h1 class="title">Reboot & Reset<a href='help.php?help_id=firmware' onClick='showPopup(this.href);return(false);'><img align=right src="./img/question.png"></a></h1>


<?php
	session_is_started();
?>
	<h2>Reboot</h2>
	<br>
	<p>This will reboot your switch</p>
        <br>
        <FORM method="POST" ENCTYPE="multipart/form-data" onsubmit="return confirm('Are you sure you want to reboot the switch?');">
        <th><INPUT type=submit value="Reboot" class="btn" name="reboot" ></th>
        </FORM>

	<br>
	<hr>
	<br>

	<h2>Reset</h2>
	<br>
	<p>This will reset your switch to the default configuration</p>
	<br>
	<FORM method="POST" ENCTYPE="multipart/form-data" onsubmit="return confirm('Are you sure you want to reset the switch?');">
        <th><INPUT type=submit value="Reset" class="btn" name="reset" ></th>
        </FORM>              

<?php
        if(isset($_POST['reset'])){
                resetswitch();
        }

        if(isset($_POST['reboot'])){
                wrs_reboot();
        }


 ?>


</div>
</div>
</div>
<div class="footer">
	<?php include 'footer.php' ?>
</div>
</div>
</div>
</body>
</html>
