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


PHP clladp::hash_get_ou方法代码示例

本文整理汇总了PHP中clladp::hash_get_ou方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::hash_get_ou方法的具体用法?PHP clladp::hash_get_ou怎么用?PHP clladp::hash_get_ou使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在clladp的用法示例。


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

示例1: popup

function popup()
{
    $ou = $_GET["ou"];
    $t = $_GET["t"];
    $ldap = new clladp();
    $tpl = new templates();
    $page = CurrentPageName();
    if (!is_numeric($t)) {
        $t = time();
    }
    $EnCryptedFunction = $_GET["EnCryptedFunction"];
    if (strlen($EnCryptedFunction) > 3) {
        $EnCryptedFunction = base64_decode($EnCryptedFunction) . "\n";
    } else {
        $EnCryptedFunction = null;
    }
    if ($ou == null) {
        if (isAdmin()) {
            $OUS = $ldap->hash_get_ou(true);
            $FieldOu = Field_array_Hash($OUS, "ou-{$t}", null, null, null, 0, "font-size:18px");
        } else {
            $FieldOu = Field_hidden("ou-{$t}", $_SESSION["ou"]) . "<span style='font-size:18px'>{$_SESSION["ou"]}</span>";
        }
    } else {
        $FieldOu = Field_hidden("ou-{$t}", $ou) . "<span style='font-size:18px'>{$_SESSION["ou"]}</span>";
    }
    $html = "\n\t\t\t\n\t<div id='animate-{$t}'></div>\t\t\n\t<table style='width:98%' class=form>\n\t\t<tr>\n\t\t  <td class=legend style='font-size:18px'>{domain}:</td>\n\t\t  <td>" . Field_text("domain-{$t}", null, "font-size:18px;font-weigth:bold", null, null, null, false, "AddDomainCk{$t}(event)") . "</td>\n\t\t</tr>\n\t\t<td class=legend style='font-size:18px'>{organization}:</td>  \t\t\n\t\t <td>{$FieldOu}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'>" . button("{add}", "AddDomain{$t}()", "20px") . "</td>\n\t\t</tr>\n\t</table>\n\t\t\t\t\t\n<script>\nvar x_AddDomain{$t}=function(obj){\n\tdocument.getElementById('animate-{$t}').innerHTML='';\n\tvar text;\n\ttext=obj.responseText;\n\tif(text.length>3){alert(text);return;}\n\t\$('#flexRT{$t}').flexReload();\n\tYahooUserHide();\n\t{$EnCryptedFunction}\n\t\n\t\n}\n\nfunction AddDomainCk{$t}(e){\n\tif(checkEnter(e)){ AddDomain{$t}();}\n}\n\nfunction AddDomain{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('perform','yes');\n\tvar ou=document.getElementById('ou-{$t}').value;\n\tif(ou.length<3){alert('Organization:`'+ou+'` not supported');return;}\n\tXHR.appendData('ou',document.getElementById('ou-{$t}').value);\n\tXHR.appendData('domain',document.getElementById('domain-{$t}').value);\n\tAnimateDiv('animate-{$t}');\n\tXHR.sendAndLoad('{$page}', 'POST',x_AddDomain{$t}); \n}\n</script>\t\t\t\t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:domain-local-create.php

示例2: popup

function popup()
{
    $tpl = new templates();
    $t = $_GET["t"];
    $page = CurrentPageName();
    $ldap = new clladp();
    if (!isset($_GET["ou"])) {
        $_GET["ou"] = null;
    }
    if ($_GET["ou"] == null) {
        $title = "OpenLDAP";
        $ous = $ldap->hash_get_ou(true);
    } else {
        $title = $_GET["ou"];
        $ous[$title] = true;
    }
    $style = " OnMouseOver=\";this.style.cursor='pointer';\" OnMouseOut=\";this.style.cursor='default';\"";
    $organization = $tpl->_ENGINE_parse_body("{organization}");
    $f[] = "<ul id='root-{$t}' class='jqueryFileTree'>";
    $f[] = "<li class=root>Root: {$title}";
    $f[] = "<ul id='mytree-{$t}' class='jqueryFileTree'>";
    while (list($ou, $ligne) = each($ous)) {
        $CLASS = "directory";
        $id = md5($ou);
        $js = texttooltip("{$organization} {$ou}", $ou, "TreeOuExpand{$t}('{$id}','{$ou}');");
        $f[] = "<li class={$CLASS} collapsed id='{$id}' {$style}>{$js}</li>";
    }
    $f[] = "</ul>";
    $f[] = "</li>";
    $f[] = "</ul>";
    $f[] = "<script>\nvar mem_id{$t}='';\nvar mem_path{$t}='';\n\nvar xTreeOuExpand{$t}= function (obj) {\n\tvar results=obj.responseText;\n\t\$('#'+mem_id{$t}).removeClass('collapsed');\n\tif(\$('#'+mem_id{$t}).hasClass('directorys')){\$('#'+mem_id{$t}).addClass('expandeds');}\n\tif(\$('#'+mem_id{$t}).hasClass('directory')){\$('#'+mem_id{$t}).addClass('expanded');}\n\t\$('#'+mem_id{$t}).append(results);\n}\n\n\tfunction TreeOuExpand{$t}(id,ou){\n\t\tmem_id{$t}=id;\n\t\tmem_path{$t}=ou;\n\t\tvar expanded=false;\n\t\tif(\$('#'+mem_id{$t}).hasClass('expanded')){expanded=true;}\n\t\tif(!expanded){if(\$('#'+mem_id{$t}).hasClass('expandeds')){expanded=true;}}\n\t\t\t\n\t\tif(!expanded){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('browse-ou',ou);\n\t\t\tXHR.appendData('function','{$_GET["function"]}');\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',xTreeOuExpand{$t});\n\t\t}else{\n\t\t\t\$('#'+mem_id{$t}).children('ul').empty();\n\t\t\tif(\$('#'+mem_id{$t}).hasClass('expanded')){\$('#'+mem_id{$t}).removeClass('expanded');}\n\t\t\tif(\$('#'+mem_id{$t}).hasClass('expandeds')){\$('#'+mem_id{$t}).removeClass('expandeds');}\n\t\t\t\$('#'+mem_id{$t}).addClass('collapsed');\n\t\n\t\t}\n\t}\n\t\n\t\t\n</script>";
    echo @implode("\n", $f);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:33,代码来源:browse-ldap-groups.php

示例3: page_1

function page_1()
{
    if ($_COOKIE["company"] == null) {
        $ldap = new clladp();
        $orgs = $ldap->hash_get_ou(false);
        $company = $orgs[0];
    } else {
        $company = $_COOKIE["company"];
    }
    $field_domain = Field_text('smtp_domain', $_COOKIE["smtp_domain"]);
    if ($_COOKIE["smtp_domain"] == null) {
        $sock = new sockets();
        if ($sock->GET_INFO("MasterSMTPDomainName") == null) {
            $ldap = new clladp();
            $domains = $ldap->hash_get_domains_ou($company);
            if (is_array($domains)) {
                $field_domain = Field_array_Hash($domains, 'smtp_domain');
            }
        } else {
            $field_domain = Field_text('smtp_domain', $sock->GET_INFO("MasterSMTPDomainName"));
        }
    }
    $html = "\n\t<p class=caption>{company_domain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend nowrap>{company}:</td>\n\t\t<td>" . Field_text('company', $company) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{smtp_domain}:</td>\n\t\t<td>{$field_domain}</td>\n\t</tr>\t\n\t</table>\n\t\n\t\n\t\n\t";
    echo BuildPage('{company_domain_t}', $html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:wizard.smtp.php

示例4: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $ldap = new clladp();
    $t = time();
    $ImportAdSettings = unserialize($sock->GET_INFO("ZarafaImportADSettings"));
    $OUS = $ldap->hash_get_ou(true);
    $html = "\n\t<div style='font-size:30px;margin-bottom:20px'>{active_directory_importation}</div>\n\t<div style='font-size:22px' class=explain>{active_directory_importation_contacts_explain}</div>\n\t\n\t\n\t\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{organization}:</td>\n\t\t<td>" . Field_array_Hash($OUS, "ADOU", $ImportAdSettings["ADOU"], "style:font-size:22px;") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{activedirectory_server}:</td>\n\t\t<td>" . Field_text("ADSERVERNAME", $ImportAdSettings["ADSERVERNAME"], "font-size:22px;padding:3px;width:250px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{suffix}:</td>\n\t\t<td>" . Field_text("LDAP_SUFFIX", $ImportAdSettings["LDAP_SUFFIX"], "font-size:22px;padding:3px;width:580px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{username}:</td>\n\t\t<td>" . Field_text("WINDOWS_SERVER_ADMIN", $ImportAdSettings["WINDOWS_SERVER_ADMIN"], "font-size:22px;padding:3px;width:390px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{password}:</td>\n\t\t<td>" . Field_password("WINDOWS_SERVER_PASS", $ImportAdSettings["WINDOWS_SERVER_PASS"], "font-size:22px;padding:3px;width:390px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\n\t\n\t<tr style='height:70px'>\n\t\t<td colspan=3 align='right'>" . button("{import_contacts}", "Save{$t}()", 30) . "</td>\n\t</tR>\n\t\n\t</table>\n\t</div>\n\t<script>\n\t\t\n\t\t\n\nvar xSave{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n    if(tempvalue.length>5){alert(tempvalue);}\n    Loadjs('zarafa.import-ad-contacts.progress.php');\n}\t\n\t\t\nfunction Save{$t}(){\n\tvar pp=encodeURIComponent(document.getElementById('WINDOWS_SERVER_PASS').value);\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('ADOU',document.getElementById('ADOU').value);\n\tXHR.appendData('ADSERVERNAME',document.getElementById('ADSERVERNAME').value);\n\tXHR.appendData('WINDOWS_SERVER_ADMIN',document.getElementById('WINDOWS_SERVER_ADMIN').value);\n\tXHR.appendData('LDAP_SUFFIX',encodeURIComponent(document.getElementById('LDAP_SUFFIX').value));\n\t\n\tXHR.appendData('WINDOWS_SERVER_PASS',pp);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:zarafa.import-ad-contacts.php

示例5: all

function all()
{
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou();
    if (!is_array($ous)) {
        write_syslog("No organizations found, abort exporting OBM v2 users", __FILE__);
        die;
    }
    while (list($num, $organization) = each($ous)) {
        SyncOrg($organization);
    }
    $obm2 = new OBM2();
    $obm2->CleanOBMGhostAccount();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:14,代码来源:exec.obm.synchro.php

示例6: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $ldap = new clladp();
    $u = new user($_GET["userid"]);
    $oldorg = $u->ou;
    $ous = $ldap->hash_get_ou(true);
    unset($ous[$u->ou]);
    $ous[null] = "{select}";
    $success = $tpl->javascript_parse_text("{success}");
    $field = Field_array_Hash($ous, "nextou", null, "style:font-size:16px;padding:3px");
    $html = "\n\t<div class=explain id='useranimateddiv'>{change_user_organization_text}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{organization}:</td>\n\t\t<td>{$field}</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align=right><hr>" . button("{move}", "MoveUserToOu()") . "</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\tfunction MoveUserToOu(){\n\t\tvar XHR = new XHRConnection();\n\t\tAnimateDiv('useranimateddiv');\n\t    XHR.appendData('nextou',document.getElementById('nextou').value);\n\t    XHR.appendData('ou','{$u->ou}');\n\t    XHR.appendData('userid','{$_GET["userid"]}');\n\t    XHR.sendAndLoad('{$page}', 'POST',x_MoveUserToOu); \n\t\n\t}\n\n\t\n\tvar x_MoveUserToOu= function (obj) {\n\t\tvar ou=document.getElementById('nextou').value;\n\t\tvar results=trim(obj.responseText);\n\t\tif(results.length>2){alert('<'+results+'>');user_changeorg_load();return;}\n\t\tYahooUserHide();\n\t\tYahooWin4Hide();\n\t\tif(document.getElementById('org_main')){RefreshTab('org_main');}\n\t\talert('{$success} {$_GET["userid"]} -> '+ou);\n\t}\n</script>\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:15,代码来源:domains.edit.user.moveorg.php

示例7: add_domain

function add_domain()
{
    $users = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    if ($users->AsSystemAdministrator) {
        $ldap = new clladp();
        $ous = $ldap->hash_get_ou(true);
        $orgs = Field_array_Hash($ous, "ou-{$t}", null, "style:font-size:18px");
    } else {
        $orgs = "<span style='font-size:18px'>{$_SESSION["ou"]}</span>\n\t\t<input type='hidden' id='ou-{$t}' value='{$_SESSION["ou"]}'>";
    }
    $html = "<div style='font-size:26px;margin-bottom:20px'>{new_internet_domain}</div>\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{domain}:</div>\n\t\t<td>" . Field_text("domain-{$t}", null, "font-size:18px", null, null, null, false, "SaveCheck{$t}(event)") . "</div>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:18px'>{organization}:</div>\n\t\t<td>{$orgs}</div>\n\t</tr>\t\t\t\t\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{add}", "Save{$t}()", 26) . "</td>\n\t</tr>\n\t</table>\t\n<script>\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\tWinORGHide();\n\t\t\$('#flexRT{$_GET["t"]}').flexReload();\n\t\tUnlockPage();\n\t\tif(document.getElementById('main_config_dhcpd')){RefreshTab('main_config_dhcpd');}\n\t}\n\t\nfunction SaveCheck{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n\n}\nfunction Save{$t}(){\n\t\tLockPage();\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('AddNewInternetDomain',document.getElementById('ou-{$t}').value);\n\t\tXHR.appendData('AddNewInternetDomainDomainName',document.getElementById('domain-{$t}').value);\n\t\tXHR.sendAndLoad('domains.edit.domains.php', 'GET',xSave{$t});\n\t\t}\n\n</script>\t\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:16,代码来源:browse.domains.php

示例8: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $rebuild_groupware_warning = $tpl->javascript_parse_text("{rebuild_groupware_warning}");
    $t = time();
    $h = new vhosts();
    $hash = $h->listOfAvailableServices(true);
    $sql = "SELECT groupware FROM freeweb WHERE servername='{$_GET["servername"]}'";
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $sock = new sockets();
    $ldap = new clladp();
    $users = new usersMenus();
    if ($users->AsSystemAdministrator) {
        $ous = $ldap->hash_get_ou(true);
        $OUFIELD = Field_array_Hash($ous, "NAB-OU-{$t}", $free->Params["ROUNDCUBE"]["NAB-OU"], "style:font-size:14px");
    } else {
        $OUFIELD = "<span style='font-size:14px;font-weight:bold'>{$_SESSION["ou"]}<input type='hidden' id='NAB-OU-{$t}' value='{$_SESSION["ou"]}'></span>";
    }
    $EnableVirtualDomainsInMailBoxes = $sock->GET_INFO("EnableVirtualDomainsInMailBoxes");
    if (!is_numeric($EnableVirtualDomainsInMailBoxes)) {
        $EnableVirtualDomainsInMailBoxes = 0;
    }
    $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, 'artica_backup'));
    if ($ligne["groupware"] != null) {
        $groupware_text = "\n\t\t<table style='width:99%' class=form>\n\t\t<tr>\n\t\t\t<td width=1% valign='top'><img src='img/{$h->IMG_ARRAY_64[$ligne["groupware"]]}'></td>\n\t\t\t<td valign='top' width=99%>\n\t\t\t\t<div style='font-size:16px'>{current}:&nbsp;<strong>&laquo;&nbsp;{$hash[$ligne["groupware"]]}&nbsp;&raquo;</strong><hr>\n\t\t\t\t\t<i style='font-size:13px'>{{$h->TEXT_ARRAY[$ligne["groupware"]]["TEXT"]}}</i>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>";
    }
    $free = new freeweb($_GET["servername"]);
    $js = "YahooWin4('650','mysql.browse.php?database={$free->mysql_database}&instance-id={$free->mysql_instance_id}','&raquo;{$free->mysql_database}');";
    // javascript:LoadMysqlTables('rdcbe05261831');
    $SMTP_SERVER = $free->Params["ROUNDCUBE"]["SMTP_SERVER"];
    if ($SMTP_SERVER == null) {
        $SMTP_SERVER = "127.0.0.1";
    }
    if (!isset($free->Params["ROUNDCUBE"]["SIEVE_SERVER"])) {
        $free->Params["ROUNDCUBE"]["SIEVE_SERVER"] = "127.0.0.1:2000";
    }
    $html = "<div style='width:100%' id='roundcubediv'>{$groupware_text}\n\n<table style='width:99%' class=form>\n<tbody>\n<tr>\n\t<td class=legend style='font-size:14px'>MySQL {database}:</td>\n\t<td style='font-size:14px'>Instance {$free->mysql_instance_id} / <a href=\"javascript:blur();\" OnClick=\"javascript:{$js}\" style='text-decoration:underline'>{$free->mysql_database}</a>\n\t&nbsp;<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('{$page}?replic-js=yes&servername={$_GET["servername"]}')\" style='text-decoration:underline'>{replication}</a>\n\t\n\t</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{smtp_server}:</td>\n\t<td style='font-size:14px'>" . Field_text("RDCUBE_SMTP_SERVER-{$t}", $SMTP_SERVER, "font-size:14px;width:220px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{imap_server}:</td>\n\t<td style='font-size:14px'>" . Field_text("RDCUBE_IMAP_SERVER-{$t}", $free->Params["ROUNDCUBE"]["IMAP_SERVER"], "font-size:14px;width:220px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>Sieve:</td>\n\t<td style='font-size:14px'>" . Field_text("RDCUBE_SIEVE_SERVER-{$t}", $free->Params["ROUNDCUBE"]["SIEVE_SERVER"], "font-size:14px;width:220px") . "</td>\n</tr>\t\t\t\n<tr>\n\t<td class=legend style='font-size:14px'>{login_domain}:</td>\n\t<td style='font-size:14px'>" . Field_text("username_domain-{$t}", $free->Params["ROUNDCUBE"]["username_domain"], "font-size:14px;width:220px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{default_domain}:</td>\n\t<td style='font-size:14px'>" . Field_text("mail_domain-{$t}", $free->Params["ROUNDCUBE"]["mail_domain"], "font-size:14px;width:220px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{product_name}:</td>\n\t<td style='font-size:14px'>" . Field_text("product_name-{$t}", $free->Params["ROUNDCUBE"]["product_name"], "font-size:14px;width:220px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{global_addressbook}:</td>\n\t<td style='font-size:14px'>" . Field_checkbox("ENABLE_NAB-{$t}", 1, $free->Params["ROUNDCUBE"]["ENABLE_NAB"], "ENABLE_NAB_CHECK{$t}()") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{organization}:</td>\n\t<td style='font-size:14px'>{$OUFIELD}</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:14px'>{writeable}:</td>\n\t<td style='font-size:14px'>" . Field_checkbox("WRITE_NAB-{$t}", 1, $free->Params["ROUNDCUBE"]["WRITE_NAB"]) . "</td>\n</tr>\n\n\n<tr>\n<td colspan=2><div style='text-align:right'><hr>" . button("{apply}", "SaveRDCUBESETTS()", 16) . "</div></td>\n</tr>\n\n</table>\n<table class='table-{$t}' style='display: none' id='table-{$t}' style='width:100%;margin:-10px'></table>\n</div>\n\n\n\n\n</div>\n\t<script>\nFreeWebIDMEM='';\n\$(document).ready(function(){\n\$('#table-{$t}').flexigrid({\n\turl: '{$page}?plugin-list=yes&servername={$_GET["servername"]}&force-groupware={$_GET["force-groupware"]}&ForceInstanceZarafaID={$_GET["ForceInstanceZarafaID"]}&t={$t}&tabzarafa={$_GET["tabzarafa"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '&nbsp;', name : 'icon', width : 31, sortable : false, align: 'center'},\n\t\t{display: 'Plugins', name : 'Plugins', width :652, sortable : true, align: 'left'},\n\t\t{display: '&nbsp;', name : 'none1', width : 31, sortable : false, align: 'left'},\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: 'Plugins', name : 'Plugins'},\n\t\t],\n\tsortname: 'servername',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: 'Plugins',\n\tuseRp: false,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: 874,\n\theight: 200,\n\tsingleSelect: true\n\t\n\t});   \n});\t\n\t\n\t\n\t\n\t\tvar x_SaveRDCUBESETTS=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>3){alert(results);}\n\n\t\t\tif(document.getElementById('main_config_freewebedit')){\n\t\t\t\tRefreshTab('main_config_freewebedit');\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t\n\t\tvar x_SaveRDCUBESETTSILENT=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>3){alert(results);}\n\n\t\t\t\n\t\t\t\n\t\t}\t\t\t\n\n\t\t\n\t\tfunction PluginEnable(plug){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('servername','{$_GET["servername"]}');\n\t\t\tXHR.appendData('PLUGS',plug);\n\t\t\tif(document.getElementById('plugin_'+plug).checked){XHR.appendData('plugin_'+plug,1);}else{XHR.appendData('plugin_'+plug,0);}\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveRDCUBESETTSILENT);\n\t\t}\n\t\n\t\n\t\tfunction SaveRDCUBESETTS(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('servername','{$_GET["servername"]}');\n\t\t\tXHR.appendData('SMTP_SERVER',document.getElementById('RDCUBE_SMTP_SERVER-{$t}').value);\n\t\t\tXHR.appendData('IMAP_SERVER',document.getElementById('RDCUBE_IMAP_SERVER-{$t}').value);\n\t\t\tXHR.appendData('SIEVE_SERVER',document.getElementById('RDCUBE_SIEVE_SERVER-{$t}').value);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tXHR.appendData('username_domain',document.getElementById('username_domain-{$t}').value);\n\t\t\tXHR.appendData('mail_domain',document.getElementById('mail_domain-{$t}').value);\n\t\t\tXHR.appendData('product_name',document.getElementById('product_name-{$t}').value);\n\t\t\tif(document.getElementById('ENABLE_NAB-{$t}').checked){XHR.appendData('ENABLE_NAB',1);}else{XHR.appendData('ENABLE_NAB',0);}\n\t\t\tif(document.getElementById('WRITE_NAB-{$t}').checked){XHR.appendData('WRITE_NAB',1);}else{XHR.appendData('WRITE_NAB',0);}\n\t\t\tXHR.appendData('NAB-OU',document.getElementById('NAB-OU-{$t}').value);\n\t\t\t\n\t\t\t\n\t\t\tAnimateDiv('roundcubediv');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveRDCUBESETTS);\n\t\t}\n\t\n\t\tfunction EnableVirtualDomainsInMailBoxesCheck(){\n\t\t\tvar EnableVirtualDomainsInMailBoxes={$EnableVirtualDomainsInMailBoxes};\n\t\t\tdocument.getElementById('username_domain-{$t}').disabled=true;\n\t\t\tif(EnableVirtualDomainsInMailBoxes==1){\n\t\t\t\tdocument.getElementById('username_domain-{$t}').disabled=false;\n\t\t\t\tdocument.getElementById('username_domain-{$t}').value='';\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction ENABLE_NAB_CHECK{$t}(){\n\t\t\tdocument.getElementById('NAB-OU-{$t}').disabled=true;\n\t\t\tdocument.getElementById('WRITE_NAB-{$t}').disabled=true;\n\t\t\tif(document.getElementById('ENABLE_NAB-{$t}').checked){\n\t\t\t\tdocument.getElementById('NAB-OU-{$t}').disabled=false;\n\t\t\t\tdocument.getElementById('WRITE_NAB-{$t}').disabled=false;\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tEnableVirtualDomainsInMailBoxesCheck();\n\t\tENABLE_NAB_CHECK{$t}();\n\t</script>\n\t\n\t";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html);
    echo $datas;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:44,代码来源:freeweb.roundcube.php

示例9: virtip_popup

function virtip_popup()
{
    $boot = new boostrap_form();
    $sock = new sockets();
    $users = new usersMenus();
    $ldap = new clladp();
    $ID = $_GET["ID"];
    $title_button = "{add}";
    $nics = unserialize(base64_decode($sock->getFrameWork("cmd.php?list-nics=yes")));
    if ($_GET["ID"] > 0) {
        $sql = "SELECT * FROM nics_virtuals WHERE ID='{$ID}'";
        $q = new mysql();
        $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
        $title_button = "{apply}";
    }
    $ous = $ldap->hash_get_ou(true);
    $ous["openvpn_service"] = "{APP_OPENVPN}";
    while (list($num, $val) = each($nics)) {
        $nics_array[$val] = $val;
    }
    $nics_array[null] = "{select}";
    $ous[null] = "{select}";
    $boot->set_list("nic", "{nic}", $nics_array, $ligne["nic"]);
    $boot->set_list("org", "{organization}", $ous, $ligne["org"]);
    $boot->set_field("ipaddr", "{tcp_address}", $ligne["ipaddr"], array("IPV4" => true));
    $boot->set_field("netmask", "{netmask}", $ligne["netmask"], array("IPV4" => true));
    $boot->set_field("cdir", "CDIR", $ligne["cdir"], array("CDIR" => "ipaddr,netmask"));
    $boot->set_field("gateway", "{gateway}", $ligne["gateway"], array("IPV4" => true));
    $boot->set_field("metric", "{metric}", $ligne["metric"]);
    $boot->set_hidden("ID", $_GET["ID"]);
    $boot->set_checkbox("ForceGateway", "{ForceGateway}", $ligne["ForceGateway"]);
    if (!$users->AsSystemAdministrator) {
        $boot->set_form_locked();
    }
    if ($ID == 0) {
        $boot->set_CloseYahoo("YahooWin2");
    }
    $boot->set_RefreshSearchs();
    echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:40,代码来源:miniadm.network.virtips.php

示例10: GROUPS_LIST

function GROUPS_LIST($OU)
{
    writelogs("startup ou={$OU}", __FUNCTION__, __FILE__);
    $page = CurrentPageName();
    $ou = $OU;
    if (is_base64_encoded($ou)) {
        $ou = base64_decode($ou);
    }
    writelogs("Encoded ou ? =\"{$ou}\" {$_SESSION["uid"]}", __FUNCTION__, __FILE__);
    $ldap = new clladp();
    $users = new usersMenus();
    if ($users->AsArticaAdministrator) {
        writelogs("AsArticaAdministrator privileges", __FUNCTION__, __FILE__);
        $org = $ldap->hash_get_ou(true);
        while (list($ou1, $ou2) = each($org)) {
            $orgs_encoded[base64_encode($ou1)] = $ou2;
        }
        //$orgs=Field_array_Hash($orgs_encoded,'SelectOuList',base64_encode($ou),"LoadGroupList()",null,0,'width:250px');
        $hash = $ldap->hash_groups($ou, 1);
        writelogs("AsArticaAdministrator:: Load " . count($hash) . " groups from ou {$ou}", __FUNCTION__, __FILE__);
    } else {
        $ou = ORGANISTATION_FROM_USER();
        //$orgs="<strong>$ou</strong><input type='hidden' name=SelectOuList id='SelectOuList' value='$ou'>";
        if (!$users->AsOrgAdmin) {
            $hash = $ldap->UserGetGroups($_SESSION["uid"], 1);
        }
        if ($users->AsOrgAdmin) {
            $hash = $ldap->hash_groups($ou, 1);
        }
    }
    if (is_array($hash)) {
        while (list($num, $line) = each($hash)) {
            if (strtolower($line) == 'default_group') {
                unset($hash["{$num}"]);
            }
            $tr[] = $num;
        }
    }
    $orgs = Field_hidden("SelectOuList", base64_encode($ou));
    writelogs("Load " . count($hash) . " groups from ou {$ou}", __FUNCTION__, __FILE__);
    $hash[null] = "{select_group}";
    reset($hash);
    $field = Field_array_Hash($hash, 'SelectGroupList', null, "LoadGroupSettings()", null, 0, 'width:250px');
    $html = "\n\t{$orgs}\n\t<table style='width:300px'>\n\t<td width=80%>{$field}</td>\n\t<td width=1%>" . imgtootltip('20-refresh.png', '{refresh}', "RefreshGroupList()") . "</td>\n\t<td width=1%>" . button("{add}", "Loadjs('{$page}?popup-add-group=yes&ou={$ou}')") . "</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\tfunction RefreshGroupList(){\n\t\t\tLoadAjax('grouplist','{$page}?LoadGroupList={$ou}')\n\t\t\n\t\t}\n\t\n\tLoadGroupSettings('{$tr[0]}');\t\n\t</script>\n\t\n\t\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:47,代码来源:domains.edit.group.php

示例11: PostfixAddRelayTable

function PostfixAddRelayTable(){
	$ldap=new clladp();
	$page=CurrentPageName();
	$org=$ldap->hash_get_ou(true);
	$org[null]='{select}';
	$listOrg=Field_array_Hash($org,'org',$org);
	$tls_table=$ldap->hash_Smtp_Tls_Policy_Maps();
	$smtp_server_line=$Table[$domainName];
	$smtp_server_line=str_replace('smtp:','',$smtp_server_line);
	$tls_value=$tls_table[$smtp_server_line];
	writelogs("server \"{$Table[$domainName]}\"=>$smtp_server_line=>".$tls_table[$smtp_server_line] ."($tls_value)",__FUNCTION__,__FILE__);
	
	$main=new main_cf();
	if($main->main_array["smtp_sasl_auth_enable"]=="yes"){
		$field=Field_array_Hash($main->array_field_relay_tls,'smtp_tls_policy_maps',$tls_value);
		$sasl="
		</tr>
			<td align='right' nowrap valign='top' class=legend>{tls_level}:</strong></td>
			<td style='font-size:12px'>$field<div class='caption'>{use_tls_relay_explain}</div></td>	
		</tr>";
		
	}
	
	
	if($smtp_port==null){$smtp_port=25;}
	
	$html="
	<h1>{add_routing_relay_domain_rule}</H1>
	<br>" . RoundedLightWhite("
	<form name='FFM3'>
	<input type='hidden' name='PostfixAddRoutingTableSave' value='yes'>
	<table style='width:100%'>
	<tr>
	<td align='right' class=legend>{organization}:</strong></td>
	<td style='font-size:12px'>$listOrg</td>
	</tr>	
	<tr>
	<td align='right' class=legend>{domainName}:</strong></td>
	<td style='font-size:12px'>" . Field_text('domain',$domainName) . "</td>
	</tr>
	<td align='right' nowrap class=legend>{relay_address}:</strong></td>
	<td style='font-size:12px'>" . Field_text('relay_address',$relay_address) . "</td>	
	</tr>
	<td align='right' nowrap class=legend>{smtp_port}:</strong></td>
	<td style='font-size:12px'>" . Field_text('relay_port',$smtp_port) . "</td>	
	</tr>	
	<tr>
	<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups',$MX_lookups,'{enable_disable}')."</td>
	<td style='font-size:12px'>{MX_lookups}</td>	
	</tr>
	$sasl
	<tr>
	<td align='right' colspan=2>". button("{apply}","PostfixAddNewRelayTable()")."</td>
	</tr>		
	<tr>
	<td align='left' colspan=2><hr><p class=caption>{MX_lookups}</strong><br>{MX_lookups_text}</p></td>
	</tr>			
		
	</table>
	</FORM>
	//PostfixAddRoutingRuleTableSave
<script>
var X_PostfixAddNewRelayTable= function (obj) {
		var results=obj.responseText;
		if (results.length>0){alert(results);}
		$('#container-tabs').tabs( 'load' ,3 );
		YahooWinHide();
	}		
function PostfixAddNewRelayTable(){
		var XHR = new XHRConnection();
		XHR.appendData('PostfixAddRoutingTableSave','yes');
		XHR.appendData('org',document.getElementById('org').value);
		XHR.appendData('domain',document.getElementById('domain').value);
		XHR.appendData('relay_address',document.getElementById('relay_address').value);
		XHR.appendData('MX_lookups',document.getElementById('MX_lookups').value);
		XHR.appendData('relay_port',document.getElementById('relay_port').value);
		if(document.getElementById('smtp_tls_policy_maps')){
			XHR.appendData('relay_port',document.getElementById('smtp_tls_policy_maps').value);
		}
		
		
		XHR.sendAndLoad('$page', 'GET',X_PostfixAddNewRelayTable);
		
	}		
	
</script>	
	");
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:91,代码来源:postfix.routing.table.php

示例12: lvm_lvcreate

function lvm_lvcreate()
{
    $group = $_GET["lvcreate"];
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou(true);
    $ous[null] = "{select}";
    $field = Field_array_Hash($ous, "affectToThisOu", $ou);
    $html = "<h1>{ADD_VG}</H1>\n\t<p class=caption>{ADD_VG_TEXT}</p>\n\t<input type='hidden' id='LV_GROUP' value='{$group}'>\n\t" . RoundedLightWhite("\n\t<div id='lvmcreate'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend nowrap>{LVMS_NAME}:</td>\n\t\t<td>" . Field_text('LVMS_NAME', null, 'width:90px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{LVMS_SIZE}:</td>\n\t\t<td>" . Field_text('LVMS_SIZE', null, 'width:30px') . "<strong style='font-size:12px'>&nbsp;G</strong></td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 style='font-size:11px'><br>{AFFECT_VG_EXPLAIN}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{organization}:</td>\n\t\t<td>{$field}</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td colspan='2' align='right'><hr>" . button("{add}", "lvcreateSubmit();") . "</td>\n\t</tr>\n\t</table>\n\t\n\t</div>");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:system.internal.disks.php

示例13: wizard3

function wizard3()
{
    if (!isset($_SESSION["WIZINSTANCE"]["WIZIPADDR"])) {
        wizard2();
        exit;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou(true);
    $ous[null] = "{none}";
    $html = "<strong style='font-size:16px'>{Interface}:{$_SESSION["WIZINSTANCE"]["WIZINTERFACE"]}&nbsp;|&nbsp;{$_SESSION["WIZINSTANCE"]["WIZIPADDR"]}/{$_SESSION["WIZINSTANCE"]["WIZIPMASK"]}</strong>\n\t<div class=explain style='font-size:14px'>{welcome_new_instance_wizard_organdname}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{organization}:</td>\n\t\t<td>" . Field_array_Hash($ous, "WIZOU", $_SESSION["WIZINSTANCE"]["WIZOU"], "style:font-size:16px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{hostname}:</td>\n\t\t<td>" . field_text("WIZHOST", $_SESSION["WIZINSTANCE"]["WIZHOST"], "font-size:16px;width:240px;font-weight:bolder") . "</td>\n\t</tr>\t\n\t<tr>\n\t<tr>\n\t\t<td colspan=2><hr></td>\n\t</tr>\n\t<tr>\n\t\n\t\t<td align='left'>" . button("{previous}", "LoadAjax('new_instance_wizard','{$page}?wiz2=yes');", 16) . "</td>\n\t\t<td colspan=2 align='right'>" . button("{next}", "WIZ_WIZHOST()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t<script>\n\tvar XWIZ_WIZ_WIZHOST= function (obj) {\n\t var results=obj.responseText;\n\t if(results.length>3){alert(results);return;}\n\t \tWIZMULTI4();\n\t}\t\n\t\n\tfunction WIZ_WIZHOST(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('WIZOU',document.getElementById('WIZOU').value);\n\t\tXHR.appendData('WIZHOST',document.getElementById('WIZHOST').value);\n\t\tAnimateDiv('new_instance_wizard');\n\t\tXHR.sendAndLoad('{$page}', 'POST',XWIZ_WIZ_WIZHOST);\t\n\t}\n\t\n\t</script>\t\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:14,代码来源:postfix.multiple.instances.wizard.php

示例14: time_global

function time_global(){
	
	$ldap=new clladp();
	$ous=$ldap->hash_get_ou(true);
	$ous[null]="{select}";
	$ous_field=Field_array_Hash($ous,'ou',null,"ConnectionTimeSelectOU()");
	
	$squid=new squidbee();

	
	$html="
	<H1>{connection_time}</h1>
	<table style='width:99%' class=form'>
	<tr>
		<td class=legend nowrap>{ou}</td>
		<td>$ous_field</td>
	</tr>
	<tr>
		<td class=legend nowrap>group</td>
		<td><div id='group_field'></div></td>
	</table>
	<div id='ConnectionTimeRule' style='width:100%'></div>
	";
	
	if($squid->LDAP_AUTH<>1){
		$html="
		<table style='width:99%' class=form>
		<tbody>
		<tr>
			<td width=1% valign='top'><img src='img/error-64.png'></td>
			<td width=99% valign='top'>
			<div style='font-size:18px'>{connection_time}</div>
			<p style='font-size:14px'>{error_no_auth_squid}</p>
			</td>
		</tr>
		</tbody>
		</table>
		";
		
	}
	
	$tpl=new templates();
	return $tpl->_ENGINE_parse_body($html,'squid.index.php');
	}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:44,代码来源:squid.newbee.php

示例15: time_global

function time_global()
{
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou(true);
    $ous[null] = "{select}";
    $ous_field = Field_array_Hash($ous, 'ou', null, "ConnectionTimeSelectOU()");
    $squid = new squidbee();
    $html = "\n\t<H1>{connection_time}</h1>\n\t<table style='width:100%' class=table_form'>\n\t<tr>\n\t\t<td class=legend nowrap>{ou}</td>\n\t\t<td>{$ous_field}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>group</td>\n\t\t<td><div id='group_field'></div></td>\n\t</table>\n\t<div id='ConnectionTimeRule' style='width:100%'></div>\n\t";
    if ($squid->LDAP_AUTH != 1) {
        $html = "<H1>{error}&nbsp;{connection_time}</h1>\n\t\t<p class=caption style='font-size:14px'>{error_no_auth_squid}</p>\n\t\t";
    }
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html, 'squid.index.php');
}
开发者ID:brucewu16899,项目名称:artica,代码行数:14,代码来源:squid.newbee.php


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