本文整理匯總了PHP中AuthLdap::showUserImportForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP AuthLdap::showUserImportForm方法的具體用法?PHP AuthLdap::showUserImportForm怎麽用?PHP AuthLdap::showUserImportForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AuthLdap
的用法示例。
在下文中一共展示了AuthLdap::showUserImportForm方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: AuthLDAP
if (!defined('GLPI_ROOT')) {
include '../inc/includes.php';
}
Session::checkRight("import_externalauth_users", 'w');
// Need REQUEST to manage initial walues and posted ones
AuthLdap::manageValuesInSession($_REQUEST);
if (isset($_SESSION['ldap_import']['popup']) && $_SESSION['ldap_import']['popup']) {
Html::popHeader(__('LDAP directory link'), $_SERVER['PHP_SELF']);
} else {
Html::header(__('LDAP directory link'), $_SERVER['PHP_SELF'], "admin", "user", "ldap");
}
if (isset($_GET['start'])) {
$_SESSION['ldap_import']['start'] = $_GET['start'];
}
if (isset($_GET['order'])) {
$_SESSION['ldap_import']['order'] = $_GET['order'];
}
if ($_SESSION['ldap_import']['action'] == 'show') {
$authldap = new AuthLDAP();
$authldap->getFromDB($_SESSION['ldap_import']['authldaps_id']);
AuthLdap::showUserImportForm($authldap);
if (isset($_SESSION['ldap_import']['authldaps_id']) && $_SESSION['ldap_import']['authldaps_id'] != NOT_AVAILABLE && isset($_SESSION['ldap_import']['criterias']) && !empty($_SESSION['ldap_import']['criterias'])) {
echo "<br />";
AuthLdap::searchUser($authldap);
}
}
if (isset($_SESSION['ldap_import']['popup']) && $_SESSION['ldap_import']['popup']) {
Html::ajaxFooter();
} else {
Html::footer();
}