userid != $user->id) { fail("No such host"); } return $host; } db_init(); $user = get_logged_in_user(); page_head("Host delete"); $hostid = $_GET["hostid"]; $host = get_host($hostid, $user); if (host_nresults($host)==0) { mysql_query("delete from host where id=$hostid"); } else { fail("existing results"); } echo " Host deleted.

Return to list of your computers "; page_tail(); ?>