function tabs()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $users = new usersMenus();
    $q = new mysql_blackbox();
    $tpl = new templates();
    $language = $tpl->language;
    $array["performance"] = "{global_performance}";
    $array["squid-memory"] = '{memory}';
    $array["peristent_cnx"] = "{persistent_connections}";
    $array["performance-reports"] = "{performance_reports}";
    //$array["logger"]="{artica_logger}";
    $fontsize = "22";
    while (list($num, $ligne) = each($array)) {
        if ($num == "logger") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.php?logfile-daemon-popup=yes\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "peristent_cnx") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.persistent.connections.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "squid-memory") {
            $html[] = $tpl->_ENGINE_parse_body("<li>\n\t\t\t<a href=\"squid.memory.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "performance-reports") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.perfs.reports.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "squid_main_performance", 1492) . "";
}
Example #2
0
function tabs()
{
    $tpl = new templates();
    $array["index"] = '{parameters}';
    $array["rules"] = '{rules}';
    $array["transparent"] = '{transparent_rules}';
    $array["events"] = '{events}';
    //$array["plugins"]='{squid_plugins}';
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $style = "style='font-size:22px'";
    $t = time();
    while (list($num, $ligne) = each($array)) {
        if ($num == "index") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "events") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.events.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "rules") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.rules.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "transparent") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"ss5.transparent.php\" {$style}><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" {$style}><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "ss5_main", 1490);
}
function tabs()
{
    $uuid = $_GET["uuid"];
    $fontsize = 18;
    $tpl = new templates();
    $page = CurrentPageName();
    $array["RTT"] = "{realtime}";
    $array["WEEK"] = "{this_week}";
    $array["websites"] = "{websites}";
    while (list($num, $ligne) = each($array)) {
        if ($num == "RTT") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rtt.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "WEEK") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rttw.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "websites") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.bandwidth.rweb.week.php?uuid={$uuid}&meta=1\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize};font-weight:normal'><span>{$ligne}</span></a></li>\n");
    }
    $html = build_artica_tabs($html, 'main_bandwidth_meta_tabs');
    echo $html;
}
function tabs()
{
    $fontsize = 18;
    $tpl = new templates();
    $page = CurrentPageName();
    $users = new usersMenus();
    $sock = new sockets();
    $SquidUrgency = intval($sock->GET_INFO("SquidUrgency"));
    if ($SquidUrgency == 1) {
        echo FATAL_ERROR_SHOW_128("<div style='font-size:22px'>{proxy_in_emergency_mode}</div>\n\t\t\t<div style='font-size:18px'>{proxy_in_emergency_mode_explain}</div>\n\t\t\t<div style='text-align:right'><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('squid.urgency.php?justbutton=yes');\"\n\t\t\tstyle='text-decoration:underline'>{disable_emergency_mode}</a></div>\t\n\t\t\t");
        return;
    }
    $array["thishour"] = '{this_hour}';
    $array["thishour2"] = '{this_hour} ({compressed})';
    while (list($num, $ligne) = each($array)) {
        if ($num == "thishour") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "thishour2") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.compressed.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "thishour3") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.day.compressed.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}={$time}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "main_squid_logs_subtabs");
}
Example #5
0
function tabs()
{
    $page = CurrentPageName();
    $fontsize = "font-size:16px;";
    $adduri = "&font-size=18";
    $adduri2 = "?font-size={$_GET["font-size"]}";
    //$array["popup-instances"]="{multiple_webmail}";
    $array["popup"] = "{backup}";
    $array["schedule"] = "{schedule}";
    $fontsize = "font-size:18px";
    while (list($num, $ligne) = each($array)) {
        if ($num == "schedule") {
            $html[] = "<li><a href=\"schedules.php?ForceTaskType=31\" style='{$fontsize}' ><span>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "popup-tune") {
            $html[] = "<li><a href=\"zarafa.tuning.php\" style='font-size:18px'><span>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "popup-mysql") {
            $html[] = "<li><a href=\"zarafa.mysqlparams.php\" style='font-size:18px'><span>{$ligne}</span></a></li>\n";
            continue;
        }
        $html[] = "<li><a href=\"{$page}?{$num}=yes{$adduri}\" style='{$fontsize}' ><span>{$ligne}</span></a></li>\n";
    }
    $tabwidth = 759;
    if (is_numeric($_GET["tabwith"])) {
        $tabwitdh = $_GET["tabwith"];
    }
    echo build_artica_tabs($html, "main_config_zarafaBack");
}
Example #6
0
function tabs(){

	$tpl=new templates();
	$users=new usersMenus();
	$page=CurrentPageName();
	$squid=new squidbee();
	
	$fontsize=20;
	
	$sock=new sockets();
	$compilefile="ressources/logs/squid.compilation.params";
	if(!is_file($compilefile)){$sock->getFrameWork("squid.php?compil-params=yes");}
	$COMPILATION_PARAMS=unserialize(base64_decode(file_get_contents($compilefile)));
	
	$DisableSSLStandardPort=$sock->GET_INFO("DisableSSLStandardPort");
	if(!is_numeric($DisableSSLStandardPort)){$DisableSSLStandardPort=1;}
	
	if($DisableSSLStandardPort==0){$StandardPortSSL=1;}else{$StandardPortSSL=0;}
	
	if(!isset($COMPILATION_PARAMS["enable-ssl"])){
		echo FATAL_ERROR_SHOW_128("{error_squid_ssl_not_compiled}");
		return;
	
	}
	
	$array["popup"]="{status}";
	if($StandardPortSSL==1){
		if($squid->SSL_BUMP_WHITE_LIST==1){
			$array["ssl-decrypt"]="{decrypted_ssl_websites}";
		}else{
			$array["ssl-whitelist"]="{whitelist}";
		}
	}
	
	$t=time();
	while (list ($num, $ligne) = each ($array) ){
		
		if($num=="ssl-decrypt"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.ssl.encrypt.php\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
			continue;
		}
		
		if($num=="ssl-whitelist"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.sslbump.php?whitelist=yes\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
			continue;
		}		
	
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=$t\" style='font-size:$fontsize;font-weight:normal'><span>$ligne</span></a></li>\n");
	
	}
	
	
	
	$html=build_artica_tabs($html,'main_ssl_center_tabs',975)."<script>LeftDesign('ssl-256-white-opac20.png');</script>";
	
	echo $html;



}
Example #7
0
function tabs()
{
    $fontsize = 26;
    $tpl = new templates();
    $page = CurrentPageName();
    $users = new usersMenus();
    $sock = new sockets();
    $time = time();
    $array["page"] = "{parameters}";
    $array["template"] = "{error_page}";
    $array["whitelist"] = "{whitelist}";
    $CountOfTabs = count($array);
    if ($CountOfTabs > 9) {
        $fontsize = "16";
    }
    if ($CountOfTabs > 10) {
        $fontsize = "14";
    }
    while (list($num, $ligne) = each($array)) {
        if ($num == "whitelist") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"privoxy.whitelist.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "template") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"privoxy.template.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}={$time}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "main_privoxy_tabs", 1493) . "<script>LeftDesign('logs-white-256-opac20.png');</script>";
}
function tabs()
{
    $tpl = new templates();
    $stats_appliance = new stats_appliance();
    $array["popup"] = '{active_requests}';
    $time = time();
    $style = "style='font-size:22px'";
    $page = CurrentPageName();
    $t = time();
    while (list($num, $ligne) = each($array)) {
        if ($num == "categories") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.active.requests.categories.php\"><span {$style}>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "categories-day") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.active.requests.categories.day.php\"><span {$style}>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "popup-members") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.active.requests.members.php\"><span {$style}>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "popup-members-day") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.active.requests.members.day.php\"><span {$style}>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes&t={$time}\"><span {$style}>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "squid_active_requests_relatime");
}
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $page = CurrentPageName();
    $users = new usersMenus();
    $q = new mysql_postfix_builder();
    $hier = strtotime($q->HIER() . " 00:00:00");
    $table_month = "mgreym_" . date("Ym");
    $table_hier = $table = "mgreym_" . date("Ymd", $hier);
    if ($q->TABLE_EXISTS("MGREY_RTT")) {
        $array["NOW"] = '{this_hour}';
    }
    $array["today"] = '{today}';
    if ($q->TABLE_EXISTS($table_month)) {
        $array["hier"] = '{yesterday}';
    }
    if ($q->TABLE_EXISTS($table_month)) {
        $array["month"] = '{this_month}';
    }
    $fontsize = 18;
    while (list($num, $ligne) = each($array)) {
        $tab[] = "<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
    }
    $t = time();
    //
    echo build_artica_tabs($tab, "main_artica_miltergreylist_cnx", 1100) . "<script>LeftDesign('key-256-opac20');</script>";
}
Example #10
0
function tabs(){
	$page=CurrentPageName();
	$tpl=new templates();
	$users=new usersMenus();

	if(!$users->WIFIDOG_INSTALLED){
		echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>");
		return;
	}

	$array["popup"]='{self_register}';
	$array["smtp-params"]='{smtp_parameters}';
	$fontsize=18;
	
	$t=time();
	while (list ($num, $ligne) = each ($array) ){
		if($num=="members"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.webauth.members.php?members=yes\" style='font-size:$fontsize'><span>$ligne</span></a></li>\n");
			continue;
		}

		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=$t$YahooWinUri\" style='font-size:$fontsize'><span>$ligne</span></a></li>\n");
	}

	echo build_artica_tabs($html, "squid_hotspot_smtp")."<script>LeftDesign('wifi-white-256-opac20.png');</script>";


	
}
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $ID = $_GET["ID"];
    $t = $_GET["t"];
    $q = new mysql();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT groupname FROM haproxy_acls_groups WHERE ID='{$_GET["gpid"]}'", "artica_backup"));
    $title = $tpl->javascript_parse_text($ligne["groupname"]);
    if ($title == null) {
        $title = $tpl->javascript_parse_text("{group} {$ID}");
    }
    $array["popup"] = $title;
    $array["items"] = "{items}";
    while (list($num, $ligne) = each($array)) {
        if ($num == "popup") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?popup=yes&gpid={$_GET["gpid"]}\" style='font-size:18px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "items") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"haproxy.acls.items.php?gpid={$_GET["gpid"]}\" style='font-size:18px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
    }
    echo build_artica_tabs($html, "haproxy_groups_{$_GET["gpid"]}");
}
function tabs()
{
    $page = CurrentPageName();
    $users = new usersMenus();
    if (!$users->stunnel4_installed) {
        echo FATAL_ERROR_SHOW_128("{stunnel_not_installed}");
        die;
    }
    $tpl = new templates();
    $sock = new sockets();
    $page = CurrentPageName();
    $height = "850px";
    $array["status"] = '{status}';
    $array["rules"] = '{rules}';
    $style = "style='font-size:20px'";
    if (isset($_GET["font-size"])) {
        $style = "style='font-size:22px'";
    }
    while (list($num, $ligne) = each($array)) {
        if ($num == "rules") {
            $html[] = $tpl->_ENGINE_parse_body("<li {$style}>\n\t\t\t\t\t<a href=\\system.network.stunnel4.rules.php\">\n\t\t\t\t\t<span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "authentication") {
            $html[] = "<li {$style}><a href=\"postfix.index.php?popup-auth=yes&hostname={$hostname}\"><span>{$ligne}</span></a></li>\n";
            continue;
        }
        $html[] = "<li {$style}><a href=\"{$page}?{$num}=yes\"><span>{$ligne}</span></a></li>\n";
    }
    echo build_artica_tabs($html, "main_tabs_stunnel4", 1200) . "<script>LeftDesign('ssl-256-white.png');</script>";
}
Example #13
0
function websites_script_tab()
{
    $servername = $_GET["servername"];
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $array["conf"] = "{configuration}";
    $array["events"] = '{access_events}';
    $fontsize = 18;
    while (list($num, $ligne) = each($array)) {
        if ($num == "conf") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?website-script=yes&servername={$servername}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "events") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"nginx.access-events.php?servername={$servername}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "destinations") {
            $tab[] = $tpl->_ENGINE_parse_body("<li><a href=\"nginx.destinations.php?ID={$ID}\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $tab[] = "<li style='font-size:{$fontsize}px'><a href=\"{$page}?{$num}=yes&ID={$ID}\"><span >{$ligne}</span></a></li>\n";
    }
    $t = time();
    //
    echo build_artica_tabs($tab, "main_script_nginx_tabs");
}
Example #14
0
function tabs(){
	$sock=new sockets();
	$fontsize=16;
	$tpl=new templates();
	$page=CurrentPageName();
	$array["popup"]='{sources_files}';
	$array["parameters"]='{log_retention}';
	$array["schedule"]='{schedules}';

	
	
	
	while (list ($num, $ligne) = each ($array) ){
	
		if($num=="parameters"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.params.php?parameters=yes\" style='font-size:{$fontsize}px'><span>$ligne</span></a></li>\n");
			continue;
		
		}

		if($num=="schedule"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.databases.schedules.php?TaskType=54\" style='font-size:{$fontsize}px'><span>$ligne</span></a></li>\n");
			continue;
		
		}
		
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\" style='font-size:{$fontsize}px'><span>$ligne</span></a></li>\n");
	}
	
	echo build_artica_tabs($html, "main_squid_logs_sources");
	
}
Example #15
0
function popup()
{
    $q = new mysql();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $EnableZarafaMulti = $sock->GET_INFO("EnableZarafaMulti");
    $ZarafaDedicateMySQLServer = $sock->GET_INFO("ZarafaDedicateMySQLServer");
    if (!is_numeric($ZarafaDedicateMySQLServer)) {
        $ZarafaDedicateMySQLServer = 0;
    }
    $users = new usersMenus();
    if (!is_numeric($EnableZarafaMulti)) {
        $EnableZarafaMulti = 0;
    }
    $array["status"] = "{APP_Z_PUSH}";
    $array["www"] = "{webservers}";
    $array["update"] = "{update}";
    $fontsize = "font-size:24px;";
    while (list($num, $ligne) = each($array)) {
        if ($num == "www") {
            $html[] = "<li><a href=\"freeweb.servers.php?force-groupware=Z-PUSH\" style='{$fontsize}' ><span>{$ligne}</span></a></li>\n";
            continue;
        }
        $html[] = "<li><a href=\"{$page}?{$num}=yes\" style='{$fontsize}' ><span>{$ligne}</span></a></li>\n";
    }
    $html = build_artica_tabs($html, 'main_zarafazpush', 1490) . "\n\t\t<script>LeftDesign('push-mail-256-opac20.png');</script>";
    echo $html;
}
Example #16
0
	function popup(){
		$q=new mysql();
		$page=CurrentPageName();
		$tpl=new templates();
		$sock=new sockets();
		$EnableZarafaMulti=$sock->GET_INFO("EnableZarafaMulti");
		$ZarafaDedicateMySQLServer=$sock->GET_INFO("ZarafaDedicateMySQLServer");
		if(!is_numeric($ZarafaDedicateMySQLServer)){$ZarafaDedicateMySQLServer=0;}
		$users=new usersMenus();
		if(!is_numeric($EnableZarafaMulti)){$EnableZarafaMulti=0;}
	
		
		$array["webmail"]="{APP_ZARAFA_WEB}";
		$array["perfs"]="{performance}";
			
			
		$fontsize="font-size:16px;";
		while (list ($num, $ligne) = each ($array) ){
			$html[]="<li><a href=\"$page?$num=yes\" style='$fontsize' ><span>$ligne</span></a></li>\n";
		}
		$tabwidth=759;
	
		$html=build_artica_tabs($html,'main_zarafaweb',975)."
		<script>LeftDesign('webmail-256-white-opac20.png');</script>";
	
	echo $html;	
}
Example #17
0
function tabs()
{
    $sock = new sockets();
    $tpl = new templates();
    $INSTALLED = trim($sock->getFrameWork("squid.php?kaspersky-is-installed=yes"));
    if ($INSTALLED != "TRUE") {
        echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{not_installed}"));
        return;
    }
    $font_size = $_GET["font-size"];
    if ($font_size == null) {
        $font_size = "100%";
    }
    $tpl = new templates();
    $page = CurrentPageName();
    $users = new usersMenus();
    $array["service"] = "{service_events}";
    $array["update"] = "{update_events}";
    $font_size = "16px";
    https:
    //192.168.1.205:9000/
    while (list($num, $ligne) = each($array)) {
        if ($num == "update") {
            $tab[] = "<li><a href=\"Kav4Proxy.Update.Events.php?popup=yes\"><span style='font-size:{$font_size}'>{$ligne}</span></a></li>\n";
            continue;
        }
        $tab[] = "<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:{$font_size}'>{$ligne}</span></a></li>\n";
    }
    echo build_artica_tabs($tab, "main_kav4proxyevents");
}
Example #18
0
function tabs(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$users=new usersMenus();
	$array["parameters"]='{parameters}';
	
	$usersmenus=new usersMenus();
	if(!$usersmenus->SENSORS_INSTALLED){
		echo FATAL_ERROR_SHOW_128("{MODULES_NOT_INSTALLED}");
		die();
	}
	$tabsize="style='font-size:24px'";
	
	while (list ($num, $ligne) = each ($array) ){
		if($num=="greensql"){
			$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"greensql.php\"><span $tabsize>$ligne</span></a></li>\n");
			continue;
		}
	
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\"><span $tabsize>$ligne</span></a></li>\n");
	}
	
	
	echo build_artica_tabs($html, "main_config_sensors",1050)."<script>LeftDesign('temperature-256-white.png');</script>";	
	
}
Example #19
0
function tabs()
{
    $sock = new sockets();
    $fontsize = 22;
    $tpl = new templates();
    $page = CurrentPageName();
    $array["popup"] = '{legal_logs}';
    $array["parameters"] = '{log_retention}';
    $array["NAS_storage"] = '{NAS_storage}';
    $array["log_location"] = '{log_location}';
    $array["rotate_events"] = '{rotate_events}';
    while (list($num, $ligne) = each($array)) {
        if ($num == "parameters") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.params.php?parameters=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "NAS_storage") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.nas.storage.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "log_location") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.varlog.php?popup=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "rotate_events") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.rotate.events.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "main_squid_logs_sources");
}
function tab_ad(){
	$tpl=new templates();
	$page=CurrentPageName();
	$md5=$_GET["md5"];
	$title=$tpl->javascript_parse_text("{new_connection}");
	$array["popup"]=$title;
	if($md5<>null){
		$q=new mysql_squid_builder();
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT * FROM hotspot_activedirectory WHERE zmd5='$md5'"));
		$title=$ligne["hostname"];
		$array["popup"]=$title;
		$array["groups"]="{groups2}";
	}
	
	
	$fontsize=18;
	while (list ($num, $ligne) = each ($array) ){
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?popup-ad-$num=yes&t={$_GET["t"]}&md5=$md5\" style='font-size:$fontsize'><span>$ligne</span></a></li>\n");
	}
	
	echo build_artica_tabs($html, "hotspot_ad_tab$md5");
	
	
	
}
function tabs()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $array["parameters"] = "{parameters}";
    $array["clients"] = "{clients}";
    $array["events"] = "{events}";
    $array["artica-events"] = "{events}: Artica";
    $array["update"] = "{update}";
    $fontsize = 22;
    while (list($num, $ligne) = each($array)) {
        if ($num == "events") {
            $tab[] = "<li><a href=\"influx.events.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "artica-events") {
            $tab[] = "<li><a href=\"influx.artica-events.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "clients") {
            $tab[] = "<li><a href=\"influx.clients.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "update") {
            $tab[] = "<li><a href=\"influx.update.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
            continue;
        }
        $tab[] = "<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
    }
    $t = time();
    //
    echo build_artica_tabs($tab, "influxdb_main_table", 1490) . "<script>LeftDesign('management-console-256.png');</script>";
}
Example #22
0
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    if (!is_file("/usr/lib/ecap_adapter_gzip.so")) {
        echo FATAL_ERROR_SHOW_128("<div style='font-size:26px'>{ERROR_MISSING_MODULE_UPDATE_PROXY}</div>\n\t\t\t\t<center style='font-size:22px;margin:30px;font-weight:bold'>3.5.8-20150910-r13912 {or_above}</div>\n\t\t\t\t<p style='font-size:42px;text-align:right;margin-top:30px'>" . texttooltip("{update_proxy_engine}", "position:top:{proxy_engine_available_explain}", "javascript:LoadProxyUpdate();") . "</p>");
        die;
    }
    $tpl = new templates();
    $array["status"] = '{status}';
    $fontsize = "22";
    while (list($num, $ligne) = each($array)) {
        if ($num == "exclude") {
            $html[] = $tpl->_ENGINE_parse_body("<li>\n\t\t\t\t\t<a href=\"squid.hosts.blks.php?popup=yes&blk=6\" style='font-size:{$fontsize}'>\n\t\t\t\t\t<span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "exclude-www") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"c-icap.wwwex.php\" style='font-size:{$fontsize}'>\n\t\t\t\t\t\t\t<span style='font-size:{$fontsize}'>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize}px;'>\n\t\t\t\t<span style='font-size:{$fontsize}px;'>{$ligne}</span></a></li>\n");
    }
    $html = build_artica_tabs($html, 'main_ecapGzip_tabs', 1490) . "<script>LeftDesign('webfiltering-white-256-opac20.png');</script>";
    echo $html;
}
function tabs(){
	$page=CurrentPageName();
	$tpl=new templates();

	$array["parameters"]="{parameters}";
	$array["purge-bydate"]="{manual_purge}";
	$stylesize="style='font-size:16px'";
	$t=time();
	while (list ($num, $ligne) = each ($array) ){
	
		if($num=="parameters"){
			$html[]= $tpl->_ENGINE_parse_body("<li ><a href=\"miniadm.squiddb.php?settings-retention=yes\" $stylesize><span>$ligne</span></a></li>\n");
			continue;
				
		}
	
	
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=$t\" $stylesize><span>$ligne</span></a></li>\n");
	}
	
	
	
	echo build_artica_tabs($html, "tab_squid_statistics_purg");
	
	
	
}
function tabs(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$q=new mysql();
	
	
	$array["parameters"]="{parameters}";
	$array["storage"]='{storage}';

	$fontsize=18;
	while (list ($num, $ligne) = each ($array) ){

		if($num=="storage"){
			$tab[]= $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.storage.php\" style='font-size:{$fontsize}px'><span>$ligne</span></a></li>\n");
			continue;
		}
	
	
		$tab[]="<li style='font-size:{$fontsize}px'><a href=\"$page?$num=yes\"><span >$ligne</span></a></li>\n";
			
	}
	$t=time();
	echo build_artica_tabs($tab, "main_artica_squidaccesslogs",1100);
		
	
}
Example #25
0
function tabs()
{
    if (GET_CACHED(__FILE__, __FUNCTION__)) {
        return;
    }
    $squid = new squidbee();
    $tpl = new templates();
    $users = new usersMenus();
    $page = CurrentPageName();
    $sock = new sockets();
    $array["popup"] = '{parameters}';
    $array["schedules"] = '{schedules}';
    $array["events"] = '{events}';
    $fontsize = 18;
    $t = time();
    while (list($num, $ligne) = each($array)) {
        if ($num == "schedules") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"schedules.php?ForceTaskType=69\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "events") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"cyrus.watchdog-events.php\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}={$t}\" style='font-size:{$fontsize}'><span>{$ligne}</span></a></li>\n");
    }
    $html = build_artica_tabs($html, 'main_cyrus_backup');
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
function tabs()
{
    $sock = new sockets();
    $fontsize = 16;
    $tpl = new templates();
    $page = CurrentPageName();
    $date = date("Ym");
    $table = "{$date}_maccess";
    $q = new mysql_squid_builder();
    if (!$q->TABLE_EXISTS($table)) {
        echo FATAL_ERROR_SHOW_128("{no_table_see_support}");
        return;
    }
    $array["popup"] = '{members_this_month}';
    while (list($num, $ligne) = each($array)) {
        if ($num == "parameters") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.accesslogs.params.php?parameters=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "schedule") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.databases.schedules.php?TaskType=54\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:{$fontsize}px'><span>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "squid_users_profiling", 1100) . "<script>LeftDesign('user-stats-256.png');</script>";
}
Example #27
0
function tabs()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $array["client"] = "{client}";
    $EnableArticaMetaClient = intval($sock->GET_INFO("EnableArticaMetaClient"));
    $EnableArticaMetaServer = intval($sock->GET_INFO("EnableArticaMetaServer"));
    if ($EnableArticaMetaClient == 0) {
        $array["parameters"] = "{server}";
        $array["parameters-smtp"] = "{smtp_notifications}";
    }
    if ($EnableArticaMetaServer == 0) {
        $array["client"] = "{client}";
        unset($array["parameters-smtp"]);
    }
    if ($EnableArticaMetaServer == 1) {
        unset($array["client"]);
    }
    $fontsize = 28;
    while (list($num, $ligne) = each($array)) {
        if ($num == "hosts") {
            $tab[] = "<li><a href=\"artica-meta.hosts.php\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
            continue;
        }
        $tab[] = "<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:{$fontsize}px'>{$ligne}</span></a></li>\n";
    }
    $t = time();
    //
    echo build_artica_tabs($tab, "main_artica_meta", 1400) . "<script>LeftDesign('management-console-256.png');</script>";
}
function tabs(){
	$t=time();
	$page=CurrentPageName();
	$tpl=new templates();
	
	$array["settings"]="{global_settings}";
	$array["performance"]="{performance}";
	$array["SWAP"]="SWAP";
	$array["PING"]="PING";
	$array["DNS"]="DNS";
	$array["external-page"]="{external_page}";
	$array["smtp"]="{smtp_notifications}";
	$style="style='font-size:16px';";
	while (list ($num, $ligne) = each ($array) ){
		
		$html[]= $tpl->_ENGINE_parse_body("<li><a href=\"$page?$num=yes\"><span $style>$ligne</span></a></li>\n");
		
	}
	
	
	
	
	echo build_artica_tabs($html, "watchdog_settings_tabs");
	
	
	
}
function tabs()
{
    $html = GET_CACHED(__FILE__, __FUNCTION__, $_GET["newinterface"], TRUE);
    if ($html != null) {
        echo $html;
    }
    $page = CurrentPageName();
    $users = new usersMenus();
    $array["popup-main"] = "{BUILD_OPENVPN_CLIENT_CONFIG}";
    $array["help"] = "{help}";
    $font = "font-size:18px";
    $newinterface = "&newinterface=yes";
    while (list($num, $ligne) = each($array)) {
        if ($num == "OPENVPN_SCHEDULE_RUN") {
            $tab[] = "<li><a href=\"index.openvpn.schedule.php?popup=yes\"><span style='{$font}'>{$ligne}</span></a></li>\n";
            continue;
        }
        $tab[] = "<li><a href=\"{$page}?{$num}=yes{$newinterface}\"><span style='{$font}'>{$ligne}</span></a></li>\n";
    }
    $tpl = new templates();
    $html = build_artica_tabs($tab, "main_openvpn_builclientconfig");
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
Example #30
0
function popup()
{
    $q = new mysql();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $hostname = $_GET["hostname"];
    //
    $array["backup-status"] = "{backupemail_behavior}";
    $array["backup-options"] = '{options}';
    $array["backup-storage"] = '{storage}';
    $fontsize = "font-size:18px;";
    while (list($num, $ligne) = each($array)) {
        if ($num == "backup-options") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"postfix.archiver.php?hostname={$hostname}\" style='{$fontsize}'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "backup-status") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"postfix.archiver.php?hostname={$hostname}&status=yes\" style='{$fontsize}'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "backup-storage") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"postfix.archiver.database.php?hostname={$hostname}&status=yes\" style='{$fontsize}'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = "<li><a href=\"{$page}?{$num}=yes\" style='{$fontsize}' ><span>{$ligne}</span></a></li>\n";
    }
    $html = build_artica_tabs($html, 'main_backup_fly', 975) . "\n\t\t<script>LeftDesign('folder-256-backup-white-opac20.png');</script>";
    echo $html;
}