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


PHP Field_password函数代码示例

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


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

示例1: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $tcp = new networking();
    $EnableDNSLinker = $sock->GET_INFO("EnableDNSLinker");
    $EnableDNSLinkerCreds = unserialize(base64_decode($sock->GET_INFO("EnableDNSLinkerCreds")));
    if (preg_match("#^(.+?):#", $EnableDNSLinkerCreds["CREDS"], $re)) {
        $SuperAdmin = $re[1];
    }
    $hostname = $EnableDNSLinkerCreds["hostname"];
    $listen_port = $EnableDNSLinkerCreds["listen_port"];
    $listen_ip = $EnableDNSLinkerCreds["listen_addr"];
    $send_listen_ip = $EnableDNSLinkerCreds["send_listen_ip"];
    if (!is_numeric($EnableDNSLinker)) {
        $EnableDNSLinker = 0;
    }
    if (!is_numeric($listen_port)) {
        $listen_port = 9000;
    }
    $t = time();
    $p = Paragraphe_switch_img("{activate_dns_linker}", "{activate_dns_linker_text}", "EnableDNSLinker", $EnableDNSLinker, null, 500);
    $ips = $tcp->ALL_IPS_GET_ARRAY();
    $html = "<table style='width:100%' class=form>\n\t<tr>\n\t\t<td colspan=2>{$p}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{hostname}:</td>\n\t\t<td>" . Field_text("hostname-{$t}", $hostname, "font-size:16px;width:99%") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{listen_port}:</td>\n\t\t<td>" . Field_text("listen_port-{$t}", $listen_port, "font-size:16px;width:90px") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{SuperAdmin}:</td>\n\t\t<td>" . Field_text("SuperAdmin", $SuperAdmin, "font-size:16px;width:99%") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{password}:</td>\n\t\t<td>" . Field_password("SuperAdminPass", null, "font-size:16px;width:70%") . "</td>\n\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{listen_ip}:</td>\n\t\t\t<td>" . Field_array_Hash($ips, "listen_addr-{$t}", $listen_ip, "style:font-size:16px;padding:3px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{send_listen_ip}:</td>\n\t\t\t<td>" . Field_array_Hash($ips, "send_listen_ip-{$t}", $send_listen_ip, "style:font-size:16px;padding:3px") . "</td>\n\t\t</tr>\t\t\t\t\t\t\t\t\t\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", "18") . "</td>\n\t</tr>\t\t\t\t\t\t\t\t\n\t</table>\t\t\n\t<script>\n\t\n\tvar x_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tYahooWin3Hide();\n\t}\t\n\t\t\n\t\tfunction Save{$t}(){\n\t\t\tvar SuperAdminPass=document.getElementById('SuperAdminPass').value;\n\t\t\tif(SuperAdminPass.length==0){\n\t\t\t\talert('Please, define the password...\\n');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar pp=encodeURIComponent(document.getElementById('SuperAdminPass').value);\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('EnableDNSLinker',document.getElementById('EnableDNSLinker').value);\n\t\t\tXHR.appendData('SuperAdmin',document.getElementById('SuperAdmin').value);\n\t\t\tXHR.appendData('hostname',document.getElementById('hostname-{$t}').value);\n\t\t\tXHR.appendData('listen_port',document.getElementById('listen_port-{$t}').value);\n\t\t\tXHR.appendData('listen_addr',document.getElementById('listen_addr-{$t}').value);\n\t\t\tXHR.appendData('send_listen_ip',document.getElementById('send_listen_ip-{$t}').value);\n\t\t\tXHR.appendData('SuperAdminPass',pp);\n\t\t\tAnimateDiv('EnableDNSLinker_img');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_Save{$t});\t\t\t\n\t\t\n\t\t}\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:dns.linker.php

