Location: PHPKode > projects > SCOP Heartbeat Administration interface > scop-2.0/html/scop/config/power.php
<?
include ("../inc/header.inc");


//echo "<h2>Power Control..</h2>";

$trans="105";
$a105 = "${$l.$trans}";
$trans="106";
$a106 = "${$l.$trans}";

	if ($action==shutdown) {
		echo "<center>$a106</center>";
		exec ("sudo shutdown -h now");
		SCOP_log("Config : Server shutdown called.");
	}

	if ($action==restart) {
		echo "<center>$a105</center>";
		exec ("sudo shutdown -r now");
		SCOP_log("Config : Server restart called.");

}


include ("../inc/footer.inc");
?>
Return current item: SCOP Heartbeat Administration interface