hasPermission("MACHINEMANAGER_VIEW")) { header("Location: ./app.php?msg=no_permission"); die(); } if (!empty($_GET["id"])) { $machineid = $_GET["id"]; } else if (!empty($_GET["arg"])) { $machineid = $_GET["arg"]; } if (!Machine::exists($machineid)) { header("Location: ./app.php?msg=no_such_machine"); } $machine = new Machine($machineid); ?>