当前位置: 首页>>代码示例>>PHP>>正文


PHP GET_CACHED函数代码示例

本文整理汇总了PHP中GET_CACHED函数的典型用法代码示例。如果您正苦于以下问题:PHP GET_CACHED函数的具体用法?PHP GET_CACHED怎么用?PHP GET_CACHED使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GET_CACHED函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: refresh_service_status

function refresh_service_status()
{
    if (!$GLOBALS["VERBOSE"]) {
        if (GET_CACHED(__FILE__, __FUNCTION__, md5($_GET["refresh-service-status"]), false, 1)) {
            return;
        }
    }
    $refresh["C-ICAP"] = "APP_C_ICAP";
    if (preg_match("#SERVICE-STATUS-ROUND-(.+)#", $_GET["refresh-service-status"], $re)) {
        $tpl = new templates();
        $key = $re[1];
        if ($GLOBALS["VERBOSE"]) {
            echo "Prod: {$key}\n<br>";
        }
        $content = GetIniContent($key);
        if ($content == null) {
            if (!is_file("ressources/logs/global.status.ini")) {
                return;
            }
            $bsini = new Bs_IniHandler("ressources/logs/global.status.ini");
        } else {
            $bsini = new Bs_IniHandler();
            $bsini->loadString($content);
        }
        if ($bsini->_params[$key]["service_name"] == null) {
            return null;
        }
        $prod = $bsini->_params[$key]["service_name"];
        $status = DAEMON_STATUS_ROUND($key, $bsini);
        $html = $tpl->_ENGINE_parse_body($status);
        SET_CACHED(__FILE__, __FUNCTION__, md5($_GET["refresh-service-status"]), $html);
        echo $html;
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:Inotify.php

示例2: tabs

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;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:30,代码来源:cyrus.backup.php

示例3: 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;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:26,代码来源:index.openvpn.build.client.php

示例4: page

function page()
{
    $sock = new sockets();
    $EnableRemoteStatisticsAppliance = $sock->GET_INFO("EnableRemoteStatisticsAppliance");
    $MalwarePatrolDatabasesCount = $sock->getFrameWork("cmd.php?MalwarePatrolDatabasesCount=yes");
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $users = new usersMenus();
    $websitesnums = $q->COUNT_ROWS("visited_sites");
    $websitesnums = numberFormat($websitesnums, 0, "", " ");
    $sql = "DELETE FROM categorize WHERE LENGTH(pattern)=0";
    $q->QUERY_SQL($sql);
    $export = $q->COUNT_ROWS("categorize");
    $export = numberFormat($export, 0, "", " ");
    $categories = $q->COUNT_CATEGORIES();
    $categories = numberFormat($categories, 0, "", " ");
    $tablescat = $q->LIST_TABLES_CATEGORIES();
    $tablescatNUM = numberFormat(count($tablescat), 0, "", " ");
    $q = new mysql_squid_builder();
    $requests = $q->EVENTS_SUM();
    $requests = numberFormat($requests, 0, "", " ");
    $PhishingURIS = $q->COUNT_ROWS("uris_phishing");
    $PhishingURIS = numberFormat($PhishingURIS, 0, "", " ");
    $MalwaresURIS = $q->COUNT_ROWS("uris_malwares");
    $MalwaresURIS = numberFormat($MalwaresURIS, 0, "", " ");
    $Computers = $q->COUNT_ROWS("webfilters_nodes");
    $Computers = numberFormat($Computers, 0, "", " ");
    $DAYSNumbers = $q->COUNT_ROWS("tables_day");
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT SUM(totalsize) as tsize FROM tables_day"));
    $totalsize = FormatBytes($ligne["tsize"] / 1024);
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT AVG(cache_perfs) as pourc FROM tables_day"));
    $pref = round($ligne["pourc"]);
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(sitename) as tcount FROM visited_sites WHERE LENGTH(category)=0"));
    $websitesnumsNot = numberFormat($ligne["tcount"], 0, "", " ");
    $CachePermformance = $q->CachePerfHour();
    if ($CachePermformance > -1) {
        $color = "#E01313";
        if ($CachePermformance > 20) {
            $color = "#6DBB6A";
        }
        $cachePerfText = "\n\t\t<tr>\n\t\t<td valign='top' style='font-size:14px;'><b style='color:{$color}'>{$CachePermformance}%</b> {cache_performance} ({now})</td>\n\t\t</tr>\n\t\t";
    }
    $mouse = "OnMouseOver=\";this.style.cursor='pointer';\" OnMouseOut=\";this.style.cursor='default';\"";
    $submenu = "\t\n\t<tr>\n\t\t<td valign='top' style='font-size:14px'><b>{$totalsize}</b> {downloaded_flow}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' style='font-size:14px'><b>{$pref}%</b> {cache_performance}</td>\n\t</tr>\n\t";
    $main_table = "\n\t<table style='width:98%' class=form>\n\t<tr><td style='font-size:16px'>{statistics}::{status}</td></tr>\n\t{$cachePerfText}\n\t<tr>\n\t\t<td valign='top' style='font-size:14px;><b>{$DAYSNumbers}</b> {daysOfStatistics}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' style='font-size:14px'><b>{$requests}</b> {requests}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' style='font-size:14px'><b>{$Computers}</b> {computers}</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td valign='top' style='font-size:14px;'><b>{$websitesnums}</b> {visited_websites}</td>\n\t</tr>\t\n\n\t<tr>\n\t\t<td valign='top' style='font-size:14px;'><b>{$categories}</b> {websites_categorized}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top'  style='font-size:14px;'><b>{$PhishingURIS}</b> {phishing_uris}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td valign='top'  style='font-size:14px;'><b>{$MalwaresURIS}</b> {viruses_uris}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top'  style='font-size:14px;'><b>{$MalwarePatrolDatabasesCount}</b> Malware Patrol</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td valign='top'  style='font-size:14px;'><b>{$websitesnumsNot}</b> {not_categorized}</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td valign='top'  style='font-size:14px;'><b>{$tablescatNUM}</b> {categories}</td>\n\t</tr>\n\t</table>\t\n";
    $main_table = $tpl->_ENGINE_parse_body($main_table);
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $main_table);
    echo $main_table;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:53,代码来源:android.squid.stats.status.php

示例5: popup

function popup()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return null;
    }
    $page = CurrentPageName();
    $html = "<p style='font-size:13px'>{smtpd_sasl_exceptions_networks_text}<br>{smtpd_sasl_exceptions_networks_explain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t<div id='smtpd_sasl_exceptions_networks_list'></div>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<div id='smtpd_sasl_exceptions_toolbox'></div>\n\t\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\tLoadAjax('smtpd_sasl_exceptions_networks_list','{$page}?popup-list=yes');\n\t\tLoadAjax('smtpd_sasl_exceptions_toolbox','{$page}?popup-toolbox=yes');\n\t</script>\n\t";
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:artica,代码行数:12,代码来源:smtpd_sasl_exceptions_networks.php

示例6: popup_js

function popup_js()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return true;
    }
    $page = CurrentPageName();
    $js1 = file_get_contents("js/samba.js");
    $js2 = file_get_contents("js/json.js");
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{APP_SAMBA}');
    $idmd = 'SambaIndex_';
    //smb-status //dialogS_content
    $html = "var {$idmd}timerID  = null;\nvar {$idmd}timerID1  = null;\nvar {$idmd}tant=0;\nvar {$idmd}reste=0;\nvar {$idmd}timeout=0;\n\n\tfunction {$idmd}demarre(){\n\t\tif(!document.getElementById('main_samba_config')){return;}\n\t\t\n\t\t{$idmd}tant = {$idmd}tant+1;\n\t\t{$idmd}reste=10-{$idmd}tant;\n\t\tif ({$idmd}tant < 10 ) {                           \n\t\t\t{$idmd}timerID = setTimeout(\"{$idmd}demarre()\",3000);\n\t      } else {\n\t\t\t{$idmd}tant = 0;\n\t\t\t{$idmd}ChargeLogs();\n\t\t\t{$idmd}demarre();                                \n\t   }\n\t}\n\n\n\tfunction {$idmd}ChargeLogs(){\n\t\tLoadAjax('smb-status','{$page}?smb-status=yes');\n\t}\t\n\t\n\tfunction refresh_services(){\n\t\t{$idmd}ChargeLogs();\n\t}\n\t\n\tfunction StartPage(){\n\t\t\$('#BodyContent').load('{$page}?popup=yes');\n\t\t\n\t\n\t\t//YahooWinS(750,'{$page}?popup=yes','{$title}');\n\t\t//setTimeout(\"{$idmd}WaitToStart();\",500);\t\n\t\t\n\t}\n\t\n\tfunction {$idmd}WaitToStart(){\n\t\t{$idmd}timeout={$idmd}timeout+1;\n\t\tif({$idmd}timeout>30){alert('time-out');return ;}\n\t\tif(!document.getElementById('smb-status')){\n\t\t\tsetTimeout(\"{$idmd}WaitToStart();\",800);\n\t\t\treturn;\n\t\t}\n\t\t{$idmd}timeout=0;\n\t\tsetTimeout(\"{$idmd}ChargeLogs();\",500);\t\n\t\tsetTimeout(\"{$idmd}demarre()\",500);\t\n\t\n\t}\n\t\n\t{$js1}\n\t{$js2}\n\tStartPage();\n\t\n\t";
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:16,代码来源:fileshares.index.php

