本文整理汇总了PHP中clladp::CountDeUSerOu方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::CountDeUSerOu方法的具体用法?PHP clladp::CountDeUSerOu怎么用?PHP clladp::CountDeUSerOu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clladp
的用法示例。
在下文中一共展示了clladp::CountDeUSerOu方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: info_organization
function info_organization(){
$ldap=new clladp();
$usersNB=$ldap->CountDeUSerOu($_SESSION["ou"]);
return "
<table style='width:98%' class=form>
<tr>
<td valign='top' width=1%><img src='img/users-info-128.png'></td>
<td valign='top'><H3 style='font-weight:bold'>{$_SESSION["ou"]}: $usersNB {members}</H3>
<ul>
<li><a href=\"javascript:blur()\"
OnClick=\"javascript:Loadjs('domains.add.user.php?ou={$_SESSION["ou"]}');\"
style='font-size:13px;font-weight:normal'>{add_user}</a>
</li>
</ul>
</td>
</tr>
</table>
";
}
示例2: COUNT_DE_USERS
function COUNT_DE_USERS()
{
$sock = new sockets();
$ldap = new clladp();
$_GET["dn"] = urldecode($_GET["dn"]);
if ($ldap->IsKerbAuth()) {
$ad = new external_ad_search();
echo $ad->CountDeUSerOu($_GET["count-de-users"], $_GET["dn"]);
}
$EnableManageUsersTroughActiveDirectory = $sock->GET_INFO("EnableManageUsersTroughActiveDirectory");
if (!is_numeric($EnableManageUsersTroughActiveDirectory)) {
$EnableManageUsersTroughActiveDirectory = 0;
}
if ($EnableManageUsersTroughActiveDirectory == 1) {
$ldap = new ldapAD();
echo $ldap->CountDeUSerOu($_GET["count-de-users"], $_GET["dn"]);
return;
}
$ldap = new clladp();
echo $ldap->CountDeUSerOu($_GET["count-de-users"]);
}
示例3: ORGANISATIONS_LIST
function ORGANISATIONS_LIST()
{
$tpl = new templates();
$ldap = new clladp();
if ($ldap->IsKerbAuth()) {
return ORGANISATIONS_LIST_ACTIVE_DIRECTORY();
}
include_once dirname(__FILE__) . "/ressources/class.external.ad.inc";
$Mypage = CurrentPageName();
$users = new usersMenus();
$sock = new sockets();
$ou_nozarafa_explain = $tpl->_ENGINE_parse_body("{ou_nozarafa_explain}");
$t = $_GET["t"];
$EnableManageUsersTroughActiveDirectory = $sock->GET_INFO("EnableManageUsersTroughActiveDirectory");
if (!is_numeric($EnableManageUsersTroughActiveDirectory)) {
$EnableManageUsersTroughActiveDirectory = 0;
}
$AllowInternetUsersCreateOrg = $sock->GET_INFO("AllowInternetUsersCreateOrg");
if ($EnableManageUsersTroughActiveDirectory == 1) {
$ldap = new ldapAD();
$hash = $ldap->hash_get_ou(true);
} else {
$ldap = new clladp();
$hash = $ldap->hash_get_ou(true);
}
if (!is_array($hash)) {
json_error_show("No data...");
}
ksort($hash);
if ($EnableManageUsersTroughActiveDirectory == 0) {
if (!$ldap->BuildOrganizationBranch()) {
json_error_show("{GENERIC_LDAP_ERROR}<br>{$ldap->ldap_last_error}");
}
}
if ($_POST["query"] != null) {
$search = $_POST["query"];
$search = str_replace(".", "\\.", $search);
$search = str_replace("*", ".*?", $search);
}
if (isset($_GET["ajaxmenu"])) {
$ajax = true;
}
$pic = "32-environement.png";
$style = "style='font-size:16px;'";
$c = 0;
$ldap2 = new clladp();
if (count($hash) == 0) {
json_error_show("no data");
}
while (list($num, $ligne) = each($hash)) {
$ou = $ligne;
$ou_encoded = base64_encode($ou);
if (!preg_match("#{$search}#i", $ligne)) {
writelogs("'{$ligne}' NO MATCH {$search}", __FUNCTION__, __FILE__, __LINE__);
continue;
}
$md = md5(serialize($hash) . time());
$md5S = $md;
$uri = "javascript:Loadjs('domains.manage.org.index.php?js=yes&ou={$ligne}');";
if ($ajax) {
$uri = "javascript:Loadjs('{$Mypage}?LoadOrgPopup={$ligne}');";
}
$IsOUUnderActiveDirectory = $ldap2->IsOUUnderActiveDirectory($ou);
$GroupsNB = 0;
if ($EnableManageUsersTroughActiveDirectory == 0) {
$img = $ldap->get_organization_picture($ligne, 32);
writelogs("ldap->CountDeUSerOu({$ligne})", __FUNCTION__, __FILE__, __LINE__);
$usersNB = $ldap->CountDeUSerOu($ligne);
$usersNB = "{$usersNB}";
} else {
$img = $pic;
if ($IsOUUnderActiveDirectory) {
$ad = new external_ad_search();
writelogs("ldap->CountDeUSerOu({$ligne})", __FUNCTION__, __FILE__, __LINE__);
$usersNB = $ad->CountDeUSerOu($ligne);
} else {
writelogs("ldap->CountDeUSerOu({$ligne})", __FUNCTION__, __FILE__, __LINE__);
$usersNB = $ldap->CountDeUSerOu($ligne);
$usersNB = "{$usersNB}";
}
}
$delete = imgtootltip("delete-32-grey.png", "<b>{delete_ou} {$ligne}</b><br><i>{delete_ou_text}</i>");
if ($users->AsArticaAdministrator) {
$delete = Paragraphe('64-cancel.png', "{delete_ou} {$ligne}", '{delete_ou_text}', "javascript:Loadjs('domains.delete.org.php?ou={$ligne}');", null, 210, 100, 0, true);
$delete = imgsimple("delete-32.png", "<b>{delete_ou} {$ligne}</b><br><i>{delete_ou_text}</i>", "javascript:Loadjs('domains.delete.org.php?ou={$ligne}&t={$t}&id-table={$md5S}');");
}
$DomainsNB = $ldap->CountDeDomainsOU($ligne);
if ($GroupsNB == 0) {
if ($IsOUUnderActiveDirectory) {
$ad = new external_ad_search();
writelogs("->CountDeGroups({$ou})", __FUNCTION__, __FILE__, __LINE__);
$GroupsNB = $ad->CountDeGroups($ou);
} else {
writelogs("->CountDeGroups({$ou})", __FUNCTION__, __FILE__, __LINE__);
$GroupsNB = $ldap->CountDeGroups($ou);
}
}
Paragraphe('folder-useradd-64.png', '{create_user}', '{create_user_text}', "javascript:Loadjs('domains.add.user.php?ou={$ou}')", null, 210, null, 0, true);
Paragraphe('64-folder-group-add.png', '{create_user}', '{create_user_text}', "javascript:Loadjs('domains.add.user.php?ou={$ou}')", null, 210, null, 0, true);
Paragraphe("64-folder-group-add.png", "{$ou}:{add_group}", "{add_a_new_group_in_this_org}:<b>{$ou}</b>", "javascript:Loadjs('domains.edit.group.php?popup-add-group=yes&ou={$ou}&t={$t}')");
//.........这里部分代码省略.........
示例4: COUNT_DE_USERS
function COUNT_DE_USERS(){
$ldap=new clladp();
echo $ldap->CountDeUSerOu($_GET["count-de-users"]);
}