示例#1
0
function rules()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $q = new mysql_squid_builder();
    $action_delete_rule = $tpl->javascript_parse_text("{action_delete_rule}");
    $rule_text = $tpl->_ENGINE_parse_body("{rule}");
    $sql = "SELECT ID,enabled,groupmode,groupname FROM webfilter_rules ORDER BY groupname";
    $results = $q->QUERY_SQL($sql);
    if (!$q->ok) {
        echo "<H2>{$q->mysql_error}</H2>";
    }
    $add = imgtootltip("plus-24.png", "{add} {rule}", "DansGuardianEditRule(-1)");
    $select = imgtootltip("32-parameters.png", "{edit}", "DansGuardianEditRule('0','default')");
    $style = "style='font-size:14px;font-weight:bold;color:black'";
    $html = "<center><span id='DansAnimate'></span>\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:99%'>\n<thead class='thead'>\n\t<tr>\n\t\t<th width=1%>{$add}</th>\n\t\t<th width=99%>{rules}</th>\n\t\t<th width=1%>{groups}</th>\n\t\t<th width=1%>{blacklists}</th>\n\t\t<th width=1%>{whitelists}</th>\n\t\t<th width=1%>&nbsp;</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>\n\t\t<tr class=oddRow>\n\t\t\t<td width=1%>{$select}</td>\n\t\t\t<td {$style} width=99%>" . texthref("Default", "DansGuardianEditRule('0','default')") . "<div><i style='font-size:10px'>{$ligne["ipaddr"]}</i></div></a></td>\n\t\t\t<td width=1% align='center' {$style}>-</td>\n\t\t\t<td width=1% align='center' {$style}>" . COUNTDEGBLKS(0) . "</td>\n\t\t\t<td width=1% align='center' {$style}>" . COUNTDEGBWLS(0) . "</td>\n\t\t\t<td width=1% >&nbsp;</td>\n\t\t</tr>\n";
    $classtr = "oddRow";
    while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $select = imgtootltip("32-parameters.png", "{edit}", "DansGuardianEditRule('{$ligne["ID"]}','{$ligne["groupname"]}')");
        $delete = imgtootltip("delete-32.png", "{delete}", "DansGuardianDeleteMainRule('{$ligne["ID"]}')");
        $color = "black";
        if ($ligne["enabled"] == 0) {
            $color = "#CCCCCC";
        }
        $style = "style='font-size:14px;font-weight:bold;color:{$color}'";
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t\t<td width=1%>{$select}</td>\n\t\t\t<td {$style} width=99%>" . texthref($ligne["groupname"], "DansGuardianEditRule('{$ligne["ID"]}','{$ligne["groupname"]}')") . "<div><i style='font-size:10px'>{$ligne["ipaddr"]}</i></div></a></td>\n\t\t\t<td width=1% align='center' {$style}>" . COUNTDEGROUPES($ligne["ID"]) . "</td>\n\t\t\t<td width=1% align='center' {$style}>" . COUNTDEGBLKS($ligne["ID"]) . "</td>\n\t\t\t<td width=1% align='center' {$style}>" . COUNTDEGBWLS($ligne["ID"]) . "</td>\n\t\t\t<td width=1% >{$delete}</td>\n\t\t</tr>\n\t\t";
    }
    $html = $html . "</table>\n\t</center>\n\t<script>\n\t\tfunction DansGuardianEditRule(ID,rname){\n\t\t\tYahooWin3('600','dansguardian2.edit.php?ID='+ID,'{$rule_text}::'+ID+'::'+rname);\n\t\t}\n\t\t\n\t\tvar x_DansGuardianDeleteMainRule= function (obj) {\n\t\t\tvar res=obj.responseText;\n\t\t\tif (res.length>3){alert(res);}\n\t\t\tif(document.getElementById('main_dansguardian_tabs')){RefreshTab('main_dansguardian_tabs');}\n\t\t\tGroupsDansRuleSearch();\t\t\n\t\t\t\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\tfunction DansGuardianDeleteMainRule(ID){\n\t\t\tif(confirm('{$action_delete_rule}')){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tAnimateDiv('DansAnimate');\n\t\t     \tXHR.appendData('DansGuardianDeleteMainRule', ID);\n\t\t      \tXHR.sendAndLoad('{$page}', 'POST',x_DansGuardianDeleteMainRule);  \n\t\t\t}\n\t\t}\n\t\n\t\n\t</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