示例7: popup

function popup()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $ldap = new clladp();
    $usersnumber = $ldap->COUNT_DE_USERS();
    $ldap->ldap_close();
    $tpl = new templates();
    $users = $tpl->_ENGINE_parse_body("<i>{this_server_store}:&nbsp;<strong>{$usersnumber}</strong>&nbsp;{users}</i>");
    $page = CurrentPageName();
    $html = "<H1>{organizations}</H1>\n<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='{add_new_organisation_text}'>\n<div style='font-size:16px;text-align:left;padding-bottom:5px;border-bottom:1px solid #CCCCCC'>{about_organization}</div>\n<div style='font-size:11px;text-align:right;padding-top:5px;'><span id='countdeusers'>{$users}</span></div>\n<div id='orgs' style='width:720px;height:350px;overflow:auto'></div>\n\n";
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:artica,代码行数:17,代码来源:domains.index.php

示例8: js

function js(){
	if(GET_CACHED(__FILE__,__FUNCTION__,"js")){return;}
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{organizations}");
	$page=CurrentPageName();
	$html="
	var timeout=0;
	
	function LoadOrg(){
			
		$('#BodyContent').load('$page?js-pop=yes', function() {Orgfillpage();});
		//LoadWinORG('760','$page?js-pop=yes','$title');
		//setTimeout('Orgfillpage()',900);
	}
	
	function Orgfillpage(){
		timeout=timeout+1;
		if(timeout>10){return;}
		if(!document.getElementById('orgs')){
			setTimeout('Orgfillpage()',900);
			return;
		}
		LoadAjax('orgs','$page?ShowOrganizations=yes');
		OrgfillpageButton();
	}
	
	function OrgfillpageButton(){
	var content=document.getElementById('orgs').innerHTML;
	if(content.length<90){
		setTimeout('OrgfillpageButton()',900);
		return;
	}
	
	LoadAjax('butadm','$page?butadm=yes');
	
	}
	
	LoadOrg();
	";
	
	SET_CACHED(__FILE__,__FUNCTION__,"js",$html);
	echo $html;
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:44,代码来源:domains.index.php

示例9: quicklinks_postfix

function quicklinks_postfix()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $users = new usersMenus();
    $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance");
    $InnoDBFilePerTableAsk = $sock->GET_INFO("InnoDBFilePerTableAsk");
    if (!is_numeric($EnablePostfixMultiInstance)) {
        $EnablePostfixMultiInstance = 0;
    }
    if (!is_numeric($InnoDBFilePerTableAsk)) {
        $InnoDBFilePerTableAsk = 0;
    }
    $the_specified_module_is_not_installed = $tpl->javascript_parse_text("{the_specified_module_is_not_installed}");
    if ($users->POSTFIX_INSTALLED) {
        if ($users->AsPostfixAdministrator) {
            $tr[] = paragrapheWin("messaging-server-white-64.png", "{APP_POSTFIX}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','quicklinks.postfix.php?function=section_postfix')");
            $tr[] = paragrapheWin("64-transport-white.png", "{transport_table}", "AnimateDiv('BodyContent');\n\t\t\t\tLoadAjax('BodyContent','postfix.transport.table.php?hostname=master')");
        }
    }
    if ($users->POSTFIX_INSTALLED) {
        if ($users->ZARAFA_INSTALLED) {
            if ($users->AsMailBoxAdministrator) {
                $tr[] = paragrapheWin("zarafa-white-64.png", "{APP_ZARAFA}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','quicklinks.postfix.php?function=section_zarafa')");
                $tr[] = paragrapheWin("webmail-64.png", "WebMail", "AnimateDiv('BodyContent');LoadAjax('BodyContent','zarafa.webmail.php')");
                $tr[] = paragrapheWin("push-mail-64.png", "{smartphones}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','zarafa.zpush.php')");
            }
        }
    }
    //$postfix_multiple=$tpl->_ENGINE_parse_body(quicklinks_paragraphe("postfix-multi-48.png", "multiple_instances",null, "QuickLinkPostfixMulti()"));
    if ($users->POSTFIX_INSTALLED) {
        if ($users->cyrus_imapd_installed) {
            if ($users->AsMailBoxAdministrator) {
                $tr[] = paragrapheWin("bg-cyrus-white-64.png", "{mailboxes}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','cyrus.index.php?popup-index=yes');");
                if ($users->roundcube_installed) {
                    $tr[] = paragrapheWin("webmail-white-64.png", "WebMail", "Loadjs('roundcube.index.php?script=yes&in-front-ajax=yes&newinterface=yes');");
                } else {
                    $tr[] = paragrapheWin("64-deny-white.png", "WebMail", "alert('{$the_specified_module_is_not_installed}');");
                }
                $tr[] = paragrapheWin("database-check-64-white.png", "{backup}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','cyrus.backup.php?tabs=yes');");
            }
        }
        if ($users->AsQuarantineAdministrator) {
            $tr[] = paragrapheWin("quarantine-64-white.png", "{quarantine}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','domains.quarantine.php?SuperAdmin=yes');");
        }
    }
    //certified-64-white.png
    $opendkim = Paragraphe('certified-64.png', '{APP_OPENDKIM}', '{APP_OPENDKIM_TEXT}', "javascript:Loadjs('opendkim.php?mail=master')", null, 210, null, 0, true);
    $tr[] = paragrapheWin("folder-64-backup-white.png", "{backupemail_behavior}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','postfix.backup.fly.php?hostname=master')");
    $tr[] = paragrapheWin("certified-64-white.png", "{APP_OPENDKIM}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','opendkim.php?popup=yes&mail=master')");
    //$backup=Paragraphe('folder-64-backup-grey.png','{backupemail_behavior}','{feature_disabled}',"",null,210,100);
    //$backup=Paragraphe('folder-64-backup.png','{backupemail_behavior}','{backupemail_behavior_text}',"javascript:Loadjs('$page?script=backup')",null,210,100,0,true);
    if ($EnablePostfixMultiInstance == 0) {
        $postfix_multiple = null;
    }
    if (!$users->cyrus_imapd_installed) {
        $cyrus = null;
    }
    //$tr[]=$postfix_multiple;
    if ($users->POSTFIX_INSTALLED) {
        if ($users->AsPostfixAdministrator) {
            $tr[] = paragrapheWin("queue-64-white.png", "{queue_management}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','quicklinks.postfix.php?function=section_queue')");
            $tr[] = paragrapheWin("whitelisting-white-64.png", "{white list}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','quicklinks.postfix.php?function=section_whitelist')");
            if ($users->MAILMAN_INSTALLED) {
                if (!$users->LIGHT_INSTALL) {
                    $tr[] = paragrapheWin("mailing-white-64.png", "mailman", "Loadjs('mailman.php?script=yes')");
                }
            }
            $tr[] = paragrapheWin("fetch-white-64.png", "{APP_FETCHMAIL}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','fetchmail.index.php?quicklinks=yes');");
        }
    }
    $html = $tpl->_ENGINE_parse_body(CompileTr5_win($tr, true));
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:79,代码来源:quicklinks.php

示例10: main_network

function main_network(){
	if(GET_CACHED(__FILE__,__FUNCTION__,null)){return;}
	$users=new usersMenus();
	$fw=Paragraphe('folder-64-firewall-grey.png','{APP_IPTABLES}','{error_app_not_installed_disabled}','','error_app_not_installed_disabled');
	$nmap=Paragraphe('folder-64-nmap-grey.png','{APP_NMAP}','{error_app_not_installed_disabled}','','error_app_not_installed_disabled');
	$network=Paragraphe('network-connection2.png','{net_settings}','{net_settings_text}',"javascript:Loadjs('system.nic.config.php?js=yes')",'net_settings_text');
	$pdns=Buildicon64('DEF_ICO_PDNS');
	$crossroads=Paragraphe('load-blancing-64-grey.png','{APP_CROSSROADS}','{load_balancing_intro_text}',"");
	
	
	
	if($users->IPTABLES_INSTALLED){
			$fw=Paragraphe('folder-64-firewall.png','{APP_IPTABLES}','{APP_IPTABLES_TEXT}','iptables.index.php');
			}	
			
	if($users->HAMACHI_INSTALLED){
		$hamachi=Paragraphe('logmein_logo-64.gif','{APP_AMACHI}','{APP_AMACHI_TEXT}',"javascript:Loadjs('hamachi.php')");
	}
	
	
			
	if($users->nmap_installed){
			$nmap=Paragraphe('folder-64-nmap.png','{APP_NMAP}','{APP_NMAP_TEXT}','nmap.index.php');
			}

	$gateway=Paragraphe('relayhost.png','{APP_ARTICA_GAYTEWAY}','{APP_ARTICA_GAYTEWAY_TEXT}',"javascript:Loadjs('index.gateway.php?script=yes')");	
	$dhcp=Buildicon64('DEF_ICO_DHCP');
	
	if($users->OPENVPN_INSTALLED){
		$openvpn=Buildicon64('DEF_ICO_OPENVPN');
	}
	
	
	$EmergingThreats=Paragraphe('emerging-threads-64-grey.png','{EmergingThreats}','{EmergingThreats_text}');
	if($users->IPSET_INSTALLED){
		$EmergingThreats=Paragraphe('emerging-threads-64.png','{EmergingThreats}',
		'{EmergingThreats_text}',"javascript:Loadjs('system.EmergingThreats.php')");	
	}
	
	$IpBlocksA=Paragraphe('ipblock-64-grey.png','{block_countries}','{ipblocks_text}');
	if($users->IPSET_INSTALLED){
		$IpBlocksA=Paragraphe('ipblock-64.png','{block_countries}',
		'{ipblocks_text}',"javascript:Loadjs('system.ipblock.php')");	
	}	
	

	
	
	if(!$user->POWER_DNS_INSTALLED){$pdns=Paragraphe('dns-64-grey.png','{APP_PDNS}','{APP_PDNS_TEXT}');}
	

	
	if($users->KASPERSKY_SMTP_APPLIANCE){
		$openvpn=null;
		$dhcp=null;
		$nmap=null;
		$fw=null;
		$gateway=null;
	}
	
	if($user->crossroads_installed){
		$crossroads=Paragraphe('load-blancing-64.png','{APP_CROSSROADS}','{load_balancing_intro_text}',
		"javascript:Loadjs('crossroads.index.php')");
	}	
	
	$sock=new sockets();
	$EnableQOSInterface=$sock->GET_INFO("EnableQOSInterface");
	if($EnableQOSInterface==null){$EnableQOSInterface=1;}
	
	if($sock->GET_INFO("EnableQOSInterface")==1){
		$qos=Paragraphe("qos-64.png","{Q.O.S}","{qos_intro}","javascript:Loadjs('qos.php')");
		if(!$users->qos_tools_installed){
			$qos=Paragraphe("qos-64-grey.png","{Q.O.S}","{qos_intro}","");
		}		
	}
	
	if($users->KASPERSKY_WEB_APPLIANCE){
		$dhcp=null;
		$EmergingThreats=null;
		$fw=null;
		$nmap=null;
		$openvpn=null;
		
	}

	$tr[]=$network;
	$tr[]=$gateway;
	$tr[]=$dhcp;
	$tr[]=$qos;
	$tr[]=$pdns;
	$tr[]=$openvpn;
	$tr[]=$nmap;
	$tr[]=$crossroads;
	$tr[]=$fw;
	$tr[]=$EmergingThreats;
	$tr[]=$IpBlocksA;
	
	$tables[]="<table style='width:100%'><tr>";
	$t=0;
	while (list ($key, $line) = each ($tr) ){
//.........这里部分代码省略.........
开发者ID:rsd,项目名称:artica-1.5,代码行数:101,代码来源:system.index.php

示例11: startpage

function startpage()
{
    $html = GET_CACHED(__FILE__, __FUNCTION__, $_GET["newinterface"], TRUE);
    if ($html != null) {
        return $html;
    }
    $page = CurrentPageName();
    $users = new usersMenus();
    if (!$users->OPENVPN_INSTALLED) {
        echo FATAL_ERROR_SHOW_128("{OPENVPN_NOT_INSTALLED}");
        return;
    }
    $array["index"] = '{index}';
    //
    $array["server-settings"] = "{service_parameters}";
    $array["clients-scripts"] = "{clients_scripts}";
    $array["additional_routes"] = "{additional_routes}";
    $array["remote-sites"] = "{REMOTE_SITES_VPN}";
    $array["events-session"] = "{sessions}";
    $array["OPENVPN_SCHEDULE_RUN"] = "{OPENVPN_SCHEDULE_RUN}";
    $array["events"] = "{events}";
    $width = 755;
    if (isset($_GET["newinterface"])) {
        $width = "100%";
        $newinterface = "&newinterface=yes";
    }
    $font = "font-size:20px";
    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;
        }
        if ($num == "clients-scripts") {
            $tab[] = "<li><a href=\"index.openvpn.clients.php\"><span style='{$font}'>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "additional_routes") {
            $tab[] = "<li><a href=\"index.openvpn.routes.php\"><span style='{$font}'>{$ligne}</span></a></li>\n";
            continue;
        }
        if ($num == "remote-sites") {
            $tab[] = "<li><a href=\"openvpn.remotesites.php?infront=yes{$newinterface}\"><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_config", 1490);
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    return $html;
}
开发者ID:articatech,项目名称:artica,代码行数:53,代码来源:index.openvpn.php

示例12: ptx_status

function ptx_status($asroot=false){
	$page=CurrentPageName();
	if(GET_CACHED(__FILE__, __FUNCTION__,__FUNCTION__)){return;}
	
	
	$sock=new sockets();
	$DisableAnyCache=$sock->GET_INFO("DisableAnyCache");
	if(!is_numeric($DisableAnyCache)){$DisableAnyCache=0;}
	
	$SquidCacheLevel=$sock->GET_INFO("SquidCacheLevel");
	if(!is_numeric($SquidCacheLevel)){$SquidCacheLevel=4;}
	if($SquidCacheLevel==0){$DisableAnyCache=1;}
	
	
	$SquidBoosterMem=$sock->GET_INFO("SquidBoosterMem");
	if(!is_numeric($SquidBoosterMem)){$SquidBoosterMem=0;}
		
		$ptxt="<a href=\"javascript:blur();\" 
		OnClick=\"javascript:Loadjs('squid.booster.php');\" 
		style='font-size:12px;text-decoration:underline'>{squid_booster}</a>";
	
	if($SquidBoosterMem>0){
		if($DisableAnyCache==0){
			
				$pourc=$sock->getFrameWork("squid.php?boosterpourc=yes");
				$ptxt="
				<table>
					<tr>
						<td>$ptxt</td>
						<td>". pourcentage($pourc)."</td>
					</tr>
				</table>";
			}
		
		
	}	
	
	SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $ptxt."<script>UnlockPage();</script>");
	if($asroot){
		
		return;
	}
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($ptxt)."<script>UnlockPage();</script>";
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:47,代码来源:squid.main.quicklinks.php

示例13: rttm_logs

function rttm_logs()
{
    if (!isset($_GET["force-refresh"])) {
        if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
            return null;
        }
    }
    $sql = __sql_domain($_GET["ou"]);
    $q = new mysql();
    $results = $q->QUERY_SQL($sql, "artica_events");
    while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
        $count = $count + 1;
        $tr = $tr . format_line($ligne);
    }
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body("\n\t<hr><div style='text-align:right;padding:4px'>" . imgtootltip("refresh-24.png", "{refresh}", "RefreshRTMMTableForce()") . "</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<th>&nbsp;</th>\n\t\t<th>{date}</th>\n\t\t<th>{from}</th>\n\t\t<th>&nbsp;</th>\n\t\t<th>{to}</th>\n\t\t<th>{status}</th>\n\t</tr>\n\t{$tr}</table>");
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:19,代码来源:domains.postfix.multi.php

示例14: main_graphs

function main_graphs()
{
    if (GET_CACHED(__FILE__, __FUNCTION__)) {
        return;
    }
    $page = CurrentPageName();
    $t = time() . rand(0, time());
    $html = "\n\t<div id='{$t}-1' style='width:990px;height:450px'></div>\n\t\n\t<div id='{$t}-2' style='width:990px;height:450px'></div>\n\t\n\t<div id='{$t}-3' style='width:990px;height:450px'></div>\n\t<script>\n\t\tAnimateDiv('{$t}-1');\n\t\tAnimateDiv('{$t}-2');\n\t\tAnimateDiv('{$t}-3');\n\t\t\n\t\tfunction F1{$t}(){\n\t\t\tLoadjs('{$page}?graph1=yes&container={$t}-1');\n\t\t}\n\t\t\n\t\tfunction F2{$t}(){\n\t\t\tLoadjs('{$page}?graph2=yes&container={$t}-2');\n\t\t}\t\t\n\n\t\t\n\t\tfunction F3{$t}(){\n\t\t\tLoadjs('{$page}?graph3=yes&container={$t}-3');\n\t\t}\t\t\n\t\tsetTimeout('F1{$t}()',500);\n\t\tsetTimeout('F2{$t}()',1000);\n\t\tsetTimeout('F3{$t}()',1500);\n\t\t\n\t</script>\n\t";
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:11,代码来源:miniadm.webstats.youtube.php

示例15: popup_status

function popup_status(){
	
	if(GET_CACHED(__FILE__, __FUNCTION__)){return;}
	
	$page=CurrentPageName();
	$tpl=new templates();	
	$sock=new sockets();
	$datas=base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes'));
	
	$ini=new Bs_IniHandler();
	$ini->loadString($datas);
	$users=new usersMenus();
	if($users->YAFFAS_INSTALLED){
		$yaffas="<div class=text-info>{APP_YAFFAS_TEXT}</div>";
	}
	if($ini->_params["APP_ZARAFA"]["master_version"]==null){unset($ini->_params["APP_ZARAFA"]["master_version"]);}
	
	if(!isset($ini->_params["APP_ZARAFA"]["master_version"])){
		
		$datas=base64_decode($sock->getFrameWork('cmd.php?zarafa-status=yes'));
		$ini->loadString($datas);
	}
	

	
	
	$html="
	<table style='width:100%'>
	<tr>
		<td valign='top' width=1%><span id='zarafa-box'></span></td>
		<td valign='top' width=99%>
			<H3 style='font-size:22px;font-weight:bold'>{APP_ZARAFA} v{$ini->_params["APP_ZARAFA"]["master_version"]}</H3>
			<div id='zarafa-error' style='color:#FB0808;font-weight:bold;font-size:14px'></div>
			<div class=text-info style='font-size:14px'>{APP_ZARAFA_TEXT}</div>$yaffas
			<table style='width:100%'>
			<tr>
				<td width=1%><img src='img/arrow-right-24.png'></td>
				<td nowrap>
					<a href=\"javascript:blur();\" 
					OnClick=\"javascript:Loadjs('postfix.events.new.php?js-zarafa=yes');\" 
					style='font-size:13px;text-decoration:underline'>{APP_ZARAFA}:{events}</a>
				</td>
			</tr>
			<tr>
				<td width=1%><img src='img/arrow-right-24.png'></td>
				<td nowrap><a href=\"javascript:blur();\" 
				OnClick=\"javascript:Loadjs('zarafa.audit.logs.php');\" 
				style='font-size:13px;text-decoration:underline'>{APP_ZARAFA}:{audit}</a></td>
			</tr>	
			<tr>
				<td width=1%><span id='mysql-dedie-img'></span></td>
				<td nowrap><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('ZarafaDB.wizard.php')\" id='mysql-dedie-text' style='font-size:13px;text-decoration:underline'></a></td>
			</tr>				
		</table>
		</td>
	</tr>
	</table>
	<div id='zarafa-services-status' style='width:100%;'></div>
	
	
	<script>
		LoadAjax('zarafa-services-status','$page?services-status=yes');
		LoadAjaxTiny('zarafa-box','$page?zarafa-box=yes');
	</script>
	";
	$html=$tpl->_ENGINE_parse_body($html);
	SET_CACHED(__FILE__, __FUNCTION__, null, $html);
	echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:69,代码来源:zarafa.index.php


注:本文中的GET_CACHED函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。