示例2: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $taskid = $_GET["taskid"];
    $index = $_GET["index"];
    $buttonname = "{add}";
    if (!is_numeric($index)) {
        $index = -1;
    }
    if ($index > -1) {
        $buttonname = "{apply}";
        $sql = "SELECT datasbackup FROM backup_schedules WHERE ID='{$taskid}'";
        $q = new mysql();
        $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
        $ressources = unserialize(base64_decode($ligne["datasbackup"]));
        preg_match("#WEBGET:(.*)#", $ressources[$index], $re);
        $ligne = unserialize(base64_decode($re[1]));
        $copy = imgtootltip("img/copy-16.png", "{copy}", "CopyWebGetSite('{$re[1]}')");
    }
    if ($_GET["CopyFrom"] != null) {
        $ligne = unserialize(base64_decode($_GET["CopyFrom"]));
        unset($ligne["RemoteArticaSite"]);
    }
    if (!is_numeric($ligne["RemoteArticaPort"])) {
        $ligne["RemoteArticaPort"] = 9000;
    }
    $html = "\n\t<div id='{$t}'>\n\t<div style='float:right;margin-bottom:10px'>{$copy}</div>\n\t</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{remote_artica_server}:</td>\n\t\t<td>" . Field_text("RemoteArticaServer-{$t}", $ligne["RemoteArticaServer"], "font-size:14px;width:220px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{remote_artica_port}:</td>\n\t\t<td>" . Field_text("RemoteArticaPort-{$t}", $ligne["RemoteArticaPort"], "font-size:14px;width:90px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{username}:</td>\n\t\t<td>" . Field_text("RemoteArticaUser-{$t}", $ligne["RemoteArticaUser"], "font-size:14px;width:220px") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{password}:</td>\n\t\t<td>" . Field_password("RemoteArticaPassword-{$t}", $ligne["RemoteArticaPassword"], "font-size:14px;width:220px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{sitename}:</td>\n\t\t<td>" . Field_text("RemoteArticaSite-{$t}", $ligne["RemoteArticaSite"], "font-size:14px;width:220px") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{auto-restore}:</td>\n\t\t<td>" . Field_checkbox("AutoRestore-{$t}", 1, $ligne["AutoRestore"], "DefaultCheck{$t}()") . "</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{mysql_instance}:</td>\n\t\t<td><span id='freeweb-mysql-instances-{$t}'></span></td>\n\t</tr>\t\n\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{sitename}:</td>\n\t\t<td>" . Field_text("AutoRestoreSiteName-{$t}", $ligne["AutoRestoreSiteName"], "font-size:14px;width:99%") . "</td>\n\t</tr>\t\n\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button($buttonname, "SaveConfig{$t}()", 16) . "</td>\n\t</tr>\n\t</table>\n<script>\n\tvar x_SaveConfig{$t}= function (obj) {\n\t\t\tvar index={$index};\n\t\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue);return;};\n\t\t\tif(document.getElementById('backup-sources-table-list')){ \$('#backup-sources-table-list').flexReload(); }\n\t\t\tif(document.getElementById('table-backup-tasks')){ \$('#table-backup-tasks').flexReload(); }\n\t\t\tif(index<0){ YahooWin4Hide(); }\n\t\t\t\n\t\t }\t\n\n\tfunction SaveConfig{$t}(){\n\t\t\tif(!document.getElementById('AutoRestoreSqlInstance-{$t}')){alert('AutoRestoreSqlInstance-{$t} no such id');return;}\n\t\t\tvar tt=document.getElementById('RemoteArticaSite-{$t}').value;\n\t\t\tif(tt.length<3){return;}\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('taskid',{$taskid});\n\t\t\tXHR.appendData('index','{$index}');\n\t\t\tXHR.appendData('RemoteArticaServer',document.getElementById('RemoteArticaServer-{$t}').value);\n\t\t\tXHR.appendData('RemoteArticaPort',document.getElementById('RemoteArticaPort-{$t}').value);\n\t\t\tXHR.appendData('RemoteArticaUser',document.getElementById('RemoteArticaUser-{$t}').value);\n\t\t\tXHR.appendData('RemoteArticaSite',document.getElementById('RemoteArticaSite-{$t}').value);\n\t\t\tvar pp=encodeURIComponent(document.getElementById('RemoteArticaPassword-{$t}').value);\n\t\t\tif(document.getElementById('AutoRestore-{$t}').checked){XHR.appendData('AutoRestore',1);}else{XHR.appendData('AutoRestore',0);}\n\t\t\tXHR.appendData('AutoRestoreSiteName',document.getElementById('AutoRestoreSiteName-{$t}').value);\n\t\t\tXHR.appendData('AutoRestoreSqlInstance',document.getElementById('AutoRestoreSqlInstance-{$t}').value);\n\t\t\tXHR.appendData('RemoteArticaPassword',pp);\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveConfig{$t});\n\t\t\tAnimateDiv('{$t}');\n\t\n\t}\n\n\tfunction CopyWebGetSite(hash){\n\t\tLoadjs('{$page}?CopyFrom='+hash+'&taskid={$taskid}');\n\t}\n\n\tfunction freeweb_mysql_instances{$t}(){\n\t\tLoadAjaxTiny('freeweb-mysql-instances-{$t}','freeweb.edit.php?freeweb-mysql-instances-field=yes&servername=&t={$t}&default-value={$ligne["AutoRestoreSqlInstance"]}&field-name=AutoRestoreSqlInstance-{$t}');\n\t}\n\t\n\tfunction DefaultCheck{$t}(){\n\t\tdocument.getElementById('AutoRestoreSiteName-{$t}').disabled=true;\n\t\tif(document.getElementById('AutoRestoreSqlInstance-{$t}')){document.getElementById('AutoRestoreSqlInstance-{$t}').disabled=true;}\n\t\t\n\t\tif(document.getElementById('AutoRestore-{$t}').checked){\n\t\t\tdocument.getElementById('AutoRestoreSiteName-{$t}').disabled=false;\n\t\t\tif(document.getElementById('AutoRestoreSqlInstance-{$t}')){document.getElementById('AutoRestoreSqlInstance-{$t}').disabled=false;}\n\t\t}\n\t\t\n\t}\n\tfunction mysql_instance_id_check(){}\n\t\n\tfreeweb_mysql_instances{$t}();\n\tDefaultCheck{$t}();\n\n\n\n</script>\t\n\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:backup.sources.WebGet.php

示例3: popup

