//Autocomplete data $_hosts_data = Asset_host::get_basic_list($dbconn); $_hosts = $_hosts_data[1]; foreach ($_hosts as $_host_id => $_host_detail) { // get host IPs $hIPs = array(); $hIPs = explode(",", trim($_host_detail['ips'])); foreach ($hIPs as $hIP) { $hIP = trim($hIP); $hosts .= '{ txt:"' . $_host_detail['name'] . ' (' . $hIP . ')", id: "' . $_host_id . '#' . $hIP . '" },'; } } } //Check credentials if ($host_id_ip != "") { $results = Vulnerabilities::check_credential($dbconn, $host_id_ip, $name, $login); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php echo gettext("Vulnmeter Credentials"); ?> </title> <link rel="stylesheet" type="text/css" href="../style/av_common.css?t=<?php echo Util::get_css_id(); ?> "/> <script type="text/javascript" src="../js/jquery.min.js"></script>