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"); exit(); } $labeltype = array_keys($SETTINGS["labels"]["templates"])[0]; if (!empty($VARS["labeltype"]) && array_key_exists($VARS["labeltype"], $SETTINGS["labels"]["templates"])) { $labeltype = $VARS["labeltype"]; } $machine = new Machine($machineid); $pdfurl = "./print/print.php?labeltype=$labeltype&id=$machineid"; ?>
get("Go to machine"); ?>