Пример #1
0
 *	@package	e107_plugins
 *	@subpackage	alt_auth
 *	@version 	$Id$;
 */
$eplug_admin = true;
require_once '../../class2.php';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'form_handler.php';
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_importdb_conf.php');
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_alt_auth.php');
define('ALT_AUTH_ACTION', 'importdb');
require_once e_PLUGIN . 'alt_auth/alt_auth_adminmenu.php';
require_once e_PLUGIN . 'alt_auth/extended_password_handler.php';
if ($_POST['update']) {
    //	$message = update_importdb_prefs();
    $message = alt_auth_post_options('importdb');
}
if ($message) {
    e107::getRender()->tablerender("", "<div style='text-align:center;'>" . $message . "</div>");
}
show_importdb_form();
function show_importdb_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('importdb');
    $frm = new form();
    $text = $frm->form_open('post', e_SELF);
    $text .= "<table class='table adminform'>\r\n\t<colgroup span='2'>\r\n\t\t<col class='col-label' />\r\n\t\t<col class='col-control' />\r\n\t</colgroup>";
    $text .= "<tr><td colspan='2'>" . IMPORTDB_LAN_11 . "</td></tr>";
    $text .= "<tr><td>" . IMPORTDB_LAN_9 . "</td><td>";
    $text .= altAuthGetPasswordSelector('importdb_password_method', $frm, $parm['importdb_password_method'], TRUE);
Пример #2
0
 *
 *	@package	e107_plugins
 *	@subpackage	alt_auth
 *	@version 	$Id$;
 */
$eplug_admin = true;
require_once '../../class2.php';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'form_handler.php';
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_otherdb_conf.php');
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_alt_auth.php');
define('ALT_AUTH_ACTION', 'otherdb');
require_once e_PLUGIN . 'alt_auth/alt_auth_adminmenu.php';
require_once e_PLUGIN . 'alt_auth/extended_password_handler.php';
if ($_POST['update']) {
    $message = alt_auth_post_options('otherdb');
}
if ($message) {
    e107::getRender()->tablerender('', "<div style='text-align:center;'>" . $message . '</div>');
}
show_otherdb_form();
function show_otherdb_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('otherdb');
    $frm = new form();
    $text = $frm->form_open("post", e_SELF);
    $text .= "<table class='table adminform'>";
    $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>";
    $text .= OTHERDB_LAN_15;
    $text .= "</td></tr>";
Пример #3
0
 *
 *	@package	e107_plugins
 *	@subpackage	alt_auth
 *	@version 	$Id$;
 */
$eplug_admin = true;
require_once '../../class2.php';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'form_handler.php';
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_e107db_conf.php');
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_alt_auth.php');
define('ALT_AUTH_ACTION', 'e107db');
require_once e_PLUGIN . 'alt_auth/alt_auth_adminmenu.php';
require_once e_PLUGIN . 'alt_auth/extended_password_handler.php';
if ($_POST['update']) {
    $message = alt_auth_post_options('e107db');
}
if ($message) {
    e107::getRender()->tablerender('', "<div style='text-align:center;'>" . $message . '</div>');
}
show_e107db_form();
function show_e107db_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('e107db');
    $frm = new form();
    $text = $frm->form_open('post', e_SELF);
    $text .= "<table class='table adminform'>\r\n\t<colgroup span='2'>\r\n\t\t<col class='col-label' />\r\n\t\t<col class='col-control' />\r\n\t</colgroup>";
    $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>";
    $text .= E107DB_LAN_1;
    $text .= "</td></tr>";
Пример #4
0
|     $Author$
+----------------------------------------------------------------------------+
*/
$eplug_admin = true;
require_once "../../class2.php";
require_once e_ADMIN . "auth.php";
require_once e_HANDLER . "form_handler.php";
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_radius_conf.php');
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_alt_auth.php');
define("ALT_AUTH_ACTION", "radius");
require_once e_PLUGIN . "alt_auth/alt_auth_adminmenu.php";
$mes = e107::getMessage();
$message = '';
if ($_POST['update']) {
    // $message .= alt_auth_post_options('radius');
    $mes->addSuccess(alt_auth_post_options('radius'));
}
if (!extension_loaded('radius')) {
    // $message .= "<br /><br /><div style='color:#f00; font-weight:bold'>".LAN_RADIUS_11."</div><br />";
    $mes->addWarning(LAN_RADIUS_11);
}
if ($message) {
    $ns->tablerender("", "<div style='text-align:center;'>" . $message . "</div>");
}
$sql->db_Select("alt_auth", "*", "auth_type = 'radius' ");
while ($row = $sql->db_Fetch()) {
    $radius[$row['auth_parmname']] = base64_decode(base64_decode($row['auth_parmval']));
    // Encoding is new for 0.8
}
$frm = new form();
$text = $frm->form_open("post", e_SELF);
Пример #5
0
require_once '../../class2.php';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'form_handler.php';
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_ldap_conf.php');
include_lan(e_PLUGIN . 'alt_auth/languages/' . e_LANGUAGE . '/admin_alt_auth.php');
define('ALT_AUTH_ACTION', 'ldap');
require_once e_PLUGIN . 'alt_auth/alt_auth_adminmenu.php';
$mes = e107::getMessage();
$server_types[1] = 'LDAP';
$server_types[2] = 'ActiveDirectory';
$server_types[3] = 'eDirectory';
$ldap_ver[1] = '2';
$ldap_ver[2] = '3';
$message = '';
if ($_POST['update']) {
    $message .= alt_auth_post_options('ldap');
}
if (!function_exists('ldap_connect')) {
    // $message .= "<br /><br /><div style='color:#f00; font-weight:bold'>".LDAPLAN_11."</div><br />";
    $mes->addWarning(LDAPLAN_11);
}
if ($message) {
    e107::getRender()->tablerender('', "<div style='text-align:center;'>" . $message . '</div>');
}
$ldap = altAuthGetParams('ldap');
if (!isset($ldap['ldap_edirfilter'])) {
    $ldap['ldap_edirfilter'] == '';
}
//print_a($ldap);
$current_filter = "(&(cn=[USERNAME]){$ldap['ldap_edirfilter']})";
$frm = new form();