Ejemplo n.º 1
0
function popup()
{
    $page = CurrentPageName();
    $user = new usersMenus();
    $sock = new sockets();
    $tpl = new templates();
    $js_common = js_common();
    $sock = new sockets();
    $EnableDNSMASQLDAPDB = $sock->GET_INFO("EnableDNSMASQLDAPDB");
    if (!is_numeric($EnableDNSMASQLDAPDB)) {
        $EnableDNSMASQLDAPDB = 0;
    }
    if (!$user->POWER_DNS_INSTALLED) {
        if (!$user->dnsmasq_installed) {
            not_installed();
            return null;
        }
        if ($EnableDNSMASQLDAPDB == 0) {
            not_installed();
            return null;
        }
    }
    $html = "\n\t<div id='dns_list' style='width:100%;height:590px;overflow:auto'></div>\n\t<script>\n\t\tfunction refreshpdnlist(){\n\t\t\tLoadAjax('dns_list','{$page}?RefreshDNSList=yes');\n\t\t\t\n\t\t}\n\t\t{$js_common}\n\t\trefreshpdnlist();\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
Ejemplo n.º 2
0
function popup()
{
    $user = new usersMenus();
    if (!$user->POWER_DNS_INSTALLED) {
        not_installed();
        return null;
    }
    $add = Paragraphe("dns-cp-add-64.png", "{ADD_DNS_ENTRY}", "{ADD_DNS_ENTRY_TEXT}", "javascript:AddPDNSEntry()");
    $nic = Buildicon64('DEF_ICO_IFCFG');
    $list = dnslist();
    $html = "<H1>{APP_PDNS}</H1>\n\t<p class=caption>{pdns_explain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t\n\t\t<td valign='top'>\n\t\t\t\t" . RoundedLightWhite("<div id='dns_list' style='width:400px;height:320px;overflow:auto'>{$list}</div>") . "\n\t\t</td>\n\t\t<td valign='top'>{$add}<br>{$nic}<br>" . PDNSStatus() . "</td>\n\t</tr>\n\t</table>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Ejemplo n.º 3
0
function popup(){
	$page=CurrentPageName();
	$user=new usersMenus();
	$sock=new sockets();
	$tpl=new templates();
	
	if(!$user->POWER_DNS_INSTALLED){
		not_installed();return null;
	}
	$html="
	<div id='dns_list' style='width:100%;height:590px;overflow:auto'></div>
	<script>
		function refreshpdnlist(){
			LoadAjax('dns_list','$page?RefreshDNSList=yes');
			
		}
		refreshpdnlist();
	</script>
	";
	

echo $tpl->_ENGINE_parse_body($html);
}