本文整理汇总了PHP中Bs_IniHandler::loadFile方法的典型用法代码示例。如果您正苦于以下问题:PHP Bs_IniHandler::loadFile方法的具体用法?PHP Bs_IniHandler::loadFile怎么用?PHP Bs_IniHandler::loadFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bs_IniHandler
的用法示例。
在下文中一共展示了Bs_IniHandler::loadFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MailGraphStatus
function MailGraphStatus()
{
$tpl = new templates();
$ini = new Bs_IniHandler();
$sock = new sockets();
$ini->loadFile("ressources/logs/global.status.ini");
$status = DAEMON_STATUS_ROUND("MAILGRAPH", $ini, null);
return $tpl->_ENGINE_parse_body($status);
}
示例2: update
function update(){
$page=CurrentPageName();
$tpl=new templates();
$t=time();
$sock=new sockets();
$zpush_version=base64_decode($sock->getFrameWork("zarafa.php?zpush-version=yes"));
$ini=new Bs_IniHandler();
$ini->loadFile("ressources/index.ini");
$couldversion=$ini->_params["NEXT"]["z-push"];
$html="
<div style='font-size:22px;text-align:center;margin:10px' id='title$t'></div>
<div style='margin:10px;min-height:75px' id='Status$t'></div>
<div id='start-$t'></div>
<center style='margin:50px'>
<hr>". button("{update} v.$couldversion","Restore$t()",32)."</center>
<script>
var x_Restore$t= function (obj) {
var tempvalue=obj.responseText;
if(tempvalue.length>3){alert(tempvalue);}
document.getElementById('start-$t').innerHTML='';
LoadAjax('start-$t','$page?logs-starter=yes&t=$t');
}
function Restore$t(){
var XHR = new XHRConnection();
XHR.appendData('install-zpush','yes');
XHR.sendAndLoad('$page', 'POST',x_Restore$t);
}
var x_GetLogs$t= function (obj) {
var tempvalue=obj.responseText;
if(tempvalue.length>3){
document.getElementById('textToParseCats-$t').innerHTML=tempvalue;
}
}
function GetLogs$t(){
var XHR = new XHRConnection();
XHR.appendData('restore-logs','yes');
XHR.appendData('t','$t');
XHR.setLockOff();
XHR.sendAndLoad('$page', 'POST',x_GetLogs$t);
}
$('#Status$t').progressbar({ value: 1 });
</script>
";
echo $tpl->_ENGINE_parse_body($html);
}
示例3: start
function start()
{
$sock = new sockets();
$page = CurrentPageName();
$tpl = new templates();
$ini = new Bs_IniHandler();
$t = time();
if (!isset($_GET["t"])) {
$_GET["t"] = $t;
}
if (!is_file("/usr/share/artica-postfix/ressources/logs/global.status.ini")) {
if (!isset($_GET["wait"])) {
$sock->getFrameWork("cmd.php?Global-Applications-Status=yes");
}
echo $tpl->_ENGINE_parse_body("<center style='margin-20px;font-size:20px'>{please_wait_waiting_services_status}</center>\n\t\t\t\t<script>\n\t\t\t\t\tfunction Wait{$t}(){\n\t\t\t\t\t\tif(!document.getElementById('{$t}')){return;}\n\t\t\t\t\t\tLoadAjaxRound('{$_GET["t"]}','{$page}?start=yes&={$t}&wait=yes');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tsetTimeout('Wait{$t}()',1200);\n\t\t\t\t</script>");
die;
}
$ini->loadFile("/usr/share/artica-postfix/ressources/logs/global.status.ini");
$tr[] = "<div style='margin-top:20px'>";
$tr[] = "<table style='width:100%'>";
$tr[] = "<tr style='height:70px'>\n\t<th style='font-size:22px;' colspan=4>{services}</th>\n\t<th style='font-size:22px;' colspan=2>{processes}/{memory}</th>\n\t<th style='font-size:22px;'>{uptime}</th>\n\t<th style='font-size:22px;' colspan=2>{action}</th>\n\t</tr>";
while (list($key, $array) = each($ini->_params)) {
$icon = "ok48.png";
$color = "black";
$text = "{running}";
$service_name = $array["service_name"];
$service_disabled = intval($array["service_disabled"]);
if ($service_disabled == 0) {
continue;
}
$running = intval($array["running"]);
$master_version = $array["master_version"];
$processes_number = $array["processes_number"];
$uptime = "{since}: {$array["uptime"]}";
$master_memory = FormatBytes($array["master_memory"]);
$service_cmd = urlencode($array["service_cmd"]);
$start = imgtootltip("48-run.png", "{start}", "Loadjs('system.services.cmd.php?APPNAME={$service_name}&action=start&cmd={$service_cmd}&appcode={$key}')");
$action = imgtootltip("stop-48.png", "{stop}", "Loadjs('system.services.cmd.php?APPNAME={$service_name}&action=stop&cmd={$service_cmd}&appcode={$key}')");
$restart = imgtootltip("restart-48.png", "{restart}", "Loadjs('system.services.cmd.php?APPNAME={$service_name}&action=restart&cmd={$service_cmd}&appcode={$key}')");
if ($running == 0) {
$icon = "danger48.png";
$color = "#d32d2d";
$text = "{stopped}";
$processes_number = 0;
$action = $start;
$uptime = "-";
}
$tr[] = "<tr style='height:70px'>\n\t\t\t\t<td style='font-size:22px;color:{$color}'><img src='img/{$icon}'></td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{{$service_name}}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$master_version}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$text}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$processes_number} {processes}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color};'>{$master_memory}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$uptime}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$action}</td>\n\t\t\t\t<td style='font-size:22px;color:{$color}'>{$restart}</td>\n\t\t\t</tr>";
}
$tr[] = "</table>";
$tr[] = "</div>";
echo $tpl->_ENGINE_parse_body(@implode("\n", $tr));
}
示例4: service_status
function service_status()
{
$page = CurrentPageName();
$sock = new sockets();
$tpl = new templates();
$sock->getFrameWork("sealion.php?service-status=yes");
$ini = new Bs_IniHandler();
$ini->loadFile("/usr/share/artica-postfix/ressources/logs/APP_SEALION_AGENT.status");
$status = DAEMON_STATUS_ROUND("APP_SEALION_AGENT", $ini);
$html = "{$status}<div style='text-align:right;height:40px;'>" . imgtootltip("refresh-32.png", "{refresh}", "LoadAjax('sealion-agent-status','{$page}?sealion-agent-status=yes');", "right") . "</div>";
echo $tpl->_ENGINE_parse_body($html);
}
示例5: STATUSOF
function STATUSOF()
{
$key = $_POST["STATUSOF"];
$sock = new sockets();
$datas = base64_decode($sock->getFrameWork("system.php?all-services=yes"));
$bsini = new Bs_IniHandler();
$bsini->loadFile("/usr/share/artica-postfix/ressources/logs/global.status.ini");
$img = "42-red.png";
if ($bsini->_params[$key]["running"] == 1) {
$img = "42-green.png";
}
echo $img;
}
示例6: status
function status()
{
$page = CurrentPageName();
$sock = new sockets();
$tpl = new templates();
$sock->getFrameWork("ss5.php?service-status=yes");
$ini = new Bs_IniHandler();
$ini->loadFile("/usr/share/artica-postfix/ressources/logs/APP_SS5.status");
$status = DAEMON_STATUS_ROUND("APP_SS5", $ini);
$redsocks = DAEMON_STATUS_ROUND("APP_REDSOCKS", $ini);
$html = "{$status}{$redsocks}<div style='text-align:right;height:40px;'>" . imgtootltip("refresh-32.png", "{refresh}", "RefreshTab('influxdb_main_table');", "right") . "</div>";
echo $tpl->_ENGINE_parse_body($html);
}
示例7: build
function build()
{
$users = new usersMenus();
$sock = new sockets();
$unix = new unix();
$SystemLoadNotif = $sock->GET_INFO("SystemLoadNotif");
if (!is_numeric($SystemLoadNotif)) {
$SystemLoadNotif = 0;
}
$EnableSyslogDB = $sock->GET_INFO("EnableSyslogDB");
if (!is_numeric($EnableSyslogDB)) {
$EnableSyslogDB = 0;
}
$MySQLSyslogType = $sock->GET_INFO("MySQLSyslogType");
if (!is_numeric($MySQLSyslogType)) {
$MySQLSyslogType = 1;
}
$SquidPerformance = intval($sock->GET_INFO("SquidPerformance"));
$EnableIntelCeleron = intval(@file_get_contents("/etc/artica-postfix/settings/Daemons/EnableIntelCeleron"));
$python = $unix->find_program("python");
$nice = $unix->EXEC_NICE();
$ps = $unix->find_program("ps");
$sort = $unix->find_program("sort");
$head = $unix->find_program("head");
$echo = $unix->find_program("echo");
$date = $unix->find_program("date");
$mkdir = $unix->find_program("mkdir");
$php5 = $unix->LOCATE_PHP5_BIN();
$ZarafaDedicateMySQLServer = $sock->GET_INFO("ZarafaDedicateMySQLServer");
if (!is_numeric($ZarafaDedicateMySQLServer)) {
$ZarafaDedicateMySQLServer = 0;
}
build_progress_restart("{reconfiguring}", 22);
$ini = new Bs_IniHandler();
$ini->loadFile('/etc/artica-postfix/smtpnotif.conf');
if (!is_numeric($ini->_params["SMTP"]["EnableNotifs"])) {
$ini->_params["SMTP"]["EnableNotifs"] = 0;
}
if (!is_numeric($ini->_params["SMTP"]["tls_enabled"])) {
$ini->_params["SMTP"]["tls_enabled"] = 0;
}
$smtp_server = trim($ini->_params["SMTP"]['smtp_server_name']);
$smtp_server_port = $ini->_params["SMTP"]['smtp_server_port'];
$smtp_dest = $ini->_params["SMTP"]['smtp_dest'];
$smtp_sender = $ini->_params["SMTP"]['smtp_sender'];
$smtp_auth_user = $ini->_params["SMTP"]['smtp_auth_user'];
$smtp_auth_passwd = $ini->_params["SMTP"]['smtp_auth_passwd'];
$tls_enabled = $ini->_params["SMTP"]["tls_enabled"];
$recipientsZ = explode("\n", "/etc/artica-postfix/settings/Daemons/SmtpNotificationConfigCC");
$recipients = array();
while (list($index, $to) = each($recipientsZ)) {
if (trim($to) == null) {
continue;
}
$recipients[] = $to;
}
if ($smtp_server == null) {
$ini->_params["SMTP"]["EnableNotifs"] = 0;
}
if ($smtp_dest == null) {
if (count($recipients) == 0) {
$ini->_params["SMTP"]["EnableNotifs"] = 0;
}
}
if (!is_numeric($smtp_server_port)) {
$smtp_server_port = 25;
}
$EnableNotifs = $ini->_params["SMTP"]["EnableNotifs"];
$monit_not_on = 'instance,action';
$f[] = 'set daemon 60 with start delay 5';
$f[] = 'set idfile /var/run/monit/monit.id';
$cpunum = $unix->CPU_NUMBER();
$normal = $cpunum * 2 + 1;
$normal2 = $cpunum * 2;
$busy = $cpunum * 4;
build_progress_restart("{reconfiguring}", 23);
$EnableMONITSmtpNotif = $sock->GET_INFO("EnableMONITSmtpNotif");
if (!is_numeric($EnableMONITSmtpNotif)) {
$EnableMONITSmtpNotif = 1;
}
$MonitCPUUsage = intval($sock->GET_INFO("MonitCPUUsage"));
$MonitCPUUsageCycles = intval($sock->GET_INFO("MonitCPUUsageCycles"));
$MonitMemUsage = intval($sock->GET_INFO("MonitMemUsage"));
$MonitMemUsageCycles = intval($sock->GET_INFO("MonitMemUsageCycles"));
$MonitReportLoadVG1mn = intval($sock->GET_INFO("MonitReportLoadVG1mn"));
$MonitReportLoadVG1mnCycles = intval($sock->GET_INFO("MonitReportLoadVG1mnCycles"));
if ($MonitReportLoadVG1mnCycles == 0) {
$MonitReportLoadVG1mnCycles = 5;
}
$MonitReportLoadVG5mn = intval($sock->GET_INFO("MonitReportLoadVG5mn"));
$MonitReportLoadVG5mnCycles = intval($sock->GET_INFO("MonitReportLoadVG5mnCycles"));
if ($MonitReportLoadVG5mnCycles == 0) {
$MonitReportLoadVG5mnCycles = 15;
}
$MonitReportLoadVG15mn = intval($sock->GET_INFO("MonitReportLoadVG15mn"));
$MonitReportLoadVG15mnCycles = intval($sock->GET_INFO("MonitReportLoadVG15mnCycles"));
if ($MonitReportLoadVG15mnCycles == 0) {
$MonitReportLoadVG15mnCycles = 60;
}
$MonitMemPurgeCache = intval($sock->GET_INFO("MonitMemPurgeCache"));
//.........这里部分代码省略.........
示例8: status
function status()
{
$sock = new sockets();
$sock->getFrameWork("unifi.php?status=yes");
$tpl = new templates();
$ini = new Bs_IniHandler();
$ini->loadFile("/usr/share/artica-postfix/ressources/logs/unifi.status");
$UNIFI_MONGODB = DAEMON_STATUS_ROUND("UNIFI_MONGODB", $ini, null);
$UNIFI_CONTROLLER = DAEMON_STATUS_ROUND("UNIFI_CONTROLLER", $ini, null);
echo $tpl->_ENGINE_parse_body("\n\t\t\t{$UNIFI_CONTROLLER}\n\t\t\t<p> </p>\n\t\t\t{$UNIFI_MONGODB}\n\t\t\t\n\t\t\t");
}
示例9: basename
if (!is_file("/etc/artica-postfix/settings/Daemons/CyrusAVConfig")) {
echo "/etc/artica-postfix/settings/Daemons/CyrusAVConfig no such file...\n";
die;
}
@mkdir("/etc/artica-postfix/pids");
$pidfile = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".pid";
$unix = new unix();
if ($unix->process_exists(@file_get_contents($pidfile))) {
echo "Process already exists...\n";
die;
}
@file_put_contents($pidfile, getmypid());
$t1 = time();
$time = date('Y-m-d') . "_" . date('h:i');
$ini = new Bs_IniHandler();
$ini->loadFile("/etc/artica-postfix/settings/Daemons/CyrusAVConfig");
$nice = EXEC_NICE();
$clamscan = $unix->find_program("clamscan");
if (!is_file($clamscan)) {
die;
}
$partition_default = $unix->IMAPD_GET("partition-default");
if (!is_dir($partition_default)) {
send_email_events("Mailboxes antivirus scanning failed", "partition-default: \"{$partition_default}\"\nno such directory", "mailbox");
echo "partition-default: no such directory\n";
die;
}
@mkdir("/var/log/artica-postfix/antivirus/cyrus-imap", 0755, true);
$time = date('Y-m-d') . "_" . date('h:I');
$cmd = "{$nice} /usr/bin/clamscan --recursive=yes --infected ";
$cmd = $cmd . "--max-filesize=10M --max-scansize=10M --max-recursion=5 --max-dir-recursion=10 ";
示例10: NotifyStatus
function NotifyStatus()
{
$users = new usersMenus();
$master = @file_get_contents("/etc/artica-cluster/master");
$server = $master;
$sock = new sockets();
if (trim($master) == null) {
writelogs("Unable to get the master ", __FUNCTION__, __FILE__, __LINE__);
return null;
}
if ($GLOBALS["VERBOSE"]) {
echo "NotifyStatus() start...\n";
}
if (!$users->GLUSTER_INSTALLED) {
if ($GLOBALS["VERBOSE"]) {
echo "GLUSTER_INSTALLED=false\n";
}
die;
}
$gluster = new GlusterClient();
$unix = new unix();
$filetemp = $unix->FILE_TEMP();
if ($GLOBALS["VERBOSE"]) {
echo "/usr/share/artica-postfix/bin/artica-install --gluster-status >{$filetemp} 2>&1\n";
}
shell_exec("/usr/share/artica-postfix/bin/artica-install --gluster-status >{$filetemp} 2>&1");
$ini = new Bs_IniHandler();
$ini->loadFile($filetemp);
while (list($num, $ligne) = each($ini->_params["GLUSTER"])) {
$orders[$num] = $ligne;
writelogs("order {$num}={$ligne}", __FUNCTION__, __FILE__, __LINE__);
if ($GLOBALS["VERBOSE"]) {
echo "order {$num}={$ligne}\n";
}
}
@unlink($filetemp);
if ($GLOBALS["VERBOSE"]) {
echo "my name is {$gluster->PARAMS["name"]}\n";
}
$orders["NTFY_STATUS"] = $gluster->PARAMS["name"];
$orders["bricks"] = implode(",", $gluster->CLUSTERED_BRIKS);
$folders = $gluster->CLUSTERED_FOLDERS;
while (list($num, $ligne) = each($folders)) {
$orders[$num] = $ligne;
}
$curl = new glusterCurl("https://{$server}:9000/exec.gluster.php");
$curl->parms = $orders;
if ($GLOBALS["VERBOSE"]) {
echo "sending infos to {$server}\n";
}
if (!$curl->get()) {
writelogs("curl error !");
return null;
}
if (preg_match("#DELETE_YOU#is", $curl->data)) {
shell_exec("/etc/init.d/artica-postfix stop gluster");
shell_exec("/bin/rm -f /etc/artica-cluster/*");
$sock->getFrameWork("cmd.php?reconfigure-cyrus=yes");
return null;
}
if (preg_match("#CYRUS-ID=(.*?);#is", $curl->data, $re)) {
writelogs("Master cyrus id =\"{$re[1]}\"", __FUNCTION__, __FILE__, __LINE__);
$sock->SET_CLUSTER('cyrus_id', $re[1]);
$cyrus_id = $sock->getFrameWork("cmd.php?idofUser=cyrus");
if ($cyrus_id != $re[1]) {
writelogs("cyrus id \"{$re[1]}\" is different of my cyrus id {$cyrus_id} (restart cyrus)", __FUNCTION__, __FILE__, __LINE__);
$sock->getFrameWork("cmd.php?reconfigure-cyrus=yes");
}
str_replace("CYRUS-ID={$re[1]};", "", $curl->data);
}
$data = explode(";", $curl->data);
if (is_array($data)) {
while (list($index, $computer) = each($data)) {
if ($computer == null) {
continue;
}
if (!is_file("/etc/artica-cluster/clusters-{$computer}")) {
$mustRestart = true;
GetCLusterCLientInfos($computer);
}
}
}
if ($mustRestart) {
shell_exec("/etc/init.d/artica-postfix restart gluster");
}
}
示例11: rules_toolbox_left
//.........这里部分代码省略.........
$SquidDatabasesArticaEnable_P = "<tr>\n\t\t<td valign='middle' width=1%><img src='img/ok32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline'\n\t\tOnClick=\"javascript:Loadjs('squid.artica-databases.disable.php')\" nowrap>\n\t\t<b><span style='font-size:13px;text-decoration:underline'>{artica_databases} {enabled}</td>\n\t\t</tr>\n\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t";
} else {
$SquidDatabasesArticaEnable_P = "<tr>\n\t\t<td valign='middle' width=1%><img src='img/ok32-grey.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline'\n\t\tOnClick=\"javascript:Loadjs('squid.artica-databases.disable.php')\" nowrap>\n\t\t<b><span style='font-size:13px;text-decoration:underline'>{artica_databases} {disabled}</td>\n\t\t</tr>\n\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t";
}
if (!$users->CORP_LICENSE) {
$SquidDatabasesArticaEnable_P = "<tr>\n\t\t<td valign='middle' width=1%><img src='img/ok32-grey.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline'\n\t\tOnClick=\"javascript:blur()\" nowrap>\n\t\t<b><span style='font-size:13px;text-decoration:underline'>{artica_databases} {no_license}</td>\n\t\t</tr>\n\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t";
}
if ($EnableUfdbGuard == 1) {
$DisableUfdbGuard = "\n\t\t\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/ok32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('squid.disableUfdb.php')\" nowrap><b><span style='font-size:13px;text-decoration:underline'>{$disable_service}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t{$SquidDatabasesArticaEnable_P}\n\t\t{$SquidDatabasesUtlseEnable_P}\t\n\t\t";
}
if ($UseRemoteUfdbguardService == 1) {
$DisableUfdbGuard = null;
}
$html = "\n\t<table style='width:98%' class=form>\n\t{$DisableUfdbGuard}\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/computer-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('squid.nodes.php',true)\" nowrap><b><span style='font-size:13px;text-decoration:underline'>{$Computers}</span></b><span style='font-size:13px'> {computers}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/check-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='middle' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('squid.categories.urls.php?popup-js=yes&category=malware&tablesize=695');\" nowrap><b><span style='font-size:13px;text-decoration:underline'>{$categoryuris_malware} Malware Uris</span></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\t\n\t\n\t\n\t\n\t\n\t";
$html = $html . "\n\t\t\t\n\t\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/check-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('ufdbguard.tests.php')\" nowrap>\n\t\t\t\t<span style='font-size:13px;text-decoration:underline'>{verify_rules}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\t\t\n\t\n\t\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/loupe-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('squid.category.tests.php')\" nowrap><span style='font-size:13px;text-decoration:underline'>{test_categories}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\t\t\t\n\t\n\t\n\t\n";
if ($UseRemoteUfdbguardService == 0) {
$html = $html . "<tr>\n\t\t<td valign='middle' width=1%><img src='img/service-restart-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('ufdbguard.php?force-reload-js=yes')\" nowrap><span style='font-size:13px;text-decoration:underline'>{reload_service}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/events-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('ufdbguard.sevents.php?js=yes')\" nowrap><span style='font-size:13px;text-decoration:underline'>{service_events}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/{$ufdbgverb_icon}'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline;text-transform:capitalize' \n\t\t\t\tOnClick=\"javascript:Loadjs('ufdbguard.debug.php')\" nowrap><span style='font-size:13px;text-decoration:underline'>{debug} [{$ufdbgverb_txt}]</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/32-stop.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('squidguardweb.php')\" nowrap><span style='font-size:13px;text-decoration:underline'>{banned_page_webservice}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t";
}
$html = $html . "";
if ($UseRemoteUfdbguardService == 0) {
$html = $html . "\n\t<tr>\n\t\t<td valign='middle' width=1%><img src='img/script-32.png'></td>\n\t\t<td valign='middle' width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td valign='middle' width=1%><img src='img/arrow-right-16.png'></td>\n\t\t\t\t<td valign='top' {$mouse} style='font-size:13px;text-decoration:underline' \n\t\t\t\tOnClick=\"javascript:Loadjs('ufdbguard.conf.php');\" nowrap>\n\t\t\t\t\t<span style='font-size:13px;text-decoration:underline'>{config_status}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\t\n\t{$updateutility}\t\n";
}
$html = $html . "\n\n\t</table> \n\t\n\t\n\t";
$shield = null;
if ($EnableUfdbGuard == 1) {
if ($UseRemoteUfdbguardService == 0) {
if (!$users->CORP_LICENSE) {
$shield = "shield-warn-64.png";
$warn["{warn_ufdbguard_no_license}"] = null;
}
$ini = new Bs_IniHandler();
$sock = new sockets();
$sock->getFrameWork('squid2.php?ufdb-ini-status-write=yes');
$ini->loadFile("/usr/share/artica-postfix/ressources/interface-cache/UFDB_STATUS");
$restartlocalservice = "Loadjs('system.services.cmd.php?APPNAME=APP_UFDBGUARD&action=restart&cmd=%2Fetc%2Finit.d%2Fufdb&id=ed8cebc50034e96ed26a4d3cb953403f&appcode=APP_UFDBGUARD');";
$redirector_file = "/usr/share/artica-postfix/ressources/logs/web/squid_redirectors_status.db";
$redirectors_array = unserialize(@file_get_contents($redirector_file));
if (count($redirectors_array) > 1) {
$redirectors_count = count($redirectors_array);
if (strlen($redirectors_count) == 1) {
$redirectors_count = "0{$redirectors_count}";
}
$OBS["{redirectors}:{$redirectors_count}"] = "Loadjs('squid.redirectors.php');";
}
if ($ini->_params["APP_UFDBGUARD"]["running"] == 0) {
$shield = "shield-red-64.png";
$err["{warn_ufdbguard_stopped}"] = $restartlocalservice;
} else {
if ($shield == null) {
$shield = "shield-ok-64.png";
}
$OBS["{running_since}: {$ini->_params["APP_UFDBGUARD"]["uptime"]}"] = null;
$OBS["{memory}: " . FormatBytes($ini->_params["APP_UFDBGUARD"]["master_memory"])] = null;
}
}
if ($UseRemoteUfdbguardService == 1) {
$server = $UFDB["remote_server"];
$port = $UFDB["remote_port"] = 3977;
if (!@fsockopen($server, $port, $errno, $errstr, 1)) {
$shield = "shield-red-64.png";
$err["{server}:«{$server}»:{$port}<br>{error} {$errno} {$errstr}"] = "Loadjs('ufdbguard.php?client-js=yes');";
} else {
$OBS["{warn_ufdbguard_remote_use}"] = "Loadjs('ufdbguard.php?client-js=yes')";
}
}
if ($EnableWebProxyStatsAppliance == 0) {
示例12: PostfixAutoBlockCompileCheck
function PostfixAutoBlockCompileCheck()
{
$ini = new Bs_IniHandler();
$ini->loadFile("ressources/logs/compile.iptables.progress");
$pourc = $ini->get("PROGRESS", "pourc");
$text = $ini->get("PROGRESS", "text");
$color = "#5DD13D";
$html = "\n<center>\n<div style='width:96%;text-align:center;font-size:12px;font-weight:bold;margin:5px;background-color:white;padding:5px;border:1px solid #CCCCCC'>\n\t<div style='width:95%;text-align:center;font-size:12px;font-weight:bold;margin:5px'>{$text}</div>\n\t<div style='width:100%;border:1px dotted #CCCCCC'>\n\t<div style='width:{$pourc}%;text-align:center;color:white;padding-top:3px;padding-bottom:3px;background-color:{$color};'>\n\t\t<strong style='color:#BCF3D6;font-size:12px;font-weight:bold'>{$pourc}%</strong></center>\n\t</div>\n\t</div>\n</div>\n</center>\n";
$html = RoundedLightWhite($html);
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
示例13: SERVICES_STATUS
function SERVICES_STATUS()
{
$users = new usersMenus();
if (!$users->AsSystemAdministrator) {
return;
}
$ini = new Bs_IniHandler();
$ini->loadFile("/usr/share/artica-postfix/ressources/logs/global.status.ini");
$err = array();
$errT = array();
$c = 0;
while (list($key, $array) = each($ini->_params)) {
$service_name = $array["service_name"];
$service_disabled = intval($array["service_disabled"]);
if ($service_disabled == 0) {
continue;
}
$running = intval($array["running"]);
$c++;
if ($running == 0) {
if ($key == "APP_INFLUXDB") {
if (recheck_service("APP_INFLUXDB")) {
continue;
}
}
$service_cmd = $array["service_cmd"];
if ($service_cmd != null) {
$js = "Loadjs('system.services.cmd.php?APPNAME={$array["service_name"]}&action=start&cmd={$service_cmd}&appcode={$key}')";
}
if ($key == "SQUID") {
$js = "Loadjs('squid.start.progress.php');";
}
if ($key == "APP_INFLUXDB") {
$js = "Loadjs('infludb.start.progress.php');";
}
$icon = "disks-128-warn.png";
$err[] = proxy_status_warning("{{$service_name}} {stopped}", "{{$service_name}} {stopped}", $js);
}
}
if ($c > 0) {
$GoToServices = "GoToServices()";
$GoToServices_underline = "underline";
$CountDeServices = "<tr>\n\t\t<td style='font-size:20px'><a href=\"javascript:blur();\"\n\t\tOnClick=\"javascript:{$GoToServices};\" style='text-decoration:{$GoToServices_underline}'>{services}: {$c}</a></td>\n\t\t</tr>";
return $CountDeServices;
}
return $err;
}
示例14: squid_frontend_status
//.........这里部分代码省略.........
$TITLE_USERS = null;
$TITLE_COMPUTERS = null;
$EnableKerbAuth = intval($sock->GET_INFO("EnableKerbAuth"));
if ($EnableKerbAuth == 1) {
include_once dirname(__FILE__) . "/ressources/class.external.ad.inc";
$ldap = new external_ad_search();
$NET_RPC_INFOS = $ldap->NET_RPC_INFOS();
$NumBerOfUsers = intval($NET_RPC_INFOS["Num users"]);
if ($NumBerOfUsers > 0) {
$TITLE_USERS = " | <a href=\"javascript:blur();\" \n\t\t\tOnClick=\"javascript:AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.adker.php?tabs=yes');\" \n\t\t\tstyle='text-decoration:underline'>{$NumBerOfUsers} {members}</a>";
}
}
$q = new mysql_squid_builder();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT COUNT(MAC) as tcount FROM (SELECT MAC FROM UserAutDB GROUP BY MAC) as t"));
$Nodes = $ligne["tcount"];
if ($Nodes > 0) {
$TITLE_COMPUTERS = " | <a href=\"javascript:blur();\"\n\t\tOnClick=\"Loadjs('squid.computer-browse.php')\"\n\t\tstyle='text-decoration:underline'>{$Nodes} {computers}</a>";
}
$CACHES_RATES = unserialize(@file_get_contents("/usr/share/artica-postfix/ressources/logs/web/TOTAL_CACHED"));
$TOTALS_NOT_CACHED = intval($CACHES_RATES["TOTALS_NOT_CACHED"]);
$TOTALS_CACHED = intval($CACHES_RATES["TOTALS_CACHED"]);
$TOTALS_DOWNLOAD = $TOTALS_NOT_CACHED + $TOTALS_CACHED;
$TOTALS_NOT_CACHED = intval(@file_get_contents("/usr/share/artica-postfix/ressources/logs/stats/NOT_CACHED"));
if ($TOTALS_NOT_CACHED > 0) {
$TOTALS_NOT_CACHED_TEXT = " | <a href=\"javascript:blur();\" \n\t\tOnClick=\"javascript:Loadjs('admin.index.loadvg.squid.notcached-week.php');\"\n\t\tstyle='text-decoration:underline;font-weight:bold'>{not_cached_this_week}: " . FormatBytes($TOTALS_NOT_CACHED / 1024) . "</a>";
}
$Status_cache = " | {downloaded} " . FormatBytes($TOTALS_DOWNLOAD / 1024) . " | {cached}:" . FormatBytes($TOTALS_CACHED / 1024) . $TOTALS_NOT_CACHED_TEXT;
$RATE = $TOTALS_CACHED / $TOTALS_DOWNLOAD * 100;
$RATE = round($RATE, 1);
$TITLE_RATE = " | {cache_rate} <strong>{$RATE}%</strong>";
if (!is_numeric($server_all_kbytes_in)) {
$server_all_kbytes_in = 1000;
}
if (!is_numeric($server_all_kbytes_out)) {
$server_all_kbytes_out = 250;
}
if (!is_numeric($HttpRequests)) {
$HttpRequests = 150;
}
if (!is_numeric($ActiveRequests)) {
$ActiveRequests = 150;
}
if (!isset($squid5mn["cpu_usage"])) {
$squid5mn["cpu_usage"] = 0;
}
$squid5mn["cpu_usage"] = round($squid5mn["cpu_usage"], 2);
$squid5mn["client_http.requests"] = round($squid5mn["client_http.requests"], 2);
$squid5mn["server.all.kbytes_in"] = round($squid5mn["server.all.kbytes_in"], 2);
$squid5mn["server.all.kbytes_out"] = round($squid5mn["server.all.kbytes_out"], 2);
$ActiveRequestsR = unserialize(@file_get_contents("/usr/share/artica-postfix/ressources/logs/active_requests.inc"));
$ActiveRequestsNumber = count($ActiveRequestsR["CON"]);
$ActiveRequestsIpaddr = count($ActiveRequestsR["IPS"]);
$ActiveRequestsMembers = count($ActiveRequestsR["USERS"]);
if ($ActiveRequestsNumber > 0) {
$TITLE_REQUESTS = " | <a href=\"javascript:blur();\"\n\t\tOnClick=\"Loadjs('squid.active.requests.php')\"\n\t\tstyle='text-decoration:underline'>{$ActiveRequestsNumber} {active_requests}</a>";
}
if (!is_numeric($ActiveRequestsNumber)) {
$ActiveRequestsNumber = 0;
}
if (!is_numeric($ActiveRequestsIpaddr)) {
$ActiveRequestsIpaddr = 0;
}
if (!is_numeric($ActiveRequestsMembers)) {
$ActiveRequestsMembers = 0;
}
$server_all_kbytes_in_text = $tpl->javascript_parse_text("{server_all_kbytes_in}");
$server_all_kbytes_out_text = $tpl->javascript_parse_text("{server_all_kbytes_out}");
$active_requests = $tpl->javascript_parse_text("{active_requests}");
$proxy_status = $tpl->javascript_parse_text("{proxy_status}");
$second = $tpl->javascript_parse_text("{second}");
$requests = $tpl->javascript_parse_text("{requests}");
$countStorages = count($StorageCapacity);
for ($i = 0; $i < $countStorages; $i++) {
$tS[] = "<div id='squid-s{$i}-{$t}' style='width:160px; height:100px'>";
$js[] = " var s{$i} = new JustGage({\n\t\tid: 'squid-s{$i}-{$t}',\n\t\tvalue: {$StorageCapacity[$i]},\n\t\tmin: 0,\n\t\tmax: 100,\n\t\ttitle: 'Storage Capacity Kid " . ($i + 1) . "',\n\t\tlabel: '%',\n\t\tlevelColorsGradient: true\n\t}); ";
}
$storages = CompileTr4($tS, true, null, true);
$ini = new Bs_IniHandler();
$color = "black";
$ini->loadFile("/usr/share/artica-postfix/ressources/databases/ALL_SQUID_STATUS");
if ($ini->_params["SQUID"]["running"] == 0) {
$color = "#d32d2d";
$status = "{stopped}";
} else {
if ($ini->_params["SQUID"]["master_time"]) {
$status2 = " {running} {since} " . distanceOfTimeInWords($ini->_params["SQUID"]["master_time"], time());
}
}
$version = @file_get_contents("/usr/share/artica-postfix/ressources/databases/SQUID.version");
if ($version != null) {
$version = " v.{$version}";
}
if ($SquidCacheLevel == 0) {
$nocache = " <span style='color:#d32d2d'>{no_cached_sites_warn}</span>";
}
$squi1_text = $tpl->javascript_parse_text("{monitor}");
$squi1_onmouse = "OnMouseOver=\"javascript:AffBulle('{$squi1_text}');this.style.cursor='pointer'\" OnMouseOut=\"javascript:HideBulle();this.style.cursor='default'\"";
$squi1_onClick = "OnClick=\"javascript:Loadjs('squid.task.monitor.php')\"";
echo $tpl->_ENGINE_parse_body("\n<table style='width:99%' >\n\t<tr>\n\t\t<td colspan=4 style='font-size:22px'>\n\t\t\t<a href=\"javascript:blur();\" \n\t\t\tOnClick=\"javascript:LoadAjax('BodyContent','squid.caches.status.php?tabs=yes')\" \n\t\t\tstyle='text-decoration:underline;color:{$color}'>{$proxy_status} {$status} {$version}</a>\n\t\t\t{$TITLE_RATE}{$TITLE_USERS}{$TITLE_REQUESTS}{$TITLE_COMPUTERS}\n\t\t\t<br>\n\t\t\t<div style='font-size:11px'><i>{$status2}{$nocache}{$Status_cache}</i></div>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t\t<td valign='top' width=25%>\n\t\t\t\t<div id='squid-1-{$t}' style='width:160px; height:100px' {$squi1_onmouse} {$squi1_onClick}></div>\n\t\t\t\n\t\t\t</td>\n\t\t\t<td valign='top' width=25%><div id='squid-2-{$t}' style='width:170px; height:100px'></div></td>\n\t\t\t<td valign='top' width=25%><div id='squid-3-{$t}' style='width:170px; height:100px'></div></td>\n\t\t\t<td valign='top' width=25%><div id='squid-4-{$t}' style='width:170px; height:100px'></div></td>\n\t</tr>\n\t\n</table>{$storages}\n\t\t\t\n" . "<div style='text-align:right'>" . imgtootltip("refresh-32.png", "{refresh}", "LoadAjaxTiny('squid-front-end-status','{$page}?squid-front-end-status=yes');") . "</div>\n<script>\nvar g = new JustGage({\n\tid: 'squid-1-{$t}',\n\tvalue: {$squid5mn["cpu_usage"]},\n\tmin: 0.1,\n\tmax: 100,\n\ttitle: 'Proxy CPU Usage',\n\tlabel: '%',\n\tlevelColorsGradient: true\n});\n\t\nvar g2 = new JustGage({\n\tid: 'squid-2-{$t}',\n\tvalue: {$squid5mn["client_http.requests"]},\n\tmin: 0.1,\n\tmax: {$HttpRequests},\n\ttitle: 'HTTP {$requests}/{$second}',\n\tlabel: 'RQ/s',\n\tlevelColorsGradient: true\n});\n\nvar g3 = new JustGage({\n\tid: 'squid-3-{$t}',\n\tvalue: {$squid5mn["server.all.kbytes_in"]},\n\tmin: 0,\n\tmax: {$server_all_kbytes_in},\n\ttitle: '{$server_all_kbytes_in_text}',\n\tlabel: 'KB',\n\tlevelColorsGradient: true\n\t});\nvar g4 = new JustGage({\n\tid: 'squid-4-{$t}',\n\tvalue: {$squid5mn["server.all.kbytes_out"]},\n\tmin: 0,\n\tmax: {$server_all_kbytes_out},\n\ttitle: '{$server_all_kbytes_out_text}',\n\tlabel: 'KB',\n\tlevelColorsGradient: true\n});\n" . @implode("\n", $js) . "\nif(document.getElementById('squid-rttrqs-status')){\n\tLoadAjaxSilent('squid-rttrqs-status','admin.index.loadavg.squidrtt.php');\n}\n\n\t</script>\n\t");
}
示例15: orangefr_popup
function orangefr_popup()
{
$sasl = new smtp_sasl_password_maps();
$domain = new DomainsTools();
$ISP = $_GET["isp"];
$ini = new Bs_IniHandler();
$ldap = new clladp();
$ini->loadFile("ressources/databases/isp.defaults.settings.conf");
$default_server = $ini->_params[$ISP]["default_server"];
$default_port = $ini->_params[$ISP]["default_port"];
$serverstring = $domain->transport_maps_implode($default_server, $default_port, null, "no");
$auth = $ldap->sasl_relayhost($default_server);
if ($auth != null) {
if (preg_match('#(.+?):(.+)#', $auth, $re)) {
$username = $re[1];
$password = $re[2];
}
}
$tpl = new templates();
$isp_server_address_label = $tpl->_ENGINE_parse_body('{isp_server_address}');
$isp_server_port_label = $tpl->_ENGINE_parse_body('{isp_server_port}');
if (strlen($isp_server_address_label) > 25) {
$isp_server_address_label = texttooltip(substr($isp_server_address_label, 0, 22) . '...', $isp_server_address_label, null, 1);
}
if (strlen($isp_server_port_label) > 25) {
$isp_server_port_label = texttooltip(substr($isp_server_port_label, 0, 22) . '...', $isp_server_port_label, null, 1);
}
$page = CurrentPageName();
$text = "\n\t<div id='anim'></div>\n\t<p class=caption style='font-size:12px'>{please_verify_addressisp}</p>\n\t<strong style='font-size:13px'>{technical_address}:<code>{$serverstring}</code></strong><br>\n\t<form name='FFMISPRELAY'>\n\t<table style='width:100%;background-color:#FFFFFF;border:1px solid #CCCCCC;padding:5px'>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$isp_server_address_label}</td>\n\t\t\t<td>" . Field_text('isp_address', $default_server, 'width:220px;') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{$isp_server_port_label}</td>\n\t\t\t<td>" . Field_text('isp_port', $default_port, 'width:30px;') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{username}</td>\n\t\t\t<td>" . Field_text('isp_username', $username, 'width:190px;') . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td class=legend nowrap>{password}</td>\n\t\t\t<td>" . Field_password('isp_password', $password, 'width:90px;') . "</td>\n\t\t</tr>\t\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t<td colspan=2 style='padding-top:4px;border-top:1px solid #CCCCCC' align='right'>\n\t\t\t" . button("{apply}", "FFMISPRELAY_SAVE()") . "\n\t\t\t\t\n\t\t\t</td\n\t\t</tr>\n\t</table>\t\n\t\n\t";
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/{$ini->_params[$ISP]["default_icon"]}' style='margin:4px;padding:5px;border:1px solid #7B787E;background-color:white'></td>\n\t\t<td style='vertical-align:top'>{$text}</td>\n\t</tr>\n\t</table>\n\t<script>\t\t\n\tvar x_FFMISPRELAY_SAVE=function(obj){\n \tvar tempvalue=trim(obj.responseText);\n\t \tif(tempvalue.length>3){alert(tempvalue);}\n\t\tdocument.getElementById('anim').innerHTML='';\n\t\t}\n\t\n\t\tfunction FFMISPRELAY_SAVE(){\n\t\t\tvar XHR = new XHRConnection(); \n\t\t\tXHR.appendData('isp_address',document.getElementById('isp_address').value);\n\t\t\tXHR.appendData('isp_password',document.getElementById('isp_password').value);\n\t\t\tXHR.appendData('isp_port',document.getElementById('isp_port').value);\n\t\t\tXHR.appendData('isp_username',document.getElementById('isp_username').value);\n\t\t\tdocument.getElementById('anim').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_FFMISPRELAY_SAVE);\n\t\t}\t\t\n\t\t\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}