Reboot command has been sent to your Pi, please wait up to 90 secs for it to reboot. You will be re-directed back to the dashboard automatically in 90 seconds. | ';
system('sudo sync && sudo sync && sudo sync && sudo mount -o remount,ro / > /dev/null &');
exec('sudo reboot > /dev/null &');
};
if ( $_POST["action"] === "shutdown" ) {
echo '|
Shutdown command has been sent to your Pi, please wait 30 secs for it to fully shutdown before removing the power. |