. */ session_start(); // hide all error error_reporting(0); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { if (isset($_POST['submit'])) { $API = new RouterosAPI(); $API->debug = false; if ($API->connect($iphost, $userhost, decrypt($passwdhost))) { $API->write('/system/reboot'); $API->read(); } session_destroy(); echo ""; } } ?>