function popup()
{
    $user = new user($_SESSION["uid"]);
    $SenderParams = $user->SenderCanonicalSMTPRelay();
    $host = $SenderParams["HOST"];
    $auth = $SenderParams["AUTH"];
    $edit_b = button("{edit}", "SaveUserSenderTransport()");
    $delete_b = button("{edit}", "DeleteUserSenderSettings()");
    $users = new usersMenus();
    if (!$user->AllowSenderCanonical) {
        $edit_b = button_hidden();
        $delete_b = null;
    }
    if ($host != null) {
        $dom = new DomainsTools();
        $arr = $dom->transport_maps_explode($user->AlternateSmtpRelay);
    }
    if ($arr[2] == null) {
        $arr[2] = 25;
    }
    $server = $arr[1];
    $port = $arr[2];
    if (preg_match("#(.+?):(.+)#", $auth, $re)) {
        $username = $re[1];
        $password = $re[2];
    }
    $t = ParagrapheTXT("{sender_user_explain}");
    $html = "\n\t\n\t{$t}\n\t<div id='sasltransport'>\n\t<table class=table_form>\n\t<tr>\n\t\t<td class=legend nowrap>{sender_canonical}:</td>\n\t\t<td>" . Field_text("sender_canonical", $user->SenderCanonical) . "</td>\n\t</tr>\n\t\t<tr>\n\t\t<td colspan=2 align=right><br>{$edit_b}</td>\n\t</tr>\n\t</table\t>\n\t\n\t<H3>{smtp_internet_relay_option}</H3>\n\t<table class=table_form>\n\t<tr>\n\t\t<td class=legendl nowrap align='left'>{relay_address}:</td>\n\t\t<td class=legendl nowrap align='left'>{listen_port}:</td>\n\t</tr>\n\t<tr>\n\t\t<td>" . Field_text("relay_address", $server) . "</td>\n\t\t<td>" . Field_text("relay_port", $port, "width:40px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2>&nbsp;</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legendl nowrap align='left'>{username}:</td>\n\t\t<td class=legendl nowrap align='left'>{password}:</td>\n\t</tr>\t\n\n\t<tr>\n\t\t<td>" . Field_text("sasl_username", $username) . "</td>\n\t\t<td>" . Field_password("sasl_password", $password, "") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td><br>{$delete_b}</td>\n\t\t<td><br>{$edit_b}</td>\n\t</tr>\n\t</table>\n\t</div>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:31,代码来源:sender.settings.php

示例4: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $ID = $_GET["ID"];
    $sql = "SELECT * FROM webfilter_rules WHERE ID={$ID}";
    $ligne = mysql_fetch_array($q->QUERY_SQL($sql));
    $more8chars = $tpl->javascript_parse_text("{more8chars}");
    if ($ID == 0) {
        $sock = new sockets();
        $ligne = unserialize(base64_decode($sock->GET_INFO("DansGuardianDefaultMainRule")));
    }
    if ($ligne["BypassSecretKey"] == null) {
        $ligne["BypassSecretKey"] = md5(time());
    }
    $TIMES[0] = "{none}";
    $TIMES[300] = "5 {minutes}";
    $TIMES[900] = "15 {minutes}";
    $TIMES[1800] = "30 {minutes}";
    $TIMES[3600] = "1 {hour}";
    $TIMES[7200] = "2 {hours}";
    $TIMES[14400] = "4 {hours}";
    $t = time();
    $html = "\n\t<div id='{$t}'>\n\t<div class=text-info style='font-size:14px'>{TemporaryDeniedPageBypassExplain}<br>{BypassSecretKeyExplain}</div>\n\t<table style='width:99%' class=form>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{bypassFor}:</td>\n\t\t\t<td>" . Field_array_Hash($TIMES, "bypass{$t}", $ligne["bypass"], "style:font-size:16px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:16px'>{BypassSecretKey}:</td>\n\t\t\t<td>" . Field_password("BypassSecretKey{$t}", $ligne["BypassSecretKey"], "font-size:16px;width:220px") . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "bypassForSave()") . "</td>\n\t\t</tr>\n\t\t\n\t</tbody>\n\t</table>\n\t</div>\n\t<script>\n\tvar x_bypassForSave= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tvar ID='{$ID}';\n\t\tif (res.length>3){alert(res);}\n\t\tYahooWin4Hide();\n\t}\n\t\n\t\tfunction bypassForSave(){\n\t\t      var XHR = new XHRConnection();\n\t\t      \n\t\t      var bypass=document.getElementById('bypass{$t}').value;\n\t\t      if(bypass.length<8){alert('{$more8chars}');return;}\n\t\t      XHR.appendData('bypass', document.getElementById('bypass{$t}').value);\n\t\t      XHR.appendData('BypassSecretKey', document.getElementById('BypassSecretKey{$t}').value);\n\t\t      XHR.appendData('ID','{$ID}');\n\t\t      AnimateDiv('{$t}');\n\t\t      XHR.sendAndLoad('{$page}', 'POST',x_bypassForSave);  \t\t\n\t\t}\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:dansguardian2.bypass.php

示例5: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $users = new usersMenus();
    $ZarafaMySQLServiceType = $sock->GET_INFO("ZarafaMySQLServiceType");
    if (!is_numeric($ZarafaMySQLServiceType)) {
        $ZarafaMySQLServiceType = 1;
    }
    $ZarafaDedicateMySQLServer = $sock->GET_INFO("ZarafaDedicateMySQLServer");
    if (!is_numeric($ZarafaDedicateMySQLServer)) {
        $ZarafaDedicateMySQLServer = 0;
    }
    $arraySRV[1] = "{main_mysql_server_1}";
    $arraySRV[2] = "{main_mysql_server_2}";
    if ($ZarafaDedicateMySQLServer == 1) {
        $arraySRV[3] = "{main_mysql_server_3}";
    }
    $arraySRV[4] = "{main_mysql_server_4}";
    $t = time();
    $ZarafaRemoteMySQLServer = $sock->GET_INFO("ZarafaRemoteMySQLServer");
    $ZarafaRemoteMySQLServerPort = $sock->GET_INFO("ZarafaRemoteMySQLServerPort");
    $ZarafaRemoteMySQLServerAdmin = $sock->GET_INFO("ZarafaRemoteMySQLServerAdmin");
    $ZarafaRemoteMySQLServerPassword = $sock->GET_INFO("ZarafaRemoteMySQLServerPassword");
    if (!is_numeric($ZarafaRemoteMySQLServerPort)) {
        $ZarafaRemoteMySQLServerPort = 3306;
    }
    $DropDownF = Field_array_Hash($arraySRV, "ZarafaMySQLServiceType", $ZarafaMySQLServiceType, "ZarafaMySQLServiceTypeForm()", null, 0, "font-size:18px");
    $html = "\n\t<div id='{$t}'></div>\n\t<div class=explain id='zarafa_mysql_tuning_text' style='font-size:16px'>{zarafa_mysql_params_text}</div>\n\t\n\t<table style='width:99%' class=form>\n\t<tR>\n\t\t<td class=legend style='font-size:16px'>{mysql_server}:</td>\n\t\t<td>{$DropDownF}</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{remote_mysql_server}:</td>\n\t\t<td style='font-size:18px'>" . Field_text("ZarafaRemoteMySQLServer", $ZarafaRemoteMySQLServer, "font-size:18px;width:190px") . "</td>\n\t\t<td width=1%></td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{mysql_server_port}:</td>\n\t\t<td style='font-size:18px'>" . Field_text("ZarafaRemoteMySQLServerPort", $ZarafaRemoteMySQLServerPort, "font-size:18px;width:90px") . "</td>\n\t\t<td width=1%></td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{mysql_admin}:</td>\n\t\t<td style='font-size:18px'>" . Field_text("ZarafaRemoteMySQLServerAdmin", $ZarafaRemoteMySQLServerAdmin, "font-size:18px;width:190px") . "</td>\n\t\t<td width=1%></td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{password}:</td>\n\t\t<td style='font-size:18px'>" . Field_password("ZarafaRemoteMySQLServerPassword", $ZarafaRemoteMySQLServerPassword, "font-size:18px;width:190px") . "</td>\n\t\t<td width=1%></td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td colspan=3 align=right><hr>" . button("{apply}", "ZarafaSave{$t}()", 24) . "</td>\n\t</tr>\t\n</table>\n<script>\n\tfunction ZarafaMySQLServiceTypeForm(){\n\t\tdocument.getElementById('ZarafaRemoteMySQLServer').disabled=true;\n\t\tdocument.getElementById('ZarafaRemoteMySQLServerPort').disabled=true;\n\t\tdocument.getElementById('ZarafaRemoteMySQLServerAdmin').disabled=true;\n\t\tdocument.getElementById('ZarafaRemoteMySQLServerPassword').disabled=true;\n\t\tif(document.getElementById('ZarafaMySQLServiceType').value==4){\n\t\t\tdocument.getElementById('ZarafaRemoteMySQLServer').disabled=false;\n\t\t\tdocument.getElementById('ZarafaRemoteMySQLServerPort').disabled=false;\n\t\t\tdocument.getElementById('ZarafaRemoteMySQLServerAdmin').disabled=false;\n\t\t\tdocument.getElementById('ZarafaRemoteMySQLServerPassword').disabled=false;\n\t\t}\n\t\n\t}\n\tvar x_ZarafaSave{$t}= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\tif(tempvalue.length>3){alert(tempvalue);}\n\t\t\n\t\t}\t\n\t\n\tfunction ZarafaSave{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar pp=encodeURIComponent(document.getElementById('ZarafaRemoteMySQLServerPassword').value);\n\t\tXHR.appendData('ZarafaMySQLServiceType',document.getElementById('ZarafaMySQLServiceType').value);\n\t\tXHR.appendData('ZarafaRemoteMySQLServer',document.getElementById('ZarafaRemoteMySQLServer').value);\n\t\tXHR.appendData('ZarafaRemoteMySQLServerPort',document.getElementById('ZarafaRemoteMySQLServerPort').value);\n\t\tXHR.appendData('ZarafaRemoteMySQLServerAdmin',document.getElementById('ZarafaRemoteMySQLServerAdmin').value);\n\t\tXHR.appendData('ZarafaRemoteMySQLServerPassword',pp);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_ZarafaSave{$t});\n\t\n\t}\n\t\nZarafaMySQLServiceTypeForm();\n</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:zarafa.mysqlparams.php

示例6: Page

function Page()
{
    $ruleid = $_GET["ID"];
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new wifidog_settings($ruleid);
    $wifidog_templates = new wifidog_templates($_GET["ruleid"]);
    $ArticaHotSpotNowPassword = intval($sock->GET_INFO("ArticaHotSpotNowPassword"));
    $ENABLED_REDIRECT_LOGIN = intval($sock->GET_INFO("ENABLED_REDIRECT_LOGIN"));
    $USE_TERMS = intval($sock->GET_INFO("USE_TERMS"));
    $REGISTER_MAX_TIME = $sock->GET_INFO("REGISTER_MAX_TIME");
    $smtp_server_port = intval(trim($sock->GET_INFO("smtp_server_port")));
    if ($smtp_server_port == 0) {
        $smtp_server_port = 25;
    }
    if ($REGISTER_MAX_TIME < 5) {
        $REGISTER_MAX_TIME = 5;
    }
    $Timez[5] = "5 {minutes}";
    $Timez[10] = "10 {minutes}";
    $Timez[15] = "15 {minutes}";
    $Timez[30] = "30 {minutes}";
    $Timez[60] = "1 {hour}";
    $html = "\n\t<div style='width:100%;font-size:30px;margin-bottom:20px'>{self_register} SMTP</div>\t\t\n\t<div style='width:98%' class=form>\n\t\t\t\n" . Paragraphe_switch_img("{enable_hotspot_smtp}", "{enable_hotspot_smtp_explain}", "ENABLED_SMTP-{$t}", intval($sock->GET_INFO("ENABLED_SMTP")), null, 1090) . "\t\t\t\n\t\t\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px' style='width:600px'>{max_time_register}:</td>\n\t\t<td>" . Field_array_Hash($Timez, "REGISTER_MAX_TIME-{$t}", $REGISTER_MAX_TIME, "style:font-size:22px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_register_message}:</td>\n\t\t<td><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='REGISTER_MESSAGE-{$t}'>{$wifidog_templates->REGISTER_MESSAGE}</textarea>\n\t\t</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_register_subject}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='REGISTER_SUBJECT-{$t}'>{$wifidog_templates->REGISTER_SUBJECT}</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_confirm}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='CONFIRM_MESSAGE-{$t}'>{$wifidog_templates->CONFIRM_MESSAGE}</textarea>\n\t\t</td>\n\t</tr>\n\t\n\t\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{lost_password_text}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='LostPasswordLink-{$t}'>{$wifidog_templates->LostPasswordLink}</textarea>\n\t\t</td>\n\t</tr>\n\t\n\t\n\t\t\t\t\t\n\t\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_server_name}:</strong></td>\n\t\t<td>" . Field_text("smtp_server_name-{$t}", trim($sock->GET_INFO("smtp_server_name")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_server_port}:</strong></td>\n\t\t<td>" . Field_text("smtp_server_port-{$t}", $smtp_server_port, 'font-size:22px;padding:3px;width:110px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_sender}:</strong></td>\n\t\t<td>" . Field_text("smtp_sender-{$t}", trim($sock->GET_INFO("smtp_sender")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\n\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_auth_user}:</strong></td>\n\t\t<td>" . Field_text("smtp_auth_user-{$t}", trim($sock->GET_INFO("smtp_auth_user")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_auth_passwd}:</strong></td>\n\t\t<td>" . Field_password("smtp_auth_passwd-{$t}", trim($sock->GET_INFO("smtp_auth_passwd")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t\t\t\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{tls_enabled}:</strong></td>\n\t\t<td>" . Field_checkbox_design("tls_enabled-{$t}", 1, $sock->GET_INFO("tls_enabled")) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2>\n\t\t\t\t" . button('{test}', "TestSMTP{$t}();", 32) . "&nbsp;" . button('{apply}', "Save{$t}();", 32) . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#HOSTPOT_RULES').flexReload();\n\t}\t\n\t\n\tfunction TestSMTP{$t}(){\n\t\tSave{$t}();\n\t\tLoadjs('{$page}?test-smtp-js=yes&ruleid={$ruleid}');\n\t}\n\t\n\tfunction Save{$t}(){\n\t\tvar pp=encodeURIComponent(document.getElementById('smtp_auth_passwd-{$t}').value);\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ruleid',{$ruleid});\n\t\tXHR.appendData('ENABLED_SMTP',encodeURIComponent(document.getElementById('ENABLED_SMTP-{$t}').value));\n\t\tXHR.appendData('REGISTER_SUBJECT',encodeURIComponent(document.getElementById('REGISTER_SUBJECT-{$t}').value));\n\t\tXHR.appendData('REGISTER_MESSAGE',encodeURIComponent(document.getElementById('REGISTER_MESSAGE-{$t}').value));\n\t\tXHR.appendData('LostPasswordLink',encodeURIComponent(document.getElementById('LostPasswordLink-{$t}').value));\n\t\tXHR.appendData('REGISTER_MAX_TIME',encodeURIComponent(document.getElementById('REGISTER_MAX_TIME-{$t}').value));\n\t\tXHR.appendData('CONFIRM_MESSAGE',encodeURIComponent(document.getElementById('CONFIRM_MESSAGE-{$t}').value));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(document.getElementById('tls_enabled-{$t}').checked){XHR.appendData('tls_enabled',1);}else{XHR.appendData('tls_enabled',0); }\n\t\tXHR.appendData('smtp_server_name',encodeURIComponent(document.getElementById('smtp_server_name-{$t}').value));\n\t\tXHR.appendData('smtp_server_port',encodeURIComponent(document.getElementById('smtp_server_port-{$t}').value));\n\t\tXHR.appendData('smtp_sender',encodeURIComponent(document.getElementById('smtp_sender-{$t}').value));\n\t\tXHR.appendData('smtp_auth_user',encodeURIComponent(document.getElementById('smtp_auth_user-{$t}').value));\n\t\tXHR.appendData('smtp_auth_passwd',pp);\n\t\tXHR.appendData('smtp_notifications-{$t}','yes');\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\n\t}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:webauth.rules.smtp.php

示例7: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $ArticaMetaAddNewServ = unserialize($sock->GET_INFO("ArticaMetaAddNewServ"));
    $ArticaMetaHost = $ArticaMetaAddNewServ["ArticaMetaHost"];
    $ArticaMetaPort = $ArticaMetaAddNewServ["ArticaMetaPort"];
    $ArticaMetaUsername = $ArticaMetaAddNewServ["ArticaMetaUsername"];
    $ArticaMetaPassword = $ArticaMetaAddNewServ["ArticaMetaPassword"];
    $ArticaMetaServHost = $ArticaMetaAddNewServ["ArticaMetaServHost"];
    $ArticaMetaServPort = $ArticaMetaAddNewServ["ArticaMetaServPort"];
    $change_uuid = $ArticaMetaAddNewServ["change_uuid"];
    $t = time();
    if (!is_numeric($ArticaMetaPort)) {
        $ArticaMetaPort = 9000;
    }
    if (!is_numeric($ArticaMetaServPort)) {
        $ArticaMetaServPort = 9000;
    }
    if ($ArticaMetaServHost == null) {
        $ArticaMetaServHost = $_SERVER["SERVER_NAME"];
    }
    if ($ArticaMetaUsername == null) {
        $ArticaMetaUsername = "Manager";
    }
    $html = "\t<div style='width:98%' class=form>\n\t\t<table style='width:100%'>\n\t\t\t\t\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{hostname} (client):</td>\n\t\t\t<td style='font-size:18px'>" . Field_text("ArticaMetaHost-{$t}", $ArticaMetaHost, "font-size:18px;width:240px") . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{change_uuid}:</td>\n\t\t\t<td style='font-size:18px'>" . Field_checkbox("change_uuid-{$t}", 1, $change_uuid) . "</td>\n\t\t</tr>\t\t\t\t\t\t\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{port}:</td>\n\t\t\t<td style='font-size:18px'>" . Field_text("ArticaMetaPort-{$t}", $ArticaMetaPort, "font-size:18px;width:110px") . "</td>\n\t\t</tr>\t\t\t\t\n\t\t\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{username}:</td>\n\t\t\t<td style='font-size:18px'>" . Field_text("username-{$t}", $ArticaMetaUsername, "font-size:18px;width:240px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{password}:</td>\n\t\t\t<td style='font-size:18px'>" . Field_password("password-{$t}", $ArticaMetaPassword, "font-size:18px;width:240px") . "</td>\n\t\t</tr>\n\t\t<tr><td colspan=2><hr></td></tR>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{hostname} ({server_mode}):</td>\n\t\t\t<td style='font-size:18px'>" . Field_text("ArticaMetaServHost-{$t}", $ArticaMetaServHost, "font-size:18px;width:240px") . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{port} ({server_mode}):</td>\n\t\t\t<td style='font-size:18px'>" . Field_text("ArticaMetaServPort-{$t}", $ArticaMetaServPort, "font-size:18px;width:110px") . "</td>\n\t\t</tr>\t\t\n\t\t\n\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{add}", "Save{$t}()", 24) . "</td>\n\t\t</tr>\n\t\t</table>\n\t\t\t\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);return;}\n\t\tLoadjs('artica-meta.NewServ.progress.php');\n\t}\n\t\n\t\n\tfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tchange_uuid=0;\n\tif(document.getElementById('change_uuid-{$t}').checked){change_uuid=1;}\n\tXHR.appendData('ArticaMetaHost',document.getElementById('ArticaMetaHost-{$t}').value);\n\tXHR.appendData('ArticaMetaPort',document.getElementById('ArticaMetaPort-{$t}').value);\n\tXHR.appendData('ArticaMetaServHost',document.getElementById('ArticaMetaServHost-{$t}').value);\n\tXHR.appendData('ArticaMetaServPort',document.getElementById('ArticaMetaServPort-{$t}').value);\n\t\n\tXHR.appendData('change_uuid',change_uuid);\n\t\n\tXHR.appendData('ArticaMetaUsername',document.getElementById('username-{$t}').value);\n\tXHR.appendData('ArticaMetaPassword',encodeURIComponent(document.getElementById('password-{$t}').value));\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t}\n\t\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:artica-meta.NewServ.php

示例8: Page

function Page()
{
    $ruleid = $_GET["ID"];
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new wifidog_settings($ruleid);
    $wifidog_templates = new wifidog_templates($ruleid);
    $ArticaHotSpotNowPassword = intval($sock->GET_INFO("ArticaHotSpotNowPassword"));
    $ENABLED_REDIRECT_LOGIN = intval($sock->GET_INFO("ENABLED_REDIRECT_LOGIN"));
    $USE_TERMS = intval($sock->GET_INFO("USE_TERMS"));
    $REGISTER_MAX_TIME = $sock->GET_INFO("REGISTER_MAX_TIME");
    $smtp_server_port = intval(trim($sock->GET_INFO("smtp_server_port")));
    if ($smtp_server_port == 0) {
        $smtp_server_port = 25;
    }
    if ($REGISTER_MAX_TIME < 5) {
        $REGISTER_MAX_TIME = 5;
    }
    $Timez[5] = "5 {minutes}";
    $Timez[10] = "10 {minutes}";
    $Timez[15] = "15 {minutes}";
    $Timez[30] = "30 {minutes}";
    $Timez[60] = "1 {hour}";
    $html = "\n\t<div style='width:100%;font-size:30px;margin-bottom:20px'>{self_register} SMS {rule}:{$ruleid}</div>\t\t\n\t<div style='font-size:18px' class=explain>{hotspot_sms_mailexp}</div>\n\t\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{form_message}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:140px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='SMS_INTRO-{$t}'>" . $wifidog_templates->SMS_INTRO . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{font_size}:</strong></td>\n\t\t<td>" . Field_text("SMS_FONT_SIZE-{$t}", $wifidog_templates->SMS_FONT_SIZE, 'font-size:22px;padding:3px;width:120px') . "</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{field_label}:</strong></td>\n\t\t<td>" . Field_text("SMS_FIELD-{$t}", $wifidog_templates->SMS_FIELD, 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{button_label}:</strong></td>\n\t\t<td>" . Field_text("SMS_BUTTON-{$t}", $wifidog_templates->SMS_BUTTON, 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{wrong_code_message}:</td>\n\t\t<td><textarea \n\t\t\tstyle='width:100%;height:90px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='SMS_CODE_ERROR-{$t}'>" . $wifidog_templates->SMS_CODE_ERROR . "</textarea>\n\t\t</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_register_subject}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:40px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='SMS_SMTP_SUBJECT-{$t}'>" . $wifidog_templates->SMS_SMTP_SUBJECT . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{message}:</td>\n\t\t<td><textarea \n\t\t\tstyle='width:100%;height:150px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='SMS_SMTP_BODY-{$t}'>" . $wifidog_templates->SMS_SMTP_BODY . "</textarea>\n\t\t</td>\n\t</tr>\t\n\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{smtp_confirm}:</td>\n\t\t<td style='width:860px'><textarea \n\t\t\tstyle='width:100%;height:140px;font-size:18px !important;border:4px solid #CCCCCC;font-family:\"Courier New\",\n\t\t\tCourier,monospace;background-color:white;color:black' id='SMS_CONFIRM_MESSAGE-{$t}'>" . $wifidog_templates->SMS_CONFIRM_MESSAGE . "</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_server_name}:</strong></td>\n\t\t<td>" . Field_text("sms_smtp_server_name-{$t}", trim($sock->GET_INFO("sms_smtp_server_name")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_server_port}:</strong></td>\n\t\t<td>" . Field_text("sms_smtp_server_port-{$t}", trim($sock->GET_INFO("sms_smtp_server_port")), 'font-size:22px;padding:3px;width:110px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_sender}:</strong></td>\n\t\t<td>" . Field_text("sms_smtp_sender-{$t}", trim($sock->GET_INFO("sms_smtp_sender")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{recipient}:</strong></td>\n\t\t<td>" . Field_text("sms_smtp_recipient-{$t}", trim($sock->GET_INFO("sms_smtp_recipient")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_auth_user}:</strong></td>\n\t\t<td>" . Field_text("sms_smtp_auth_user-{$t}", trim($sock->GET_INFO("sms_smtp_auth_user")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{smtp_auth_passwd}:</strong></td>\n\t\t<td>" . Field_password("sms_smtp_auth_passwd-{$t}", trim($sock->GET_INFO("sms_smtp_auth_passwd")), 'font-size:22px;padding:3px;width:450px') . "</td>\n\t\t\t\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:22px'>{tls_enabled}:</strong></td>\n\t\t<td>" . Field_checkbox_design("sms_tls_enabled-{$t}", 1, $sock->GET_INFO("sms_tls_enabled")) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2>\n\t\t\t\t" . button('{test}', "TestSMTP{$t}();", 32) . "&nbsp;" . button('{apply}', "Save{$t}();", 32) . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#HOSTPOT_RULES').flexReload();\n\t}\t\n\t\n\tfunction TestSMTP{$t}(){\n\t\tSave{$t}();\n\t\tLoadjs('{$page}?test-smtp-js=yes&ruleid={$ruleid}');\n\t}\n\t\n\tfunction Save{$t}(){\n\t\tvar pp=encodeURIComponent(document.getElementById('sms_smtp_auth_passwd-{$t}').value);\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ruleid',{$ruleid});\n\t\tXHR.appendData('SMS_SMTP_BODY',encodeURIComponent(document.getElementById('SMS_SMTP_BODY-{$t}').value));\n\t\tXHR.appendData('SMS_SMTP_SUBJECT',encodeURIComponent(document.getElementById('SMS_SMTP_SUBJECT-{$t}').value));\n\t\tXHR.appendData('SMS_INTRO',encodeURIComponent(document.getElementById('SMS_INTRO-{$t}').value));\n\t\tXHR.appendData('SMS_BUTTON',encodeURIComponent(document.getElementById('SMS_BUTTON-{$t}').value));\n\t\tXHR.appendData('SMS_FIELD',encodeURIComponent(document.getElementById('SMS_FIELD-{$t}').value));\n\t\tXHR.appendData('SMS_CONFIRM_MESSAGE',encodeURIComponent(document.getElementById('SMS_CONFIRM_MESSAGE-{$t}').value));\n\n\t\tXHR.appendData('SMS_FONT_SIZE',encodeURIComponent(document.getElementById('SMS_FONT_SIZE-{$t}').value));\n\t\tXHR.appendData('SMS_CODE_ERROR',encodeURIComponent(document.getElementById('SMS_CODE_ERROR-{$t}').value));\n\t\tif(document.getElementById('sms_tls_enabled-{$t}').checked){XHR.appendData('sms_tls_enabled',1);}else{XHR.appendData('sms_tls_enabled',0); }\n\t\tXHR.appendData('sms_smtp_server_name',encodeURIComponent(document.getElementById('sms_smtp_server_name-{$t}').value));\n\t\tXHR.appendData('sms_smtp_server_port',encodeURIComponent(document.getElementById('sms_smtp_server_port-{$t}').value));\n\t\tXHR.appendData('sms_smtp_sender',encodeURIComponent(document.getElementById('sms_smtp_sender-{$t}').value));\n\t\tXHR.appendData('sms_smtp_recipient',encodeURIComponent(document.getElementById('sms_smtp_recipient-{$t}').value));\n\t\tXHR.appendData('sms_smtp_auth_user',encodeURIComponent(document.getElementById('sms_smtp_auth_user-{$t}').value));\n\t\tXHR.appendData('sms_smtp_auth_passwd',pp);\n\t\tXHR.appendData('smtp_notifications-{$t}','yes');\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\n\t}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:27,代码来源:webauth.rules.sms.php

示例9: auth_popup

function auth_popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "\n\t<span id='postresults'></span>\n\t<form id='authform'>\n\t<table style='width:100%' >\n\t<tr>\n\t\t<td class=legend>{username}:</td>\n\t\t<td>" . Field_text("username-logon", null, "font-size:16px;padding:5px", "script:SuBmitAuthCheck(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{password}:</td>\n\t\t<td>" . Field_password("username-password", null, "font-size:16px;padding:5px", "script:SuBmitAuthCheck(event)") . "</td>\n\t</tr>\t\n\t<tr>\n\t<td colspan=2 align='right' style='font-size:16px;padding:5px'>" . button("{submit}", "SuBmitAuth()") . "</td>\n\t</tr>\n\t</table>\n\t</form>\n\t\n\t<script>\n\t\tfunction SuBmitAuthCheck(e){\n\t\t\tif(checkEnter(e)){SuBmitAuth();}\n\t\t}\n\t\n\t\n\t\tvar x_DeleteAllArticaEvents= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tLoadAjax('articaevents','{$page}?events-table=yes&LockBycontext={$_GET["LockBycontext"]}');\n\t\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\tfunction SuBmitAuth(){\n\t\t\tAnimateDiv('postresults');\n\t\t\t\$.post('{$page}',  \$('#authform').serialize(),\n\t\t\t\tfunction(data) {\n  \t\t\t\t\t\$('#postresults').html(data);\n\t\t\t\t}\n\t\t\t);\n\t\t\n\t\t}\t\n\tdocument.title='Artica {$_SERVER["SERVER_NAME"]}'; \n\t\n\t</script>\n\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:miniadm.php

示例10: popup

function popup()
{
    $ldap = new clladp();
    $cyruspass = $ldap->CyrusPassword();
    $html = "<H1>{cyrus password}</H1>\n\t<div id='change_cyrus_password'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/cyrus-password-120.png'></td>\n\t\t<td valign='top'><p class=caption>{change_cyrus_password}</p>\n\t\t<br>" . RoundedLightWhite("\n\t\t\t<table style='width:99%'>\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{password}:</td>\n\t\t\t\t<td>" . Field_password('cyruspassword', $cyruspass) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'><hr><input type='button' Onclick=\"javascript:SaveCyrusPassword();\" value='{edit}&nbsp;'></td>\n\t\t\t</tr>\n\t\t</table>") . "\n\t\t</td>\n\t\t</tr>\n\t\t</table></div>";
    $tp = new templates();
    echo $tp->_ENGINE_parse_body($html, 'cyrus.index.php');
}
开发者ID:brucewu16899,项目名称:artica,代码行数:8,代码来源:cyrus.password.php

示例11: popup_add

function popup_add()
{
    $t = $_GET["t"];
    $page = CurrentPageName();
    $html = "\n\t<p style='font-size:13px'>{smtp_sync_artica_add_text}</p>\n\t<div id='smtpsyncid'>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:14px'>{hostname}:</td>\n\t\t<td valign='top'>" . Field_text("servername", null, 'width:120px;font-size:14px') . "</td>\n\t<tr>\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:14px'>{port} (SSL):</td>\n\t\t<td valign='top'>" . Field_text("port", "9000", 'width:90px;font-size:14px') . "</td>\n\t<tr>\t\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:14px'>{username}:</td>\n\t\t<td valign='top'>" . Field_text("username", "admin", 'width:120px;font-size:14px') . "</td>\n\t<tr>\t\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:14px'>{password}:</td>\n\t\t<td valign='top'>" . Field_password("password", "", 'width:120px;font-size:14px') . "</td>\n\t<tr>\t\n\t</table>\n\t<div style='width:100%;text-align:right'><hr>" . button("{add}", "SaveServerSyncArticaSMTP();", 16) . "</div>\n\t</div>\n<script>\nvar X_SaveServerSyncArticaSMTP= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif (results.length>0){alert(results);}\n\t\tYahooWin3Hide();\n\t\t\$('#flexRT{$t}').flexReload();\n\t}\t\t\nfunction SaveServerSyncArticaSMTP(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('servername',document.getElementById('servername').value);\n\t\tXHR.appendData('port',document.getElementById('port').value);\n\t\tXHR.appendData('username',document.getElementById('username').value);\n\t\tXHR.appendData('password',document.getElementById('password').value);\n\t\tAnimateDiv('smtpsyncid');\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_SaveServerSyncArticaSMTP);\n\t\t\n\t}\n</script>\t\n\t\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:postfix.artica.smtp-sync.php

示例12: popup

function popup()
{
    $ldap = new clladp();
    $cyruspass = $ldap->CyrusPassword();
    $html = "\n\t<div id='change_cyrus_password' style='width:98%' class=form>\n\t<div class=text-info style='font-size:16px'>{change_cyrus_password}</div>\n\t<table style='width:99%'>\n\t<tr>\n\t<td class=legend style='font-size:16px'>{password}:</td>\n\t<td>" . Field_password('cyruspassword', $cyruspass, "font-size:16px") . "</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right'><hr>\n\t\t" . button("{apply}", "SaveCyrusPassword()", "22px") . "</td>\n\t</tr>\n\t</table>\n\t</div>";
    $tp = new templates();
    echo $tp->_ENGINE_parse_body($html, 'cyrus.index.php');
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:8,代码来源:cyrus.password.php

示例13: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $t = time();
    $html = "\n\t<center id='anim-{$t}'></center>\n\t<div class=text-info style='font-size:14px'>{reset_admin_password_explain}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{username}</td>\n\t\t<td style='font-size:16px;font-weight:bold'>Administrator</td>\n\t</tr>\n\t\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{password}</td>\n\t\t<td>" . Field_password("PASSWORD-{$t}", null, "font-size:16px;width:70%;font-weight:bold", null, null, null, false, "CheckPass{$t}(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "EnablePostfixKLMSSave{$t}()", "16px") . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\tvar x_EnablePostfixKLMSSave{$t}=function(obj){\n\t      var tempvalue=obj.responseText;\n\t      if(tempvalue.length>3){alert(tempvalue);}\n\t      document.getElementById('anim-{$t}').innerHTML='';\n\t      YahooWin3Hide();\n\t      }\t\t\n\t\t\n\t\tfunction EnablePostfixKLMSSave{$t}(){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tvar pp=encodeURIComponent(document.getElementById('PASSWORD-{$t}').value);\n\t\t\t\tAnimateDiv('anim-{$t}');\n\t\t\t\tXHR.appendData('PASSWORD',pp);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_EnablePostfixKLMSSave{$t});\t\n\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\tfunction CheckPass{$t}(e){\n\t\t\t\tif(checkEnter(e)){EnablePostfixKLMSSave{$t}();}\n\t\t\t\t\n\t\t}\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:9,代码来源:klms.password.php

示例14: popup

function popup(){
	$tpl=new templates();
	$page=CurrentPageName();
	$root_error_pass=$tpl->javascript_parse_text("{root_error_pass}");
	$sock=new sockets();
	$PAMLdapPrio=$sock->GET_INFO("PAMLdapPrio");
	if(!is_numeric($PAMLdapPrio)){$PAMLdapPrio=1;}
	$html="
	<div style='width:98%' class=form>
		<div style='font-size:32px;margin-bottom:20px'>{root_password_not_changed}</div>
		<div class=text-info style='margin-top:10px;font-size:18px'>{root_password_not_changed_text}</div>
		<table style='width:98%' >
		<tr>
			<td class=legend style='font-size:32px'>{LDAP_PRIORITY}:</td>
			<td>". Field_checkbox("PAMLdapPrio",1,$PAMLdapPrio)."</td>
		</tr>		
		
		<tr>
			<td class=legend style='font-size:32px'>{password}:</td>
			<td>". Field_password("root-pass1",null,"font-size:32px;padding:20px;width:70%",null,null,null,false,"CHRootPwdCheck(event)")."</td>
		</tr>
			<td>&nbsp;</td>
			<td>". Field_password("root-pass2",null,"font-size:32px;padding:20px;width:70%",null,null,null,false,"CHRootPwdCheck(event)")."</td>
		<tr>
		<tr>
			<td colspan=2 align='right'><hr>". button("{apply}","CHRootPwd()",42)."</td>
		</tr>
		</table>
	</div>
		
		<script>
			function CHRootPwdCheck(e){
				if(checkEnter(e)){CHRootPwd();return;}
			}
			
		var X_CHRootPwd= function (obj) {
			var tempvalue=obj.responseText;
			if(tempvalue.length>3){alert(tempvalue);return;}
			YahooWin5Hide();
			}			
		
		function CHRootPwd(){
			var pass=document.getElementById('root-pass1').value;
			if(pass.length<3){alert('$root_error_pass');return;}
			if(document.getElementById('root-pass1').value!==document.getElementById('root-pass2').value){alert('$root_error_pass');return;}
			var XHR = new XHRConnection();
			var pp=encodeURIComponent(document.getElementById('root-pass1').value);
			XHR.appendData('change_password',document.getElementById('root-pass1').value);
			if(document.getElementById('PAMLdapPrio').checked){XHR.appendData('PAMLdapPrio',1);}else{XHR.appendData('PAMLdapPrio',0);}
			XHR.sendAndLoad('$page', 'POST',X_CHRootPwd);
		}
	</script>
		
	";
	
	echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:57,代码来源:system.root.pwd.php

示例15: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $error = base64_decode($_GET["error"]);
    $q = new mysql();
    $html = "<div class=explain>\n\t\t{mysql_error_popup_credential_text}\n\t\t<br><code style='font-size:13px'>{$error}</div>\n\t<center>\n\t\t\t<table style='width:80%' class=form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='top' class=legend nowrap>{username}:</td>\n\t\t\t\t\t<td valign='top'>" . Field_text('username', $q->mysql_admin, "font-size:14px;padding:3px") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='top' class=legend>{password}:</td>\n\t\t\t\t\t<td valign='top'>" . Field_password('password', $q->mysql_password, "font-size:14px;padding:3px;width:120px") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=2 align='right'>\n\t\t\t\t\t\t<hr>" . button("{change}", "UploadMysqlPassword()") . "\n\t\t\t\t\t\t\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\t\n\t\t</center>\n\t\t<div id='mysqldivForLogs'></div>\n\t<script>\n\t\n\tvar x_UploadMysqlPassword= function (obj) {\n\t\tLoadAjax('mysqldivForLogs','{$page}?events=yes');\n\t}\t\n\t\n\tfunction UploadMysqlPassword(){\n\t\n\t\tvar username=document.getElementById('username').value;\n\t\tvar password=document.getElementById('password').value;\n\t\tvar XHR = new XHRConnection();\t\n\t\tXHR.appendData('username',username);\n\t\tXHR.appendData('password',password);\n\t\tAnimateDiv('mysqldivForLogs');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_UploadMysqlPassword);\t\t\t\n\t\n\t}\n</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:admin.mysql.error.php


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