本文整理汇总了PHP中Paragraphe函数的典型用法代码示例。如果您正苦于以下问题:PHP Paragraphe函数的具体用法?PHP Paragraphe怎么用?PHP Paragraphe使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Paragraphe函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: amavis_popup
function amavis_popup()
{
$t = time();
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$enable_amavisdeamon_ask = $tpl->javascript_parse_text("{enable_amavisdeamon_ask}");
$disable_amavisdeamon_ask = $tpl->javascript_parse_text("{disable_amavisdeamon_ask}");
$EnableAmavisDaemon = intval(trim($sock->GET_INFO("EnableAmavisDaemon", true)));
$EnableAmavisInMasterCF = intval(trim($sock->GET_INFO("EnableAmavisInMasterCF")));
if ($EnableAmavisDaemon == 0) {
$EnableAmavisDaemonP = "{amavis_is_currently_disabled_text}";
} else {
$EnableAmavisDaemonP = "{amavis_is_currently_enabled_text}";
}
$prepost = Paragraphe("folder-equerre-64.png", '{postfix_hooking}', '{postfix_hooking_text}', "javascript:Loadjs('{$page}?hooking-js=yes')", 'postfix_hooking_text', 210, 100);
$tr[] = $EnableAmavisDaemonP;
$tr[] = Paragraphe32("watchdog", "watchdog_amavis_text", "Loadjs('amavis.daemon.watchdog.php')", "watchdog-32.png");
$tr[] = Paragraphe32("postfix_hooking", "postfix_hooking_text", "Loadjs('amavis.index.php?hooking-js=yes')", "folder-equerre-32.png");
$tr[] = Paragraphe32("amavis_wizard_rule_per_user", "amavis_wizard_rule_per_user_text", "Loadjs('amavis.wizard.users.php')", "32-wizard.png");
$tr[] = Paragraphe32("reload_service", "reload_service_text", "AmavisCompileRules()", "service-restart-32.png");
$EnableAmavisInMasterCFT = "{postfix_afterqueue}";
$EnableAmavisInMasterCFE = "{postfix_afterqueue_text}";
//https://192.168.1.213:9000/amavis.daemon.watchdog.php?_=1345459954124
if ($EnableAmavisInMasterCF == 0) {
$EnableAmavisInMasterCFT = "{postfix_beforequeue}";
$EnableAmavisInMasterCFE = "{postfix_beforequeue_text}";
}
$html = "<table style='width:100%'>\n\t<tr>\n\t\t<td width=1% valign='top'>\n\t\t\t<div id='status-{$t}'></div>\n\t\t</td>\n\t\t<td valign='top' style='padding-left:20px'>\n\t\t\t<div style='font-size:32px;margin:bottom:10px;text-align:right'>{APP_AMAVIS}</div>\n\t\t\t" . Paragraphe_switch_img("{EnableAmavisDaemon}", "{AMAVIS_DEF}<br>{$EnableAmavisDaemonP}", "EnableAmavisDaemon", $EnableAmavisDaemon, null, 700) . "\n\t\t\t" . Paragraphe_switch_img("{postfix_afterqueue}", "{postfix_afterqueue_text}", "EnableAmavisInMasterCF", $EnableAmavisInMasterCF, null, 700) . "\n\t\t\t<p class=text-info style='font-size:14px'><strong style='font-size:16px'>{currently}:{$EnableAmavisInMasterCFT}</strong><br>{$EnableAmavisInMasterCFE}</p>\n\t\t\t<hr>\n\t\t\t<div style='width:100%;text-align:right'>" . button("{apply}", "SaveEnablePopupAmavis()", 26) . "</div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\n\tvar x_EnablePopupAmavis= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue);}\t\n\t\tRefreshTab('main_config_amavis');\n\t}\t\n\t\n\t\tfunction EnablePopupAmavis(){\n\t\t\tif(confirm('{$enable_amavisdeamon_ask}')){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('enable-amavis','yes');\n\t\t\t\tAnimateDiv('explain-{$t}');\n\t\t\t\tXHR.sendAndLoad('amavis.daemon.status.php', 'POST',x_EnablePopupAmavis);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction SaveEnablePopupAmavis(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('EnableAmavisDaemon',document.getElementById('EnableAmavisDaemon').value);\n\t\t\tXHR.appendData('EnableAmavisInMasterCF',document.getElementById('EnableAmavisInMasterCF').value);\n\t\t\tXHR.sendAndLoad('amavis.daemon.status.php', 'POST',x_EnablePopupAmavis);\n\t\t}\n\t\n\t\n\t\n\t\tLoadAjax('status-{$t}','{$page}?status=yes&t={$t}');\n\t\t\n\t\t\n\t</script>\n\t\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例2: popup
function popup()
{
$table = popup_table();
$html = "\n\t<p style='font-size:13px'>{smtp_sync_artica_explain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'><div id='sync-table' style='width:100%;height:250px;overflow:auto;padding:3px;border:1px solid #CCCCCC'>{$table}</div></td>\n\t\t<td valign='top' style='padding-left:5px'>" . Paragraphe("sender-relay-table.png", "{smtp_sync_artica_add}", "{smtp_sync_artica_add_text}", "javascript:AddServerSyncArticaSMTP()") . "</td>\n\t</tr>\n\t</table>\n\t\n\t\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例3: enable_feature
function enable_feature(){
$page=CurrentPageName();
$tpl=new templates();
$sock=new sockets();
$t=$_GET["t"];
$EnableSambaVirtualsServers=$sock->GET_INFO("EnableSambaVirtualsServers");
$add=Paragraphe("64-net-server-add.png", "{add_virtual_server}", "{add_smb_virtual_server}","javascript:SambaVirtalServer('')");
$opt= Paragraphe_switch_img("{enable_samba_virtual_servers}", "{enable_samba_virtual_servers_text}","EnableSambaVirtualsServers",$EnableSambaVirtualsServers,null,550);
$tt=time();
$html="
<div id='$tt'></div>
$opt
<hr>
<div style='text-align:right'>". button("{apply}","EnableSambaVirtualsServersSave()",18)."</div>
<script>
var x_EnableSambaVirtualsServersSave=function (obj) {
var results=obj.responseText;
if(results.length>2){alert(results);}
YahooWin3Hide();
$('#flexRT$t').flexReload();
}
function EnableSambaVirtualsServersSave(){
var XHR = new XHRConnection();
XHR.appendData('EnableSambaVirtualsServers',document.getElementById('EnableSambaVirtualsServers').value);
AnimateDiv('$tt');
XHR.sendAndLoad('$page', 'POST',x_EnableSambaVirtualsServersSave);
}
</script>
";
echo $tpl->_ENGINE_parse_body($html);
}
示例4: popup
function popup(){
$tpl=new templates();
$PostfixAutoBlockDenyAddWhiteList=$tpl->_ENGINE_parse_body("{PostfixAutoBlockDenyAddWhiteList}","postfix.index.php");
$add_whitelist=Paragraphe("64-bind9-add-zone.png","$PostfixAutoBlockDenyAddWhiteList","{PostfixAutoBlockDenyAddWhiteList_explain}",
"javascript:PostfixAutoBlockDenyAddWhiteList();");
$html="
<table style='width:100%'>
<tr>
<td valign='top'>
<div style='width:100%;height:300px;overflow:auto' id='BlockDenyAddWhiteList'>".WhiteList()."</div>
</td>
<td valign='top' width=2%>
$add_whitelist
</td>
</tr>
</table>
";
echo $tpl->_ENGINE_parse_body($html,"postfix.index.php");
}
示例5: page
function page()
{
$usersmenus = new usersMenus();
$kas = new kas_filter();
$pattern_date = $kas->GetPatternDate();
$linkPattern = texttooltip('{ave_pattern_date}', '{time_date_com_text_moscow}', 'http://www.timeanddate.com/worldclock/city.html?n=166');
if ($usersmenus->AsPostfixAdministrator == true or $usersmenus->AllowChangeKas == true or $usersmenus->AllowChangeAntiSpamSettings == true) {
} else {
header('location:users.index.php');
exit;
}
$html = "\n<div class='caption'><strong>{$linkPattern}: {$pattern_date}</div>\n<table style='width:600px' align=center>\n<tr>\n<td width=1% valign='top'><img src='img/caterpillarkas.jpg'>\n</td>\n<td valign='top'>\n\t<table>";
if ($usersmenus->AsPostfixAdministrator == true) {
$html = $html . "<tr><td valign='top'> " . Paragraphe('folder-caterpillar.jpg', '{antispam_engine}', '{antispam_engine_text}', 'kas.engine.settings.php') . "</td></tr>\n\t\t<tr><td valign='top' >" . Paragraphe('folder-lego.jpg', '{product_update_settings}', '{product_update_settings_text}', 'kas.keepupd2date.settings.php') . "</td></tr>\n\t\t<tr><td valign='top' >" . Paragraphe('folder-licence.jpg', '{product_licence}', '{product_licence_text}', 'kas.licence.settings.php') . "</td></tr>";
}
if ($usersmenus->AllowChangeKas == true) {
$artica = new artica_general();
if ($artica->EnableGroups == 'yes') {
$html = $html . "<tr><td valign='top'> " . Paragraphe('folder-groupe.jpg', '{antispam_rules_group}', '{antispam_rules_group_text}', 'kas.group.rules.php') . "</td></tr>";
} else {
$html = $html . "<tr><td valign='top'> " . Paragraphe('folder-rules-64.jpg', '{antispam_rules}', '{antispam_rules_text}', 'kas.group.rules.php') . "</td></tr>";
}
}
if ($usersmenus->AllowChangeAntiSpamSettings == true) {
$html = $html . "<tr><td valign='top'> " . Paragraphe('folder-userrules-64.jpg', '{antispam_user_rules}', '{antispam_user_rules_text}', 'kas.user.rules.php') . "</td></tr>";
}
$html = $html . "</table>\n</td>\n</tr>\n</table>\n";
$tpl = new template_users('Kaspersky Anti-spam', $html);
echo $tpl->web_page;
}
示例6: email_list
function email_list()
{
$user = new user($_SESSION["uid"]);
$white = $user->amavisWhitelistSender;
$black = $user->amavisBlacklistSender;
while (list($num, $val) = each($white)) {
$arr[$val] = 0;
}
while (list($num, $val) = each($black)) {
$arr[$val] = 1;
}
if (is_array($arr)) {
ksort($arr);
}
if (!is_array($arr)) {
$arr = array();
}
while (list($num, $val) = each($arr)) {
if ($val == 1) {
$color = "black";
} else {
$color = "white";
}
$row = $row . "<tr>\n\t\t<td valign='top' width=1% style='background-color:{$color};border:1px dotted #CCCCCC;'> </td>\n\t\t<td valign='top' width=99% style='border-bottom:1px solid #CCCCCC'><code><strong style='font-size:13px'>{$num}</td>\n\t\t<td valign='top' width=1% style='border-bottom:1px solid #CCCCCC'>" . imgtootltip('ed_delete.gif', "{delete}:{$num}", "delete_aswbl('{$num}',{$val});") . "</td>\n\t</tr>\n\t\t";
}
$button = Paragraphe("member-add-64.png", '{add_email}', '{add_backlistwhitelist_email}', "javascript:wbladd()", "{add_email}", 220, 70);
$html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t<div style='width:455px;height:400px;overflow:auto'>\n\t\t\t<table style='width:445px;padding:5px;border:1px solid #CCCCCC;padding-bottom:10px'>\n\t\t\t<tr>\n\t\t\t\t<th width=1% nowrap>{email_type}</th>\n\t\t\t\t<th width=99%>{email}</th>\n\t\t\t\t<th width=1% nowrap> </th>\n\t\t\t</tr>\n\t\t\t{$row}\n\t\t\t</table>\n\t\t\t</div>\n\t\t\n\t\t</td>\n\t\t<td valign='top'>{$button}</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例7: smtpd_client_restrictions_popup
function smtpd_client_restrictions_popup()
{
$sock = new sockets();
$users = new usersMenus();
$EnablePostfixAntispamPack_value = $sock->GET_INFO('EnablePostfixAntispamPack');
$EnableGenericrDNSClients = $sock->GET_INFO("EnableGenericrDNSClients");
$reject_forged_mails = $sock->GET_INFO('reject_forged_mails');
$EnablePostfixInternalDomainsCheck = $sock->GET_INFO('EnablePostfixInternalDomainsCheck');
$RestrictToInternalDomains = $sock->GET_INFO('RestrictToInternalDomains');
$reject_unknown_client_hostname = $sock->GET_INFO('reject_unknown_client_hostname');
$reject_unknown_reverse_client_hostname = $sock->GET_INFO('reject_unknown_reverse_client_hostname');
$reject_unknown_sender_domain = $sock->GET_INFO('reject_unknown_sender_domain');
$reject_invalid_hostname = $sock->GET_INFO('reject_invalid_hostname');
$reject_non_fqdn_sender = $sock->GET_INFO('reject_non_fqdn_sender');
$disable_vrfy_command = $sock->GET_INFO('disable_vrfy_command');
if ($EnablePostfixInternalDomainsCheck == null) {
$EnablePostfixInternalDomainsCheck = 0;
}
$whitelists = Paragraphe("routing-domain-relay.png", "{PostfixAutoBlockDenyAddWhiteList}", "{PostfixAutoBlockDenyAddWhiteList_explain}", "javascript:Loadjs('postfix.iptables.php?white-js=yes')");
$rollover = CellRollOver();
if (!$users->POSTFIX_PCRE_COMPLIANCE) {
$EnableGenericrDNSClients = 0;
$EnableGenericrDNSClientsDisabled = 1;
$EnableGenericrDNSClientsDisabledText = "<br><i><span style='color:red;font-size:11px'>{EnableGenericrDNSClientsDisabledText}</span></i>";
}
$t = time();
$page = CurrentPageName();
$html = "\n\n\n\n\n\t<div class=text-info style='font-size:18px'>{smtpd_client_restrictions_text}</div>\n\t<input type='hidden' id='EnableGenericrDNSClientsDisabled' value='{$EnableGenericrDNSClientsDisabled}'>\n\t<div id='smtpd_client_restrictions_div' style='width:98%' class=form>\n\t\n\t" . Paragraphe_switch_img("{disable_vrfy_command}", "{disable_vrfy_command_text}", "disable_vrfy_command-{$t}", $disable_vrfy_command, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_client_hostname}", "{reject_unknown_client_hostname_text}", "reject_unknown_client_hostname-{$t}", $reject_unknown_client_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_reverse_client_hostname}", "{reject_unknown_reverse_client_hostname_text}", "reject_unknown_reverse_client_hostname-{$t}", $reject_unknown_reverse_client_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_sender_domain}", "{reject_unknown_sender_domain_text}", "reject_unknown_sender_domain-{$t}", $reject_unknown_sender_domain, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_invalid_hostname}", "{reject_invalid_hostname_text}", "reject_invalid_hostname-{$t}", $reject_invalid_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_non_fqdn_sender}", "{reject_non_fqdn_sender_text}", "reject_non_fqdn_sender-{$t}", $reject_non_fqdn_sender, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_forged_mails}", "{reject_forged_mails_text}", "reject_forged_mails-{$t}", $reject_forged_mails, null, 900) . "\n\t" . Paragraphe_switch_img("{EnablePostfixAntispamPack}", "{EnablePostfixAntispamPack_text}", "EnablePostfixAntispamPack-{$t}", $EnablePostfixAntispamPack_value, null, 900) . "\n\t" . Paragraphe_switch_img("{EnableGenericrDNSClients}", "{EnableGenericrDNSClients_text}", "EnableGenericrDNSClients-{$t}", $EnableGenericrDNSClients, null, 900) . "\n\t" . Paragraphe_switch_img("{EnablePostfixInternalDomainsCheck}", "{EnablePostfixInternalDomainsCheck_text}", "EnablePostfixInternalDomainsCheck-{$t}", $EnablePostfixInternalDomainsCheck, null, 900) . "\n\t" . Paragraphe_switch_img("{RestrictToInternalDomains}", "{RestrictToInternalDomains_text}", "RestrictToInternalDomains-{$t}", $RestrictToInternalDomains, null, 900) . "\n\t\t\t\n\t\n\t\t\t\t\t\t\n\t</table>\n\t</div>\n\n\t<div style='width:100%;text-align:right'><hr>\n\t" . button("{apply}", "Save{$t}()", 26) . "\n\t\n\t</div>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tYahooWin2Hide();\n\tif(document.getElementById('main_config_postfix_security')){\n\t\tRefreshTab('main_config_postfix_security');\n\t}\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\t\n\t\tXHR.appendData('reject_unknown_client_hostname',document.getElementById('reject_unknown_client_hostname-{$t}').value);\n\t\tXHR.appendData('reject_unknown_reverse_client_hostname',document.getElementById('reject_unknown_reverse_client_hostname-{$t}').value);\n\t\tXHR.appendData('reject_unknown_sender_domain',document.getElementById('reject_unknown_sender_domain-{$t}').value);\n\t\tXHR.appendData('reject_invalid_hostname',document.getElementById('reject_invalid_hostname-{$t}').value);\n\t\tXHR.appendData('reject_non_fqdn_sender',document.getElementById('reject_non_fqdn_sender-{$t}').value);\n\t\tXHR.appendData('EnablePostfixAntispamPack',document.getElementById('EnablePostfixAntispamPack-{$t}').value);\n\t\tXHR.appendData('reject_forged_mails',document.getElementById('reject_forged_mails-{$t}').value);\n\t\tXHR.appendData('EnableGenericrDNSClients',document.getElementById('EnableGenericrDNSClients-{$t}').value);\n\t\tXHR.appendData('EnablePostfixInternalDomainsCheck',document.getElementById('EnablePostfixInternalDomainsCheck-{$t}').value);\n\t\tXHR.appendData('RestrictToInternalDomains',document.getElementById('RestrictToInternalDomains-{$t}').value);\n\t\tXHR.appendData('disable_vrfy_command',document.getElementById('disable_vrfy_command-{$t}').value);\n\t\tXHR.sendAndLoad('{$page}', 'GET',xSave{$t});\t\n\t}\n</script>\t\t\t\n\t";
//smtpd_client_connection_rate_limit = 100
//smtpd_client_recipient_rate_limit = 20
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
示例8: section_template
function section_template()
{
$template = Paragraphe("banned-template-64.png", "{template_label}", '{template_explain}', "javascript:s_PopUp('dansguardian.template.php',800,800)");
$template_form_explain = Paragraphe("template-title-64.png", "{template_white_explain}", '{template_white_explain_text}', "javascript:s_PopUp('dansguardian.whitelist-intro.php',800,800)");
$tr[] = $template;
$tr[] = $template_form_explain;
$tables[] = "<table style='width:100%'><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 == 3) {
$t = 0;
$tables[] = "</tr><tr>";
}
}
if ($t < 3) {
for ($i = 0; $i <= $t; $i++) {
$tables[] = "<td valign='top'> </td>";
}
}
$tables[] = "</table>";
$html = $html . implode("\n", $tables);
$tpl = new templates();
$html = $tpl->_ENGINE_parse_body($html, "squid.newbee.php,squid.index.php");
echo $html;
}
示例9: page
function page()
{
$tpl = new templates();
$page = CurrentPageName();
$instance_id = $_GET["instance-id"];
if (!is_numeric($instance_id)) {
$instance_id = 0;
}
$ssl_conf = Paragraphe("64-ssl-key-params.png", "{ssl_certificate}", "{ssl_certificate_text}", "javascript:Loadjs('postfix.tls.php?js-certificate=yes')");
if ($instance_id > 0) {
$q = new mysqlserver_multi($instance_id);
if ($q->usesocket == 0) {
echo $tpl->_ENGINE_parse_body("<H2>{cannot_use_ssl_no_networking_set}</H2>");
return;
}
$mysqlSSL = $q->mysqlSSL;
$ssl_path = "/etc/ssl/certs/mysql-instance-{$instance_id}-client-download";
$ssl_conf = null;
} else {
$sock = new sockets();
$mysqlSSL = $sock->GET_INFO("mysqlSSL");
$ssl_path = "/etc/ssl/certs/mysql-client-download";
}
if (!is_numeric($mysqlSSL)) {
$mysqlSSL = 0;
}
if (is_file("{$ssl_path}/mysql-ssl-client.tar")) {
$tar = Paragraphe("tar-icon-64.png", "{ssl_keys}", "{ssl_mysql_client_keys}", "javascript:s_PopUp('{$page}?ssl_client-keys=yes&instance-id={$instance_id}',1,1)");
}
$gen = Paragraphe("64-ssl-key.png", "{generate_ssl_keys}", "{generate_ssl_keys_text}", "javascript:GenerateMysqlSSLKeys()");
$enable = Paragraphe_switch_img("{UseSSL}", "{mysql_explain_enable_ssl}", "mysqlSSL{$instance_id}", $mysqlSSL, 400);
$html = "\n\t<input type='hidden' id='mysqlfile_text' value='{mysql_ssl_explain}'>\n\t<div class=explain id='mysqlfile'>{mysql_ssl_explain}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%>{$tar}{$gen}{$ssl_conf}</td>\n\t\t<td valign='top'>{$enable}<div style='text-align:right'><hr>" . button("{apply}", "SaveSSLMysql()") . "</div></td>\n\t</tr>\n\t</table>\n\t\n\t\n\t\n\t<script>\n\t\n\tvar x_SaveSSLMysql=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif (results.length>0){alert(results);}\n\t\t\tdocument.getElementById('mysqlfile').innerHTML=document.getElementById('mysqlfile_text').value;\n\t\t\tvar instance_id={$instance_id};\n\t\t\tif(instance_id>0){RefreshTab('main_config_instance_mysql_multi');return;}\n\t\t\tRefreshTab('main_config_mysql');\n\t\t}\t\n\t\t\n\tvar x_GenerateMysqlSSLKeys=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif (results.length>0){alert(results);}\n\t\t\tdocument.getElementById('mysqlfile').innerHTML=document.getElementById('mysqlfile_text').value;\n\t\t\tvar instance_id={$instance_id};\n\t\t\tif(instance_id>0){RefreshTab('main_config_instance_mysql_multi');return;}\t\t\t\n\t\t\tRefreshTab('main_config_mysql');\n\t\t}\t\t\n\t\n\t\t\t\n\t\tfunction SaveSSLMysql(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('mysqlSSL',document.getElementById('mysqlSSL{$instance_id}').value);\n\t\t\tXHR.appendData('instance-id','{$instance_id}');\n\t\t\tAnimateDiv('mysqlfile');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSSLMysql);\n\t\t\n\t\t}\n\t\t\n\t\tfunction GenerateMysqlSSLKeys(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('GenerateMysqlSSLKeys','yes');\n\t\t\tXHR.appendData('instance-id','{$instance_id}');\n\t\t\tAnimateDiv('mysqlfile');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_GenerateMysqlSSLKeys);\t\t\n\t\t}\n\t\t\n\t</script>\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
示例10: popup
function popup()
{
$sock = new sockets();
$PostfixMultiCreateBubble = $sock->GET_INFO("PostfixMultiCreateBubble");
if (!is_numeric($PostfixMultiCreateBubble)) {
$PostfixMultiCreateBubble = 0;
}
$main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
$EnableSubmission = $main->GET("EnableSubmission");
$TrustMyNetwork = $main->GET("TrustMyNetwork");
if (!is_numeric($TrustMyNetwork)) {
$TrustMyNetwork = 1;
}
$EnableSasl = $main->GET("EnableSasl");
$sasl = Paragraphe_switch_img('{sasl_title}', '{sasl_intro}', 'EnableSasl', $EnableSasl, '{enable_disable}', 300);
if ($PostfixMultiCreateBubble == 1) {
$TrustMyNetwork = "<input type=hidden id='TrustMyNetwork' name=\"TrustMyNetwork\" value='{$TrustMyNetwork}'>" . Paragraphe_switch_disable('{TrustMyNetwork}', '{TrustMyNetwork_text}<hr><i style=color:#9E0000>{PostfixMultiCreateBubbleIsEnabled}</i>', '{TrustMyNetwork_text}', 300);
} else {
$TrustMyNetwork = Paragraphe_switch_img('{TrustMyNetwork}', '{TrustMyNetwork_text}', 'TrustMyNetwork', $TrustMyNetwork, '{enable_disable}', 300);
}
$PostfixEnableSubmission_field = Paragraphe_switch_img('{PostfixEnableSubmission}', '{PostfixEnableSubmission_text}', 'EnableSubmission', $EnableSubmission, '{enable_disable}', 300);
$old = "" . Paragraphe("64-settings-black.png", "{SASL_STATUS}", "{SASL_STATUS_TEXT}", "javascript:SaslStatus();") . "\n\t\t\t{$settings}\n\t\t\t{$smtpd_sasl_exceptions_networks}";
$html = "\n\t<div id='sasl-id'>\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t{$sasl}\n\t\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t\t</td>\n\t<td valign='top'>\n\t\t{$TrustMyNetwork}\n\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2>\n\t\t{$PostfixEnableSubmission_field}\n\t\t<div style='text-align:right'><hr>" . button("{apply}", "postfix_multi_enable_auth()", 16) . "</div>\n\t</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t</div>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'postfix.sasl.php');
}
示例11: computer_list
function computer_list()
{
$userid = new user($_GET["userid"]);
$dn = $userid->dn;
$ldap = new clladp();
$pattern = "(&(objectClass=ComputerAfectation)(cn=*))";
$attr = array();
$sr = @ldap_search($ldap->ldap_connection, $dn, $pattern, $attr);
if (!$sr) {
return null;
}
$hash = ldap_get_entries($ldap->ldap_connection, $sr);
if ($hash["count"] == 0) {
return;
}
for ($i = 0; $i < $hash["count"]; $i++) {
$uid = $hash[$i]["uid"][0];
$mac = $hash[$i]["computermacaddress"][0];
$computer = new computers($uid);
$uid_text = str_replace("\$", "", $uid);
$js = "javascript:Loadjs('computer.infos.php?uid={$uid}');";
$tb[] = "<div style='float:left;margin:3px'>" . Paragraphe("64-computer.png", $uid_text, "<strong>{$mac}<div><i>{$computer->ComputerOS}</i></div><div>{$computer->ComputerIP}</div></strong>", $js) . "</div>";
}
$html = "<div style='width:100%'>" . implode("\n", $tb);
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例12: sugar_must_install
function sugar_must_install()
{
$p = Paragraphe("64-folder-install.png", "{install_your_sugar}", "{install_your_sugar_text}", "javascript:sugarInstall();");
$html = "\n\t\n<H1>{APP_sugar_NOT_INSTALLED}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td>\n\t\t\t<div id='logojoom'><img src='img/98-sugarcrm.png'></div>\n\t\t</td>\n\t\t<td>\n\t\t<div id='joom-content' >{$p}</div>\n\t\t</td>\n\t</tr>\n\t</table>\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例13: status
function status(){
$q=new mysql();
$page=CurrentPageName();
$tpl=new templates();
$total=FormatNumber($q->COUNT_ROWS("dansguardian_community_categories","artica_backup"),0,'.',' ',3);
$sql="SELECT count(*) as tcount FROM `dansguardian_sitesinfos` WHERE `dbpath` = ''";
$ligne=@mysql_fetch_array($q->QUERY_SQL($sql,'artica_backup'));
$pp=Paragraphe("64-categories.png",$ligne["tcount"]." {websites_not_categorized}",
"{websites_not_categorized_text}","javascript:Loadjs('squid.visited.php')",null,300,76);
$html="
<table style='width:100%'>
<tr>
<td valign='top'><img src='img/webfilter-community-128.png'></td>
<td valign='top' width=99%'>
<div class=explain>{APP_WEBFILTER_COMMUNITY_EXPLAIN}</div>
<div style='font-size:14px;font-weight:bold'>$total {websites} ({community})</div>
$pp
</td>
</tr>
</table>
";
echo $tpl->_ENGINE_parse_body($html);
}
示例14: tools
function tools()
{
$lvs = $_GET["lvs"];
$vg = $_GET["vg"];
$md = md5("{$vg}{$lvs}");
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$array = unserialize(base64_decode($sock->getFrameWork("lvm.php?lvdisplay=" . urlencode($vg))));
$status = $array["/dev/{$vg}/{$lvs}"];
$UUID = $status["UUID"];
$mke2fs = Paragraphe("rename-disk-64.png", "{create_filesystem}", "{create_filesystem_text}", "javascript:lvsmke2fs()");
$autofsp = Paragraphe("database-connect-64-2.png", "{automount}", "{automount_this_disk}", "javascript:lvsAutofs()");
$autofs = new autofs();
$hash = $autofs->list_byuuid($status["INFOS"]["UUID"]);
if (count($hash) > 0) {
$autofsp = Paragraphe("database-disconnect-64.png", "{disconnect}", "{disconnect_this_disk}", "javascript:lvsAutofsDel()");
}
if ($status["INFOS"]["MAGIC_NUMBER"] != null) {
$mke2fs = Paragraphe("rename-disk-64-grey.png", "{create_filesystem}", "{create_filesystem_text}", "");
}
if ($status["INFOS"]["UUID"] == null) {
$autofsp = Paragraphe("database-connect-64-2-grey.png", "{automount}", "{automount_this_disk}", "");
}
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td><div id='mke2fs-task'>{$mke2fs}</div></td>\n\t\t<td>{$autofsp}</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\tvar x_lvsmke2fs= function (obj) {\n\t\t\t\tvar results=obj.responseText;\n\t\t\t\tif(results.length>0){alert(results);}\n\t\t\t\tRefreshTab('{$md}');\n\t\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\tfunction lvsmke2fs(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('lvsmke2fs','yes');\n\t\t\t\tXHR.appendData('vg','{$vg}');\n\t\t\t\tXHR.appendData('lvs','{$lvs}');\n\t\t\t\tdocument.getElementById('mke2fs-task').innerHTML='<center><img src=\"img/wait_verybig.gif\"></center>';\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_lvsmke2fs);\n\t\t\t}\n\t\t\t\n\t\tfunction lvsAutofs(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('autofs','yes');\n\t\t\t\tXHR.appendData('vg','{$vg}');\n\t\t\t\tXHR.appendData('lvs','{$lvs}');\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_lvsmke2fs);\t\t\n\t\t}\n\t\t\n\t\tfunction lvsAutofsDel(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('autofs-remove','yes');\n\t\t\t\tXHR.appendData('vg','{$vg}');\n\t\t\t\tXHR.appendData('lvs','{$lvs}');\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_lvsmke2fs);\t\t\n\t\t}\t\t\n\t\t\n\t\t\n\t\n\t</script>";
echo $tpl->_ENGINE_parse_body($html);
}
示例15: tools
function tools()
{
$page = CurrentPageName();
$users = new usersMenus();
$tpl = new templates();
$update = Paragraphe("folder-update.png", "{update_now}", "{blklist_update_now_text}", "javascript:UpdateBLKNOW()");
$tr[] = $update;
$tables[] = "<table style='width:100%'><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'> </td>";
}
}
$tables[] = "</table>";
$scripts = "\n\t<div id='animateBlcklist'></div>\n\t" . @implode("\n", $tables) . "\n\t<script>\n\t\tvar x_UpdateBLKNOW= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t RefreshTab('squid_main_blacklists');\n\t\t}\t\n\t\n\t\tfunction UpdateBLKNOW(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tXHR.appendData('update-now','yes');\n\t\t\t\tAnimateDiv('animateBlcklist');\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_UpdateBLKNOW);\t\t\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t</script>\n\t\n\t";
echo $tpl->_ENGINE_parse_body($scripts);
}