function js_mac() { header("content-type: application/x-javascript"); $page = CurrentPageName(); $uuid = urlencode($_GET["uuid"]); $mac = $_GET["mac-js"]; $mac_enc = urlencode($mac); $q = new mysql_meta(); $tpl = new templates(); $hostname = $q->mac_to_host($mac); $title = $tpl->javascript_parse_text("{computer}::{$hostname} [{$mac}]"); $html = "YahooUser(850,'{$page}?mac-popup={$mac_enc}&uuid={$uuid}&t={$_GET["t"]}','{$title}');"; echo $html; }