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


PHP CompileTr3函数代码示例

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


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

示例1: page

function page()
{
    $tr = array();
    $tr[] = paragraph_youtube("Use Parent proxy in acls", "//www.youtube.com/embed/-zqElEzAR08?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Block FaceBook during productive time", "//www.youtube.com/embed/tuuM_jC0cBs?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Artica Webfiltering databases in acls rules", "//www.youtube.com/embed/1JZUHrQzdNc?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Allow only domains gob.mx, .gob", "//www.youtube.com/embed/sPaMjM6g9fA?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Browsers & Applications Web filter rules", "//www.youtube.com/embed/Nt_zW4JNHkI?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $acls = CompileTr3($tr);
    $tr = array();
    $tr[] = paragraph_youtube("Starting Guide", "//www.youtube.com/embed/7ZUqX8_5NGk?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("How to connect Proxy to Active Directory ?", "//www.youtube.com/embed/C106liv9GAk?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("How to turn your proxy to transparent mode ?", "//www.youtube.com/embed/gh5oh_gYJX8?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("NAT compatibility mode + Zywall", "//www.youtube.com/embed/IaHB9HVLFKI?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("How to use a proxy parent ?", "//www.youtube.com/embed/J8Z_5k_J-9w?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("HTTP compression with remote sites", "//www.youtube.com/embed/oGdezHsmeH0?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Multiple Processors wihout disk caches - howto", "//www.youtube.com/embed/2cA-fB2Wo20?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("Youtube and video streaming caching feature - howto", "//www.youtube.com/embed/EUvW28nmDVg?list=UUYbS4gGDNP62LsEuDWOMN1Q");
    $tr[] = paragraph_youtube("TSE/RDP Gateway Howto", "//www.youtube.com/embed/1_z9IF-Ghtc");
    $A = CompileTr3($tr);
    $tr = array();
    $tr[] = paragraph_youtube("MAC to Member translation feature", "//www.youtube.com/embed/_DGLLTvamF4");
    $A1 = CompileTr3($tr);
    $tr = array();
    $tr[] = paragraph_youtube("How to Bridge 2 network interfaces ?", "//www.youtube.com/embed/pvBWxOUl4OU");
    $tr[] = paragraph_youtube("Play with the Firewall - basic demonstration", "//www.youtube.com/embed/Qk1em2kOBHQ");
    $tr[] = paragraph_youtube("Traffic analysis daemon - howto", "//www.youtube.com/embed/LiHE5lK58Qc");
    $B = CompileTr3($tr);
    $tr = array();
    $tr[] = paragraph_youtube("Update Manually Artica software", "//www.youtube.com/embed/1fxAVMpcrXs");
    $tr[] = paragraph_youtube("Update the Proxy version Software", "//www.youtube.com/embed/1x00u3AfIDU");
    $C = CompileTr3($tr);
    $html = "\n\t<div style='font-size:24px;margin-bottom:15px'>Proxy Architectures & Settings</div>{$A}\n\t<div style='font-size:24px;margin-bottom:15px'>Advanced security rules ( ACLs )</div>{$acls}\n\t\n\t\n\t<div style='font-size:24px;margin-bottom:15px'>Proxy Monitoring</div>{$A1}\n\t\n\t\n\t<div style='font-size:24px;margin-bottom:15px;margin-top:20px'>Networks videos</div>{$B}\n\t<div style='font-size:24px;margin-bottom:15px;margin-top:20px'>Maintain</div>{$C}\t\t\n\t\t\t\n\t";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:35,代码来源:admin.index.startingguide.squid.php

示例2: internalnets

function internalnets()
{
    $tpl = new templates();
    $users = new usersMenus();
    $page = CurrentPageName();
    $sock = new sockets();
    $fontsize = 16;
    $add_categories = Paragraphe("64-categories-add.png", "{add_category}", "{add_category_text}", "AddCategory(0)");
    $html = "<div class=explain style='font-size:14px'>{banned_categories_explain}</div>";
    $tr[] = $add_categories;
    $table = CompileTr3($tr);
    echo "<div class=form>" . $tpl->_ENGINE_parse_body("{$html}{$table}") . "</div>";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:13,代码来源:squid.users.browser.php

示例3: squid

function squid()
{
    $templates_error = Paragraphe('squid-templates-64.png', '{squid_templates_error}', '{squid_templates_error_text}', "javascript:Loadjs('squid.templates.php')");
    $tr[] = $authenticate_users;
    $tr[] = $blackcomputer;
    $tr[] = $whitecomputer;
    $tr[] = $proxy_pac;
    $tr[] = $proxy_pac_rules;
    $tr[] = $APP_SQUIDKERAUTH;
    $tr[] = $templates_error;
    $html = "\n\t\n\t<center><div style='width:700px'>" . CompileTr3($tr) . "</div></center>";
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:15,代码来源:squid.stats-appliance-master.php

示例4: content2

function content2()
{
    if (isset($_SESSION[__FILE__][__FUNCTION__])) {
        echo $_SESSION[__FILE__][__FUNCTION__];
        return;
    }
    $tpl = new templates();
    $servers = $_SESSION["VIRTUALS_SERVERS"];
    while (list($key, $val) = each($servers)) {
        $tR[] = Paragraphe("blue-server.png", "{$key}", "{manage_this_file_server}", "miniadm.samba-virtual.php?hostname={$key}");
    }
    $content = CompileTr3($tR, "none");
    $html = "<div class=BodyContent><center><div style='width:700px'>{$content}</div></center></div>";
    $html = $tpl->_ENGINE_parse_body($html);
    $_SESSION[__FILE__][__FUNCTION__] = $html;
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:17,代码来源:miniadm.samba-multiple.php

示例5: main_switch_status

function main_switch_status(){
	$switch=$_GET["eth"];
	$tpl=new templates();
	$sock=new sockets();
	$datas=$sock->getFrameWork("vde.php?switch-main-status=$switch");
	$ini=new Bs_IniHandler();
	$ini->loadString($datas);
	$f[]=DAEMON_STATUS_ROUND("VDE_$switch",$ini,null,0);
	$f[]=DAEMON_STATUS_ROUND("VDHOOK_$switch",$ini,null,0);
	
	$install=button("{install_virtual_switch}",
	"Loadjs('virtualswitch.install.php?switch=$switch')",18);
	
	$html="<table style='width:100%'>
	<tr><td width=50%>$install</td>
	</tr>
	</table>".CompileTr3($f);
	echo $tpl->_ENGINE_parse_body($html);
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:20,代码来源:virtualswitch.php

示例6: status

function status()
{
    $tpl = new templates();
    $sock = new sockets();
    $EnablePDNS = $sock->GET_INFO("EnablePDNS");
    if (!is_numeric($EnablePDNS)) {
        $EnablePDNS = 0;
    }
    if ($EnablePDNS == 0) {
        echo $tpl->_ENGINE_parse_body("<p class=text-error>{error_powerdns_disabled}</p>");
        return;
    }
    $page = CurrentPageName();
    $datas = base64_decode($sock->getFrameWork("services.php?pdns-status=yes"));
    $ini = new Bs_IniHandler();
    $ini->loadString($datas);
    $tr[] = DAEMON_STATUS_ROUND("APP_PDNS", $ini, null);
    $tr[] = DAEMON_STATUS_ROUND("APP_PDNS_INSTANCE", $ini, null);
    $tr[] = DAEMON_STATUS_ROUND("PDNS_RECURSOR", $ini, null);
    echo "<center><div style='width:850px'>" . $tpl->_ENGINE_parse_body(CompileTr3($tr, true)) . "</div></center>";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:21,代码来源:miniadm.PowerDNS.php

示例7: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $movefolder = Paragraphe('folder-storage-64.png', '{storage_directory}', '{change_mysql_directory_text}', "javascript:YahooWin3(650,'{$page}?mysql-dir=yes','{storage_directory}');", null);
    $tasks = Paragraphe('processor-64.png', '{processes_list}', '{processes_list_mysql_explain}', "javascript:Loadjs('zarafa.dabatase.processlist.php');", null);
    $trash = Paragraphe("database-linker-delete-64.png", "{REMOVE_DATABASE}", "{REMOVE_DATABASE_ZARAFA_TEXT}", "javascript:REMOVE_DATABASE()");
    // mysqladmin --socket /var/run/mysqld/zarafa-db.sock -u root processlist
    $sock = new sockets();
    $ZarafaDedicateMySQLServer = intval($sock->GET_INFO("ZarafaDedicateMySQLServer"));
    if ($ZarafaDedicateMySQLServer == 1) {
        $trash = Paragraphe("database-linker-delete-64.png", "{REMOVE_DATABASE}", "{REMOVE_DATABASE_ZARAFA_TEXT}", "javascript:Loadjs('zarafa.trash.php')");
    }
    $tr[] = $movefolder;
    $tr[] = $restore;
    $tr[] = $tasks;
    $tr[] = $trash;
    $confirm_remove_zarafa_db = $tpl->javascript_parse_text("{confirm_remove_zarafa_db}");
    $table = CompileTr3($tr, "form");
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><div id='dbsize' style=width:300px></div></td>\t\t\n\t<td valign='top'><div style=width:550px><center>{$table}</center></div></td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\t\tLoadAjaxTiny('dbsize','{$page}?dbsize=yes&refresh=dbsize');\n\t\t\n\nvar x_REMOVE_DATABASE=function(obj){\n      var tempvalue=obj.responseText;\n      if(tempvalue.length>5){alert(tempvalue);}\n     \tRefreshTab('main_config_zarafa');\n      }\t\n\t\t\n\tfunction REMOVE_DATABASE(){\n\t\tif(confirm('{$confirm_remove_zarafa_db}')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('remove-db','1');\n\t\t\tXHR.sendAndLoad('zarafa.tools.php', 'POST',x_REMOVE_DATABASE);\n\t\t\t}\n\t}\n\n\t\t\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:23,代码来源:zarafa.database.php

示例8: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $users = new usersMenus();
    $ARRAY = unserialize(base64_decode($sock->getFrameWork("squid.php?ps-aux-squid=yes")));
    $CPU_NUM = count($ARRAY);
    $t = time();
    $error = null;
    if (!$users->CORP_LICENSE) {
        $error = "<p class=text-error>{multiprocessor_performance_no_license}</p>";
    }
    for ($i = 0; $i < $CPU_NUM; $i++) {
        $title = "CPU #<strong>{$i}</strong>";
        $titleM = "{memory}";
        if ($i == 0) {
            $title = "Master CPU";
        }
        if ($i == 0) {
            $titleM = "{memory}";
        }
        $CPU = $ARRAY[$i]["CPU"];
        $MEM = $ARRAY[$i]["MEM"];
        if (!is_numeric($CPU)) {
            $CPU = 0;
        }
        if (!is_numeric($MEM)) {
            $MEM = 0;
        }
        $HTML[] = "\n\t\t<div style='font-size:18px;margin-top:20px;margin-bottom:5px'><img src='img/processor-24.png' style='float:left:margin:5px'>&nbsp;&nbsp;{$title} -&nbsp;<span id='TEXTC-{$i}-{$t}'>{$CPU}</span>%</div>\t\n\t\t<div id='progressC-{$i}-{$t}' style='height:35px'></div>\n\t\t<div style='font-size:18px;margin-top:20px;margin-bottom:5px'>{$titleM} -&nbsp;<span id='TEXTM-{$i}-{$t}'>{$MEM}</span>%</div>\n\t\t<div id='progressM-{$i}-{$t}' style='height:35px'></div>\n\t\t</div>";
        $JS[] = "\$('#progressC-{$i}-{$t}').progressbar({ value: {$CPU} });";
        $JS[] = "\$('#progressM-{$i}-{$t}').progressbar({ value: {$MEM} });";
    }
    $html = "{$error}<div style='width:93%;margin-left:5px;margin-right:5px' class=form>\n\t<input type='hidden' id='pointer-{$t}' value='11'>\n\t<div style='font-size:22px;margin-bottom:15px'>{multiprocessor_performance}<div>" . CompileTr3($HTML, true) . "\n\t<script>\n\t" . @implode("\n", $JS) . "\n\tLoadjs('{$page}?ping=yes&t={$t}');\t\t\n\t</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:37,代码来源:squid.task.monitor.php

示例9: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $blackbox = new blackboxes($_GET["nodeid"]);
    $squid = new squidbee();
    $hostid = $_GET["hostid"];
    $t = time();
    $tpl = new templates();
    $t = time();
    $tr = array();
    $ini = new Bs_IniHandler();
    $ini->loadString($blackbox->SquidSMPStatus);
    while (list($index, $line) = each($ini->_params)) {
        if ($GLOBALS["VERBOSE"]) {
            echo __FUNCTION__ . "::" . __LINE__ . "::{$index} -> DAEMON_STATUS_ROUND<br>\n";
        }
        $tr[] = DAEMON_STATUS_ROUND($index, $ini, null, 1);
    }
    if (count($tr) > 0) {
        $tr[] = squid_booster_smp($blackbox->BoosterSMPStatus);
        $smpstatus = CompileTr3($tr);
    }
    $actions[] = Paragraphe32("reload_proxy_service", "reload_proxy_service_text", "SquidNodeReload{$t}()", "reload-32.png");
    $actions[] = Paragraphe32("restart_proxy_service", "restart_proxy_service_text", "SquidNodeRestart{$t}()", "service-restart-32.png");
    $actions[] = Paragraphe32("reconfigure_proxy_service", "reconfigure_proxy_service_text", "SquidNodeReconf{$t}()", "reconfigure-32.png");
    $actions[] = Paragraphe32("configuration_file", "display_generated_configuration_file", "Loadjs('nodes.squid.conf.php?nodeid={$_GET["nodeid"]}')", "script-32.png");
    $action = CompileTr3($actions);
    $nodes_names = $squid->visible_hostname;
    if (isset($squid->nodes_names[$hostid])) {
        $nodes_names = $squid->nodes_names[$hostid];
    }
    $html = "\n\t<div id='{$t}'></div>\n\t<table style='width:99%' class=form>\n\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:14px'>{ipaddr}:</td>\n\t\t\t\t<td><strong style='font-size:14px'><strong style='font-size:14px'>{$blackbox->ipaddress}:{$blackbox->port}</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:14px'>{APP_SQUID}:</td>\n\t\t\t\t<td><strong style='font-size:14px'><strong style='font-size:14px'>{$blackbox->squid_version}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:14px'>{visible_hostname}:</td>\n\t\t\t\t<td><strong style='font-size:14px'><strong style='font-size:14px'>\n\t\t\t\t\t<a href=\"javascript:Loadjs('{$page}?visible-hostname-js=yes&hostid={$hostid}&nodeid={$_GET["nodeid"]}');\"\n\t\t\t\t\t style='font-size:14px;text-decoration:underline;font-weight:bold'>{$nodes_names}</a>\n\t\t\t\t\t</td>\n\t\t\t</tr>\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:14px'>{last_status}:</td>\n\t\t\t\t<td><strong style='font-size:14px'>{$blackbox->laststatus}</td>\n\t\t\t</tr>\t\t\n\t\t\t</table>\n\t\t\n\t\t\n\t\t\n\t{$smpstatus}\n\t{$action}\n\t\n\t<script>\n\tvar x_SquidNodeReload{$t}= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tif (res.length>3){alert(res);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\tif(document.getElementById('main_squid_quicklinks_tabs{$_GET["nodeid"]}')){\n\t\t\tRefreshTab('main_squid_quicklinks_tabs{$_GET["nodeid"]}');\n\t\t}\n\t}\t\n\n\n\tfunction SquidNodeReload{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('reconfigure-squid','{$hostid}');\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SquidNodeReload{$t});\n\t}\n\t\n\tfunction SquidNodeRestart{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('restart-squid','{$hostid}');\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SquidNodeReload{$t});\n\t}\n\n\tfunction SquidNodeReconf{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('reconf-squid','{$hostid}');\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SquidNodeReload{$t});\t\n\t\n\t}\n\t\n\tLoadAjax('{$t}-filters','{$page}?filters-specific=yes&hostid={$hostid}');\n\t\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:35,代码来源:nodes.squid.status.php

示例10: hd_tasks

function hd_tasks()
{
    $dev = $_GET["dev"];
    $users = new usersMenus();
    $tpl = new templates();
    $sock = new sockets();
    $page = CurrentPageName();
    if (!is_file('ressources/usb.scan.inc')) {
        $sock->getFrameWork("cmd.php?usb-scan-write=yes");
    }
    include_once 'ressources/usb.scan.inc';
    if (!isset($_GLOBAL["disks_list"][$dev])) {
        return $tpl->_ENGINE_parse_body("<center><H2>{UNABLE_TO_OBTAIN_INFORMATIONS_FROM}:{$dev}</H2></center>");
    }
    $dev_enc = urlencode($dev);
    $array = $_GLOBAL["disks_list"];
    $mounted = $array["{$dev}"]["PARTITIONS"]["{$dev}1"]["MOUNTED"];
    //print_r($array);
    $remove_disk = null;
    $BuildBigParts = Paragraphe("hd-toolbar-add-64.png", "{macro_build_bigpart}", "{macro_build_bigpart_explain}", "javascript:BuildBigPartition('{$dev}')");
    $lvm_master_disabled = Paragraphe("hd-toolbar-lvm-add-64-grey.png", "{macro_build_lvm}", "{macro_build_lvm_explain}");
    $buildPartition_disabled = Paragraphe("hd-toolbar-add-64-grey.png", "{macro_build_bigpart}", "{macro_build_bigpart_explain}");
    if ($mounted != null) {
        if ($mounted != "/") {
            $remove_disk = Paragraphe("disk-64-delete.png", "{macro_remove_disk}", "{macro_remove_disk_explain}", "javascript:Loadjs('{$page}?unlink-disk-js={$dev_enc}',true)");
        }
    }
    $intro[] = "<table style='width:99%' class=form>";
    while (list($xdevPart, $ligne) = each($_GLOBAL["disks_list"][$dev]["PARTITIONS"])) {
        $blkidArray = unserialize(base64_decode($sock->getFrameWork("services.php?blkid={$xdevPart}")));
        $icon = imgtootltip("mailbox_hd.png", "Loadjs('system.internal.partition.php?dev={$xdevPart}')", "{$xdevPart}");
        $href = "<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('system.internal.partition.php?dev={$xdevPart}')\"\n\t\tstyle='font-size:13px;font-weight:bold;text-decoration:underline'>";
        $intro[] = "<tr>\n\t\t<td style='font-size:13px;font-weight:bold'>{$icon}</td>\n\t\t<td class=legend style='font-size:13px'>UUID:</td>\n\t\t<td style='font-size:13px;font-weight:bold'>{$href}{$blkidArray["UUID"]}</a></td>\n\t\t<td class=legend style='font-size:13px' width=1%>&nbsp;|&nbsp;</td>\n\t\t<td class=legend style='font-size:13px'>{xtype}:</td>\n\t\t<td style='font-size:13px;font-weight:bold'>{$href}{$blkidArray["TYPE"]}</a></td>\n\t\t<td class=legend style='font-size:13px' width=1%>&nbsp;|&nbsp;</td>\n\t\t<td class=legend style='font-size:13px'>{label}:</td>\n\t\t<td style='font-size:13px;font-weight:bold'>{$href}{$blkidArray["LABEL"]}</a></td>\n\t</tr>";
    }
    $intro[] = "</table>";
    $introImpl = @implode("", $intro);
    if ($users->LVM_INSTALLED) {
        $lvm_master = Paragraphe("hd-toolbar-lvm-add-64.png", "{macro_build_lvm}", "{macro_build_lvm_explain}", "javascript:pvcreate_dev('{$dev}')");
        $hash = unserialize(base64_decode($sock->getFrameWork("cmd.php?lvmdiskscan=yes")));
        if ($hash[$dev] != null) {
            $lvm_master = $lvm_master_disabled;
        }
    } else {
        $lvm_master = $lvm_master_disabled;
    }
    if ($mounted == '/') {
        $BuildBigParts = $buildPartition_disabled;
        $lvm_master = $lvm_master_disabled;
    }
    $tpl = new templates();
    $tr[] = $BuildBigParts;
    $tr[] = $remove_disk;
    $tr[] = $lvm_master;
    $tables = CompileTr3($tr);
    $html = "\n{$introImpl}\n<div id='HardDrivesTasksSection'></div>\n<center>\n<div style='width:700px'>{$tables}</div>\n</center>";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html, "postfix.plugins.php");
    return $datas;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:59,代码来源:system.internal.disks.php

示例11: transparent_help

function transparent_help(){
	
			
	$tr[]=Paragraphe("youtube-play-64.png", "Video", 
	"Proxy Transparent: Setup the Proxy in transparent mode with SSL interception","http://youtu.be/nn5R6CqkHk8",null,250);
			
	$tr[]=Paragraphe("youtube-play-64.png", "Video",
	"Proxy Transparent: MAN-IN-THE-MIDDLE with Dynamic SSL Certificate Generation feature",
	"http://youtu.be/vFYmYw6t9EM",null,250);

	$tr[]=Paragraphe("youtube-play-64.png", "Video",
	"Proxy Transparent: SSL Traffic inspection With Kaspersky",
	"http://youtu.be/9t5B91rllrA",null,250);
			
	
	echo "<center style='width:80%'>".CompileTr3($tr)."</center>";
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:18,代码来源:squid.newbee.php

示例12: proxy_service

function proxy_service()
{
    $defaultsize = 250;
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $users = new usersMenus();
    $seconds = $tpl->javascript_parse_text("{seconds}");
    $server_all_kbytes_in = $tpl->javascript_parse_text("{server_all_kbytes_in}");
    $server_all_kbytes_out = $tpl->javascript_parse_text("{server_all_kbytes_out}");
    $active_requests = $tpl->javascript_parse_text("{active_requests}");
    $members = $tpl->_ENGINE_parse_body("{members}");
    $ipaddr = $tpl->_ENGINE_parse_body("{ipaddr}");
    $cpunum = intval($users->CPU_NUMBER);
    $maxload = $cpunum + 1;
    $parameters_link = null;
    $Storage_Capacity = $tpl->javascript_parse_text("{Storage_Capacity}");
    $parameters = $tpl->_ENGINE_parse_body("{parameters}");
    $t = $_GET["t"];
    $currentload = "<canvas id='CurrentLoad' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>Current System load<span id='CurrentLoad-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $Memory = "<canvas id='realMemory' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>System Memory Usage<span id='realMemory-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $cpuUSage = "<canvas id='CpuUsage' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>Proxy CPU Usage<span id='CpuUsage-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $TotalAccounted = "<canvas id='TotalAccounted' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>Proxy Memory Usage<span id='TotalAccounted-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $HttpRequests = "<canvas id='HttpRequests' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>HTTP Requests/{$seconds}<span id='HttpRequests-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $ActiveRequests = "<canvas id='ActiveRequests' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>{$active_requests}<span id='ActiveRequests-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $ActiveRequestsMembers = "<canvas id='ActiveRequestsMembers' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>{$active_requests} {$members}<span id='ActiveRequestsMembers-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $ActiveRequestsIpaddr = "<canvas id='ActiveRequestsIpaddr' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>{$active_requests} {$ipaddr}<span id='ActiveRequestsIpaddr-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $server_all_kbytes_inTR = "<canvas id='server_all_kbytes_in' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>{$server_all_kbytes_in}/{$seconds}<span id='server_all_kbytes_in-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $server_all_kbytes_outTR = "<canvas id='server_all_kbytes_out' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>{$server_all_kbytes_out}/{$seconds}<span id='server_all_kbytes_out-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $FilesDescriptors = "<canvas id='FilesDescriptors' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t<center style='font-size:16px'>File Descriptors<span id='FilesDescriptors-title' style='padding-left:5px;font-weight:bold'></span></center>";
    $f[] = $currentload;
    $f[] = $Memory;
    $f[] = $cpuUSage;
    $f[] = $ActiveRequests;
    $f[] = $ActiveRequestsMembers;
    $f[] = $ActiveRequestsIpaddr;
    $f[] = $TotalAccounted;
    $f[] = $FilesDescriptors;
    $f[] = $HttpRequests;
    $f[] = $server_all_kbytes_inTR;
    $f[] = $server_all_kbytes_outTR;
    $StorageCapacity = unserialize(base64_decode($sock->getFrameWork("squid.php?StorageCapacity=yes")));
    $countStorages = count($StorageCapacity);
    for ($i = 0; $i < $countStorages; $i++) {
        $f[] = "<canvas id='Storage{$i}' width='{$defaultsize}' height='{$defaultsize} ' style='margin:10px'></canvas>\n\t\t<center style='font-size:16px'>Storage Capacity Kid " . ($i + 1) . "</center>";
        $js[] = "        Storage{$i} = new steelseries.RadialBargraph('Storage{$i}', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Storage " . ($i + 1) . "',\n                            unitString: '%',\n                            threshold: 70,\n\t\t\t\t\t\t\tmaxValue:100,\n                            lcdVisible: true\n                        });\t";
    }
    $storages = CompileTr4($f, false, null, true);
    if (isset($_GET["byenduser-interface"])) {
        $storages = CompileTr3($f, false, null, true);
    }
    if (isset($_SESSION["uid"])) {
        $parameters_link = "<div style='width:100%;text-align:right'><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('{$page}?monitor-parameters=yes&t={$t}');\"\n\t\tstyle='font-size:16px;text-decoration:underline;font-weight:bold;color:#DF0000'>{$parameters}</a></div>";
    }
    if (isset($_GET["loadjs"])) {
        $loadthis = "<script type='text/javascript' language='javascript' src='/js/tween-min.js'></script>";
        $parameters_link = "<div style='width:1160;text-align:right'>\n\t\t\t\t<a href=\"javascript:blur()\" OnClick=\"javascript:Loadjs('{$page}?monitor-parameters=yes&t={$t}')\" \n\tid='none' class=\"Button2014 Button2014-success Button2014-lg\"  style=\"font-size:30px;text-transform:capitalize\" \n\t>&laquo;&nbsp;{$parameters}&nbsp;&raquo;</a></div>";
    }
    $html = "\n\t\t{$loadthis}\n\t\t<script type='text/javascript' language='javascript' src='/js/steelseries-min.js'></script>\t\t\n\t\t{$parameters_link}\n\t\t<div id='counter-{$t}'>\n\t\t\n\t\t{$storages}\n\t\t</div>\t\n\t\t\t\n<script>\n\t\n\tvar sections = [steelseries.Section(0, 25, 'rgba(0, 0, 220, 0.3)'),\n    \tsteelseries.Section(25, 50, 'rgba(0, 220, 0, 0.3)'),\n        steelseries.Section(50, 75, 'rgba(220, 220, 0, 0.3)') ],\n\n        areas = [steelseries.Section(75, 100, 'rgba(220, 0, 0, 0.3)')],\n\n            // Define value gradient for bargraph\n            valGrad = new steelseries.gradientWrapper(  0,\n                                                        100,\n                                                        [ 0, 0.33, 0.66, 0.85, 1],\n                                                        [ new steelseries.rgbaColor(0, 0, 200, 1),\n                                                          new steelseries.rgbaColor(0, 200, 0, 1),\n                                                          new steelseries.rgbaColor(200, 200, 0, 1),\n                                                          new steelseries.rgbaColor(200, 0, 0, 1),\n                                                          new steelseries.rgbaColor(200, 0, 0, 1) ]);\t\n       CpuUsageRadial = new steelseries.RadialBargraph('CpuUsage', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n\t\t\t\t\t\t\tmaxValue:100,\n                            titleString: 'CPU Usage',\n                            unitString: '%',\n                            threshold: 50,\n                            lcdVisible: true\n                        });\n                        \n                        \n       LoadCurrent = new steelseries.Radial('CurrentLoad', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'LOAD',\n                            threshold: 2,\n                            maxValue: '{$maxload}',\n                            lcdVisible: true\n                        }); \n                        \n         FilesDescriptors = new steelseries.Radial('FilesDescriptors', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Files',\n                            threshold: 2,\n                            maxValue: '100',\n                            lcdVisible: true\n                        });  \n\n         ActiveRequests = new steelseries.Radial('ActiveRequests', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Files',\n                            threshold: 2,\n                            maxValue: '150',\n                            lcdVisible: true\n                        });   \n                        \n                \n         ActiveRequestsMembers = new steelseries.Radial('ActiveRequestsMembers', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Files',\n                            threshold: 2,\n                            maxValue: '150',\n                            lcdVisible: true\n                        });    \n\n                        \n         ActiveRequestsIpaddr = new steelseries.Radial('ActiveRequestsIpaddr', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Files',\n                            threshold: 2,\n                            maxValue: '150',\n                            lcdVisible: true\n                        });                        \n\n                        \n                       \n                        \n\n                        \n\trealMemory = new steelseries.Radial('realMemory', {\n                            gaugeType: steelseries.GaugeType.TYPE1,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Memory',\n                             unitString: '%',\n                            threshold: 70,\n                            maxValue: '100',\n                            lcdVisible: true\n                        }); \n\n                        \n                        \n                        \n                        \n                       \n\t\t\t\n       HttpRequestsRadial = new steelseries.RadialBargraph('HttpRequests', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'HTTP requests',\n                            unitString: '{$seconds}',\n                            threshold: 50,\n\t\t\t\t\t\t\tmaxValue:150,\n                            lcdVisible: true\n                        });\t\n                        \n       TotalAccounted = new steelseries.RadialBargraph('TotalAccounted', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Memory %',\n                            threshold: 50,\n\t\t\t\t\t\t\tmaxValue:100,\n                            lcdVisible: true\n                        });\t                        \n                  \n\n                        \n        server_all_kbytes_in = new steelseries.RadialBargraph('server_all_kbytes_in', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Kb IN',\n                            unitString: 'KB',\n                            threshold: 50,\n\t\t\t\t\t\t\tmaxValue:250,\n                            lcdVisible: true\n                        });\t\n                        \n                        \n        server_all_kbytes_out = new steelseries.RadialBargraph('server_all_kbytes_out', {\n                            gaugeType: steelseries.GaugeType.TYPE3,\n                            size: {$defaultsize},\n                            section: sections,\n                            area: areas,\n                            titleString: 'Kb OUT',\n                            unitString: 'KB',\n                            threshold: 50,\n\t\t\t\t\t\t\tmaxValue:250,\n                            lcdVisible: true\n                        });\t                        \n                        \n        " . @implode("\n", $js) . "\n\t\t\t\n\t\tfunction RefreshRadial{$t}(){\n\t\t\tif(!document.getElementById('counter-{$t}')){return;}\n\t\t\tLoadjs('{$page}?radialValues=yes&t={$t}');\n\t\t}\n\t\t\$('#flexRT{$t}').remove();\n\t\tRefreshRadial{$t}();\n</script>\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t\n";
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:61,代码来源:miniadm.prxy.monitor.php

示例13: all_status


//.........这里部分代码省略.........
	
	
	$tr[]=$squid_status;
	$tr[]=$APP_SQUID_NAT;
	$tr[]=$APP_HAARP;
	$tr[]=$APP_HYPERCACHE_WEB;
	$tr[]=$APP_SAMBA_WINBIND;
	$tr[]=$APP_CNTLM;
	$tr[]=$APP_CNTLM_PARENT;
	$tr[]=$dansguardian_status;
	$tr[]=$kav;
	$tr[]=$cicap;
	$tr[]=$DNSCACHE;
	$tr[]=$CLAMAV;
	$tr[]=$APP_PROXY_PAC;
	$tr[]=$APP_SQUIDGUARD_HTTP;
	$tr[]=$APP_SARG;
	$tr[]=$HOTSPOT_WWW;
	$tr[]=$HOTSPOT_SERVICE;
	
	$tr[]=$HOTSPOT_FW;
	$tr[]=$APP_ZIPROXY;
	$tr[]=$APP_UFDBGUARD;
	$tr[]=$APP_UFDBGUARD_CLIENT;
	$tr[]=$APP_UFDBCAT;
	$tr[]=$APP_ARTICADB;
	$tr[]=$APP_SQUID_DB;
	$tr[]=$APP_FTP_PROXY;

	$tr[]=$UCARP_MASTER;
	$tr[]=$UCARP_SLAVE;
	
	if(isset($_GET["miniadmin"])){
		echo $tpl->_ENGINE_parse_body(CompileTr3($tr,true));
		return;
		
	}
	$EnableUfdbGuard=$sock->EnableUfdbGuard();
	if(!is_numeric($EnableUfdbGuard)){$EnableUfdbGuard=0;}
	if(!$users->APP_UFDBGUARD_INSTALLED){$EnableUfdbGuard=0;}
	
	$tables[]="<div style='min-height:350px;'>
		<table style='width:100%' class='TableRemove TableMarged'><tr>";
	$t=0;
	while (list ($key, $line) = each ($tr) ){
			$line=trim($line);
			if($line==null){continue;}
			$t=$t+1;
			$tables[]="<td valign='top'>$line</td>";
			if($t==2){$t=0;$tables[]="</tr><tr>";}
			}
	
	if($t<2){
		for($i=0;$i<=$t;$i++){
			$tables[]="<td valign='top'>&nbsp;</td>";				
		}
	}
	

	

	$SquidBoosterMemText="
		<tr>
			<td width=1%><img src='img/memory-32.png'></td>
			<td><div id='ptx-status'></div></td>
		</tr>
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:67,代码来源:squid.main.quicklinks.php

示例14: section_architecture_content

function section_architecture_content()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $users = new usersMenus();
    $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)));
    $listen_port = Paragraphe('folder-network-64.png', '{listen_port}', '{listen_port_text}', "javascript:Loadjs('squid.popups.php?script=listen_port')");
    $listen_addr = Paragraphe('folder-network-64.png', '{listen_address}', '{squid_listen_text}', "javascript:Loadjs('squid.nic.php')");
    $transparent_mode = Paragraphe('relayhost.png', '{transparent_mode}', '{transparent_mode_text}', "javascript:Loadjs('squid.newbee.php?squid-transparent-js=yes')");
    $your_network = Paragraphe('folder-realyrules-64.png', '{your_network}', '{your_network_text}', "javascript:Loadjs('squid.popups.php?script=network')");
    $sslbump = Paragraphe('web-ssl-64.png', '{squid_sslbump}', '{squid_sslbump_text}', "javascript:Loadjs('squid.sslbump.php')");
    $watchdog = Paragraphe('service-check-64-grey.png', '{squid_watchdog}', '{squid_watchdog_text}', "");
    $ftp_user = Paragraphe('ftp-user-64.png', '{squid_ftp_user}', '{squid_ftp_user_text}', "javascript:Loadjs('squid.ftp.user.php')");
    $messengers = Paragraphe('messengers-64.png', '{instant_messengers}', '{squid_instant_messengers_text}', "javascript:Loadjs('squid.messengers.php')");
    $watchdog = Paragraphe('service-check-64.png', '{squid_watchdog}', '{squid_watchdog_text}', "javascript:Loadjs('squid.watchdog.php')");
    $booster = Paragraphe('perfs-64.png', '{squid_booster}', '{squid_booster_text}', "javascript:Loadjs('squid.booster.php')");
    $googlenossl = Paragraphe('google-64.png', '{disable_google_ssl}', '{disable_google_ssl_text}', "javascript:Loadjs('squid.google.ssl.php')");
    $forwarded_for = Paragraphe("icon-html-64.png", "x-Forwarded-For", "{x-Forwarded-For_explain}", "javascript:Loadjs('squid.forwarded_for.php')");
    if ($users->SQUID_REVERSE_APPLIANCE) {
        $sslbump = null;
        $messengers = null;
        $googlenossl = null;
        $ftp_user = null;
        $your_network = null;
    }
    $tr = array();
    $tr[] = $watchdog;
    $tr[] = $listen_port;
    $tr[] = $listen_addr;
    $tr[] = $timeouts;
    $tr[] = $forwarded_for;
    $tr[] = $transparent_mode;
    $tr[] = $your_network;
    $tr[] = $booster;
    $tr[] = $ftp_user;
    $tr[] = $messengers;
    $tr[] = $sslbump;
    $tr[] = $googlenossl;
    $html = CompileTr3($tr);
    $tpl = new templates();
    $html = "<div id='architecture-status'></div>\n<center style='width:100%'>\n<div style='width:80%;text-align:center'>{$html}</div>\n</center>\n<script>\n\tLoadAjaxTiny('architecture-status','squid.main.quicklinks.php?architecture-status=yes');\n\tQuickLinkShow('quicklinks-proxy_parameters');\n</script>";
    $html = $tpl->_ENGINE_parse_body($html, 'squid.index.php');
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:49,代码来源:squid.webstats.quicklinks.php

示例15: section_content_filtering


//.........这里部分代码省略.........
    if (!$users->AMAVIS_INSTALLED) {
        $amavis = $amavis_disabled;
    }
    if ($EnablePostfixMultiInstance == 1) {
        $amavis = $amavis_disabled;
    }
    if ($users->MimeDefangEnabled != 1) {
        $mimedefang = null;
    }
    if (!$users->MIMEDEFANG_INSTALLED) {
        $mimedefang = null;
    }
    if (!$users->spamassassin_installed) {
        $spamassassin = $spamassassin_disabled;
    }
    if (!$users->spamassassin_installed) {
        $spamassassin = $spamassassin_disabled;
    }
    if ($users->KasxFilterEnabled != 1) {
        $kas3 = $kas3_disabled;
    }
    if ($users->kas_installed != 1) {
        $kas3 = $kas3_disabled;
    }
    if ($users->ClamavMilterEnabled != 1) {
        $clamav = null;
    }
    if (!$users->CLAMAV_MILTER_INSTALLED) {
        $clamav = null;
    }
    if ($EnablePostfixMultiInstance == 1) {
        $clamav = null;
    }
    if ($users->MilterGreyListEnabled != 1) {
        $mg = null;
    }
    if (!$users->MILTERGREYLIST_INSTALLED) {
        $mg = null;
    }
    if ($EnablePostfixMultiInstance == 1) {
        $mg = null;
    }
    if ($users->EnableMilterSpyDaemon != 1) {
        $mailspy = null;
    }
    if (!$users->MILTER_SPY_INSTALLED) {
        $mailspy = null;
    }
    if ($spamassassin != null) {
        if (!$users->AMAVIS_INSTALLED) {
            if ($users->SPAMASS_MILTER_INSTALLED) {
                if ($SpamAssMilterEnabled != 1) {
                    $spamassassin = $spamassassin_disabled;
                }
            } else {
                $spamassassin = $spamassassin_disabled;
            }
        }
        if ($users->AMAVIS_INSTALLED) {
            if ($users->EnableAmavisDaemon != 1) {
                if ($users->SPAMASS_MILTER_INSTALLED) {
                    if ($SpamAssMilterEnabled != 1) {
                        $spamassassin = $spamassassin_disabled;
                    }
                } else {
                    $spamassassin = $spamassassin_disabled;
                }
            }
        }
    }
    if ($users->KASPERSKY_SMTP_APPLIANCE) {
        $spamassassin = null;
        $keywords = null;
    }
    $tr[] = $keywords;
    $tr[] = $global_smtp_rules;
    $tr[] = $extensions_block;
    $tr[] = $message_analyze;
    $tr[] = $spamassassin;
    $tr[] = $sa_rules;
    $tr[] = $sa_update;
    $tr[] = $amavis;
    if (!$users->KLMS_INSTALLED) {
        $tr[] = $assp;
        $tr[] = $kas3;
    }
    $tr[] = $keywords;
    $tr[] = $quarantine_policies;
    $tr[] = $quarantine;
    $tr[] = $quarantine_admin;
    $tr[] = $quarantine_report;
    $tr[] = $wbl;
    $tr[] = $clamav;
    $tr[] = $mailspy;
    $html = CompileTr3($tr);
    $html = "<center><div style='width:700px'>{$html}</div>\n\n\n</center>\n";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html);
    echo $datas;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:101,代码来源:postfix.security.php


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