function section_architecture_status($asroot=false){
	
	$page=CurrentPageName();
	if(GET_CACHED(__FILE__, __FUNCTION__,__FUNCTION__)){return;}
	
	
	
	$page=CurrentPageName();
	$tpl=new templates();	
	$squid=new squidbee();
	$users=new usersMenus();
	$sock=new sockets();
	$listen_port=$squid->listen_port;
	$second_port=$squid->second_listen_port;
	$ssl_port=$squid->ssl_port;
	$visible_hostname=$squid->visible_hostname;
	$hasProxyTransparent=$squid->hasProxyTransparent;
	
	if($users->SQUID_REVERSE_APPLIANCE){
		$listen_port=80;
		$ssl_port=443;
	}
	
	$EnableRemoteStatisticsAppliance=$sock->GET_INFO("EnableRemoteStatisticsAppliance");
	if(!is_numeric($EnableRemoteStatisticsAppliance)){$EnableRemoteStatisticsAppliance=0;}	
	$UnlockWebStats=$sock->GET_INFO("UnlockWebStats");
	if(!is_numeric($UnlockWebStats)){$UnlockWebStats=0;}
	if($UnlockWebStats==1){$EnableRemoteStatisticsAppliance=0;}	
	
	$js1="Loadjs('squid.popups.php?script=listen_port')";
	$js2="Loadjs('squid.popups.php?script=visible_hostname')";
	$js3="Loadjs('squid.newbee.php?squid-transparent-js=yes')";
	
	if($EnableRemoteStatisticsAppliance==1){$js1=null;$js2=null;$js3=null;}
	
	$labelport="{listen_port}";
	if($hasProxyTransparent==1){$hasProxyTransparent="{yes}";}else{$hasProxyTransparent="{no}";}
	if($second_port>0){$second_port="/$second_port";$labelport="{listen_ports}";}else{$second_port=null;}
	
	if($squid->ICP_PORT>0){
		$second_port=$second_port."/icp:$squid->ICP_PORT";
	}
	
	if($squid->HTCP_PORT>0){
		$second_port=$second_port."/htcp:$squid->HTCP_PORT";
	}	
	
	if($ssl_port>0){$second_port="$second_port/$ssl_port&nbsp;(ssl)";}
	
	if(strlen($visible_hostname)>10){$visible_hostname=substr($visible_hostname, 0,7)."...";}
	
	$VER=$squid->SQUID_VERSION;
	if(preg_match("#([0-9\.]+)#", $VER,$re)){$VER=$re[1];}
	if($VER==null){$VER="Unknown";}
	$squid_version_text="<td class=legend nowrap style='font-size:12px'>{version}:</td>
		<td>".texthref($VER,"Loadjs('squid.compilation.status.php');")."</td>
		<td style='font-size:12px;font-weight:bold'>&nbsp;|&nbsp;</td>";
	
	$visible_hostname_text="<td class=legend nowrap style='font-size:12px;'>{visible_hostname}:</td>
		<td>".texthref($visible_hostname,"$js2","font-size:12px;text-decoration:underline;font-weight:bold")."</td>
		<td style='font-size:12px;font-weight:bold'>&nbsp;|&nbsp;</td>";
	
	if($users->WEBSTATS_APPLIANCE){$squid_version_text=null;$visible_hostname_text=null;}
	
	$html="
	<div style='width:98%' class=form>
	<table style='width:100%' class=TableRemove>
	<tr>
		$squid_version_text
		<td class=legend nowrap style='font-size:12px;'>$labelport:</td>
		<td style='font-size:12px;'>".texthref("$listen_port$second_port","$js1","font-size:12px;text-decoration:underline;font-weight:bold")."</td>
		<td style='font-size:12px;font-weight:bold'>&nbsp;|&nbsp;</td>
		$visible_hostname_text
		<td class=legend nowrap style='font-size:12px;'>{transparent_mode}:</td>
		<td style='font-size:12px;'>".texthref($hasProxyTransparent,"$js3","font-size:12px;text-decoration:underline;font-weight:bold")."</td>
	</tr>
	</table>
	</div>
	";
	
	SET_CACHED(__FILE__, __FUNCTION__,__FUNCTION__,$html);
if($asroot){

	return;
}
	
	$html=$tpl->_ENGINE_parse_body($html);
	echo $html;
	
}
function left_status()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $day = $_GET["day"];
    $time = strtotime("{$day} 00:00:00");
    $table = date("YW", $time) . "_week";
    if ($q->TABLE_EXISTS($table)) {
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `{$table}` WHERE LENGTH(category)=0"));
        $notcategorized = $ligne["tcount"];
        if (!$q->ok) {
            $err1 = icon_mysql_error($q->mysql_error);
        }
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `{$table}` WHERE LENGTH(category)>2"));
        $categorized = $ligne["tcount"];
        if (!$q->ok) {
            $err2 = icon_mysql_error($q->mysql_error);
        }
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `{$table}`"));
        $visited = $ligne["tcount"];
        if (!$q->ok) {
            $err3 = icon_mysql_error($q->mysql_error);
        }
        $notcategorized = texthref($notcategorized, "Loadjs('squid.visited.php?week={$day}&onlyNot=yes')");
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(hostname) as tcount FROM \n\t\t(SELECT client,hostname,MAC,uid FROM {$table} GROUP BY client,hostname,MAC,uid) as t"));
        if (!$q->ok) {
            $err4 = icon_mysql_error($q->mysql_error);
        }
        $members = texthref($ligne["tcount"], "Loadjs('{$page}?members-query=yes&day={$day}&t=week')");
        $html = "\n\t\t<table style='width:99%' class=form>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td class=legend>{not_categorized}:</td>\n\t\t\t<td style='font-size:14px;font-weight:bold'>{$notcategorized}</td>\n\t\t\t<td width=1%>{$err1}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend>{categorized}:</td>\n\t\t\t<td style='font-size:14px;font-weight:bold'>{$categorized}</td>\n\t\t\t<td width=1%>{$err2}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend>{visited}:</td>\n\t\t\t<td style='font-size:14px;font-weight:bold'>{$visited}</td>\n\t\t\t<td width=1%>{$err3}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend>{members}:</td>\n\t\t\t<td style='font-size:14px;font-weight:bold'>{$members}</td>\n\t\t\t<td width=1%>{$err4}</td>\n\t\t</tr>\t\t\t\t\n\t\t</tbody>\n\t\t</table>\n\t\t";
    }
    echo $tpl->_ENGINE_parse_body($html);
}
示例#4
0
function dansguardian_status()
{
    $users = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $categories = $q->LIST_TABLES_CATEGORIES();
    $sock = new sockets();
    $ufdb = null;
    $dansgu = null;
    $t = 0;
    if ($users->APP_UFDBGUARD_INSTALLED) {
        $t++;
        $APP_UFDBGUARD_INSTALLED = "{installed}";
        $EnableUfdbGuard = $sock->GET_INFO("EnableUfdbGuard");
        if ($EnableUfdbGuard == 1) {
            $EnableUfdbGuard = "{enabled}";
        } else {
            $EnableUfdbGuard = "{disabled}";
        }
        $ufdb = "<tr>\n\t\t\t<td class=legend>{APP_UFDBGUARD}:</td>\n\t\t\t<td><div style='font-size:14px'>" . texthref($EnableUfdbGuard, "Loadjs('squid.popups.php?script=plugins')") . "</td>\n\t\t\t</tr>";
    }
    if ($users->DANSGUARDIAN_INSTALLED) {
        $t++;
        $DANSGUARDIAN_INSTALLED = "{installed}";
        $DansGuardianEnabled = $sock->GET_INFO("DansGuardianEnabled");
        if ($DansGuardianEnabled == 1) {
            $DansGuardianEnabled = "{enabled}";
        } else {
            $DansGuardianEnabled = "{disabled}";
        }
        $dansgu = "<tr>\n\t\t\t<td class=legend>{APP_DANSGUARDIAN}:</td>\n\t\t\t<td><div style='font-size:14px'>" . texthref($DansGuardianEnabled, "Loadjs('squid.popups.php?script=plugins')") . "</td>\n\t\t\t</tr>";
    }
    if ($users->KAV4PROXY_INSTALLED) {
        $t++;
        $kavicapserverEnabled = $sock->GET_INFO("kavicapserverEnabled");
        if ($kavicapserverEnabled == 1) {
            $kavicapserverEnabled = "{enabled}";
        } else {
            $kavicapserverEnabled = "{disabled}";
        }
        $kav = "<tr>\n\t\t\t<td class=legend>{APP_KAV4PROXY}:</td>\n\t\t\t<td><div style='font-size:14px'>" . texthref($kavicapserverEnabled, "Loadjs('squid.popups.php?script=plugins')") . "</td>\n\t\t\t</tr>";
    } else {
        $kavicapserverEnabled = "{not_installed}";
        $kav = "<tr>\n\t\t\t<td class=legend>{APP_KAV4PROXY}:</td>\n\t\t\t<td><div style='font-size:14px'>{$kavicapserverEnabled}</td>\n\t\t\t</tr>";
    }
    if ($t > 0) {
        $table = "<table style='width:100%' class=form><tbody>{$ufdb}{$dansgu}{$kav}</tbody></table>";
    }
    $html = "\n\t{$table}\n\t<script>\n\t\tfunction RefreshDansguardianMainService(){\n\t\t\tLoadAjax('dansguardian-service-status','{$page}?dansguardian-service-status=yes');\n\t\t}\n\t\tRefreshDansguardianMainService();\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
示例#5
0
function section_architecture_status()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $squid = new squidbee();
    $listen_port = $squid->listen_port;
    $visible_hostname = $squid->visible_hostname;
    $hasProxyTransparent = $squid->hasProxyTransparent;
    if ($hasProxyTransparent == 1) {
        $hasProxyTransparent = "{yes}";
    } else {
        $hasProxyTransparent = "{no}";
    }
    if (strlen($visible_hostname) > 10) {
        $visible_hostname = substr($visible_hostname, 0, 7) . "...";
    }
    $html = "<table style='width:100%' class=form>\n\t<tr>\n\t\t<td class=legend nowrap>{version}:</td>\n\t\t<td>" . texthref($squid->SQUID_VERSION, null) . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{listen_port}:</td>\n\t\t<td>" . texthref($listen_port, "Loadjs('squid.popups.php?script=listen_port')") . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{visible_hostname}:</td>\n\t\t<td>" . texthref($visible_hostname, "Loadjs('squid.popups.php?script=visible_hostname')") . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{transparent_mode}:</td>\n\t\t<td>" . texthref($hasProxyTransparent, "Loadjs('squid.newbee.php?squid-transparent-js=yes')") . "</td>\n\t</tr>\n\t</table>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
function section_members_status()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $squid = new squidbee();
    $listen_port = $squid->listen_port;
    $visible_hostname = $squid->visible_hostname;
    $hasProxyTransparent = $squid->hasProxyTransparent;
    if ($hasProxyTransparent == 1) {
        $hasProxyTransparent = "{yes}";
    } else {
        $hasProxyTransparent = "{no}";
    }
    if (!$squid->ACL_ARP_ENABLED) {
        $arpinfos = "<table style='width:99%;margin-top:5px' class=form>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td width:1% valign='top'><img src='img/warning-panneau-32.png'></td>\n\t\t\t<td><strong style='font-size:12px'>{no_acl_arp}</strong><br>\n\t\t\t<span style='font-size:11px'>{no_acl_arp_text}</span></td>\n\t\t</tr>\n\t\t</tbody>\n\t\t</table>";
    } else {
        $arpinfos = "<table style='width:99%' class=form>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td width:1% valign='top'><img src='img/32-infos.png'></td>\n\t\t\t<td><strong style='font-size:12px'>{yes_acl_arp}</strong><br>\n\t\t\t<span style='font-size:11px'>{yes_acl_arp_text}</span></td>\n\t\t</tr>\n\t\t</tbody>\n\t\t</table>";
    }
    if (strlen($visible_hostname) > 10) {
        $visible_hostname = substr($visible_hostname, 0, 7) . "...";
    }
    $html = "<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend nowrap>{version}:</td>\n\t\t<td>" . texthref($squid->SQUID_VERSION, null) . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{listen_port}:</td>\n\t\t<td>" . texthref($listen_port, "Loadjs('squid.popups.php?script=listen_port')") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{visible_hostname}:</td>\n\t\t<td>" . texthref($visible_hostname, "Loadjs('squid.popups.php?script=visible_hostname')") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{transparent_mode}:</td>\n\t\t<td>" . texthref($hasProxyTransparent, "Loadjs('squid.newbee.php?squid-transparent-js=yes')") . "</td>\n\t</tr>\t\n\t\n\t</table>\n\t{$arpinfos}\n\t<script>\n\t\tLoadAjax('members-content','{$page}?members-content=yes');\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
function left_status(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$q=new mysql_squid_builder();
	$day=$_GET["day"];
	$time=strtotime("$day 00:00:00");
	$table=date("Ymd",$time)."_hour";
	
	if($q->TABLE_EXISTS($table)){
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `$table` WHERE LENGTH(category)=0"));
		$notcategorized=$ligne["tcount"];
		if(!$q->ok){$err1=icon_mysql_error($q->mysql_error);}
		
		
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `$table` WHERE LENGTH(category)>2"));
		$categorized=$ligne["tcount"];	
		if(!$q->ok){$err2=icon_mysql_error($q->mysql_error);}
		
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM `$table`"));
		$visited=$ligne["tcount"];	
		if(!$q->ok){$err3=icon_mysql_error($q->mysql_error);}		
		$notcategorized=texthref($notcategorized, "Loadjs('squid.visited.php?day=$day&onlyNot=yes')");
		$html="
		<table style='width:97%' class=form>
		<tbody>
		<tr>
			<td class=legend>{not_categorized}:</td>
			<td style='font-size:14px;font-weight:bold'>$notcategorized</td>
			<td width=1%>$err1</td>
		</tr>
		<tr>
			<td class=legend>{categorized}:</td>
			<td style='font-size:14px;font-weight:bold'>$categorized</td>
			<td width=1%>$err2</td>
		</tr>	
		<tr>
			<td class=legend>{visited}:</td>
			<td style='font-size:14px;font-weight:bold'>$visited</td>
			<td width=1%>$err2</td>
		</tr>


		
		</tbody>
		</table>";
		
	}
		
		$html=$html."<table style='width:97%' class=form>
		<tbody>
			<tr>
				<td width=1%><img src='img/arrow-right-16.png'></td>
				<td style='font-size:14px;font-weight:bold'>
						<a href=\"javascript:blur();\" 
						OnClick=\"javascript:Loadjs('squid.traffic.statistics.days.calendar.php');\" 
						style='font-size:14px;font-weight:bold;text-decoration:underline'>{calendar}</a>
				</td>
			</tr>		
			<tr>
				<td width=1%><img src='img/arrow-right-16.png'></td>
				<td style='font-size:14px;font-weight:bold'>
						<a href=\"javascript:blur();\" 
						OnClick=\"javascript:Loadjs('squid.visited.php?recategorize-day-js={$_GET["day"]}');\" 
						style='font-size:14px;font-weight:bold;text-decoration:underline'>{recategorize_schedule}</a>
				</td>
			</tr>		
			
			<tr><td colspan=2><hr></td></tr>
			<tr>
				<td width=1%><img src='img/arrow-right-16.png'></td>
				<td style='font-size:14px;font-weight:bold'>
						<a href=\"javascript:blur();\" 
						OnClick=\"javascript:Loadjs('squid.stats.repair.day.php?time=$time');\" 
						style='font-size:14px;font-weight:bold;text-decoration:underline'>{rescan_database}</a>
				</td>
			</tr>
		</tbody>
		</table>
		
		";
		
	
	
	echo $tpl->_ENGINE_parse_body($html);
	
	
}
示例#8
0
function section_architecture_status()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $squid = new squidnodes($_GET["nodeid"]);
    if (!is_numeric($squid->second_listen_port)) {
        $squid->second_listen_port = 0;
    }
    $listen_port = $squid->listen_port;
    $second_port = $squid->second_listen_port;
    $visible_hostname = $squid->visible_hostname;
    $hasProxyTransparent = $squid->hasProxyTransparent;
    $labelport = "{listen_port}";
    if ($hasProxyTransparent == 1) {
        $hasProxyTransparent = "{yes}";
    } else {
        $hasProxyTransparent = "{no}";
    }
    if ($second_port > 0) {
        $second_port = "/{$second_port}";
        $labelport = "{listen_ports}";
    } else {
        $second_port = null;
    }
    if (strlen($visible_hostname) > 10) {
        $visible_hostname = substr($visible_hostname, 0, 7) . "...";
    }
    $html = "<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend nowrap>{version}:</td>\n\t\t<td>" . texthref($squid->SQUID_VERSION, null) . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{$labelport}:</td>\n\t\t<td>" . texthref("{$listen_port}{$second_port}", "Loadjs('nodes.squid.listen.ports.php?nodeid={$_GET["nodeid"]}')") . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{visible_hostname}:</td>\n\t\t<td>" . texthref($visible_hostname, "Loadjs('nodes.squid.hostname.php?nodeid={$_GET["nodeid"]}')") . "</td>\n\t\t<td style='font-size:14px;font-weight:bold'>&nbsp;|&nbsp;</td>\n\t\t<td class=legend nowrap>{transparent_mode}:</td>\n\t\t<td>" . texthref($hasProxyTransparent, "Loadjs('nodes.squid.transparent.php?nodeid={$_GET["nodeid"]}')") . "</td>\n\t</tr>\n\t</table>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}