mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Notice removals
This commit is contained in:
@@ -333,6 +333,7 @@ function alt_auth_post_options($prefix)
|
||||
function altAuthGetPasswordSelector($name, $frm, $currentSelection = '', $getExtended = FALSE)
|
||||
{
|
||||
$password_methods = ExtendedPasswordHandler::GetPasswordTypes($getExtended);
|
||||
$text = "";
|
||||
$text .= $frm->form_select_open($name);
|
||||
foreach($password_methods as $k => $v)
|
||||
{
|
||||
|
@@ -30,13 +30,13 @@ require_once(e_PLUGIN.'alt_auth/alt_auth_adminmenu.php');
|
||||
require_once(e_PLUGIN.'alt_auth/extended_password_handler.php');
|
||||
|
||||
|
||||
if($_POST['update'])
|
||||
if(vartrue($_POST['update']))
|
||||
{
|
||||
$message = alt_auth_post_options('e107db');
|
||||
}
|
||||
|
||||
|
||||
if($message)
|
||||
if(vartrue($message))
|
||||
{
|
||||
e107::getRender()->tablerender('',"<div style='text-align:center;'>".$message.'</div>');
|
||||
}
|
||||
|
@@ -32,13 +32,13 @@ require_once(e_PLUGIN.'alt_auth/alt_auth_adminmenu.php');
|
||||
require_once(e_PLUGIN.'alt_auth/extended_password_handler.php');
|
||||
|
||||
|
||||
if($_POST['update'])
|
||||
if(vartrue($_POST['update']))
|
||||
{
|
||||
// $message = update_importdb_prefs();
|
||||
$message = alt_auth_post_options('importdb');
|
||||
}
|
||||
|
||||
if($message)
|
||||
if(vartrue($message))
|
||||
{
|
||||
e107::getRender()->tablerender("","<div style='text-align:center;'>".$message."</div>");
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ $ldap_ver[1]='2';
|
||||
$ldap_ver[2]='3';
|
||||
|
||||
$message = '';
|
||||
if($_POST['update'])
|
||||
if(vartrue($_POST['update']))
|
||||
{
|
||||
$message .= alt_auth_post_options('ldap');
|
||||
}
|
||||
@@ -71,28 +71,28 @@ $text .= "<tr><td>".LDAPLAN_12."</td><td>";
|
||||
$text .= $frm -> form_select_open("ldap_servertype");
|
||||
foreach($server_types as $v)
|
||||
{
|
||||
$sel = ($ldap['ldap_servertype'] == $v) ? " Selected='selected'" : '';
|
||||
$sel = (vartrue($ldap['ldap_servertype']) == $v) ? " Selected='selected'" : '';
|
||||
$text .= $frm -> form_option($v, $sel, $v);
|
||||
}
|
||||
$text .= $frm -> form_select_close();
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$text .= "<tr><td>".LDAPLAN_1."</td><td>";
|
||||
$text .= $frm -> form_text("ldap_server", 35, $ldap['ldap_server'], 120);
|
||||
$text .= $frm -> form_text("ldap_server", 35, vartrue($ldap['ldap_server']), 120);
|
||||
$text .= "</td></tr>";
|
||||
$text .= "<tr><td>".LDAPLAN_2."</td><td>";
|
||||
$text .= $frm -> form_text("ldap_basedn", 35, $ldap['ldap_basedn'], 120);
|
||||
$text .= $frm -> form_text("ldap_basedn", 35, vartrue($ldap['ldap_basedn']), 120);
|
||||
$text .= "</td></tr>";
|
||||
$text .= "<tr><td>".LDAPLAN_14."</td><td>";
|
||||
$text .= $frm -> form_text("ldap_ou", 35, $ldap['ldap_ou'], 60);
|
||||
$text .= $frm -> form_text("ldap_ou", 35, vartrue($ldap['ldap_ou']), 60);
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$text .= "<tr><td>".LDAPLAN_3."</td><td>";
|
||||
$text .= $frm -> form_text("ldap_user", 35, $ldap['ldap_user'], 120);
|
||||
$text .= $frm -> form_text("ldap_user", 35, vartrue($ldap['ldap_user']), 120);
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$text .= "<tr><td>".LDAPLAN_4."</td><td>";
|
||||
$text .= $frm -> form_text("ldap_passwd", 35, $ldap['ldap_passwd'], 120);
|
||||
$text .= $frm -> form_text("ldap_passwd", 35, vartrue($ldap['ldap_passwd']), 120);
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$text .= "<tr><td>".LDAPLAN_5."</td><td>";
|
||||
|
@@ -31,13 +31,13 @@ require_once(e_PLUGIN.'alt_auth/alt_auth_adminmenu.php');
|
||||
require_once(e_PLUGIN.'alt_auth/extended_password_handler.php');
|
||||
|
||||
|
||||
if($_POST['update'])
|
||||
if(vartrue($_POST['update']))
|
||||
{
|
||||
$message = alt_auth_post_options('otherdb');
|
||||
}
|
||||
|
||||
|
||||
if($message)
|
||||
if(vartrue($message))
|
||||
{
|
||||
e107::getRender()->tablerender('',"<div style='text-align:center;'>".$message.'</div>');
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ require_once(e_PLUGIN."alt_auth/alt_auth_adminmenu.php");
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$message = '';
|
||||
if($_POST['update'])
|
||||
if(vartrue($_POST['update']))
|
||||
{
|
||||
// $message .= alt_auth_post_options('radius');
|
||||
$mes->addSuccess(alt_auth_post_options('radius'));
|
||||
@@ -58,14 +58,14 @@ $frm = new form;
|
||||
$text = $frm -> form_open("post",e_SELF);
|
||||
$text .= "<table class='table adminform'>";
|
||||
$text .= "<tr><td>".LAN_RADIUS_01."</td><td>";
|
||||
$text .= $frm -> form_text("radius_server", 35, $radius['radius_server'], 120);
|
||||
$text .= $frm -> form_text("radius_server", 35, vartrue($radius['radius_server']), 120);
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$text .= "<tr><td>".LAN_RADIUS_02."</td><td>";
|
||||
$text .= $frm -> form_text('radius_secret', 35, $radius['radius_secret'], 200);
|
||||
$text .= $frm -> form_text('radius_secret', 35, vartrue($radius['radius_secret']), 200);
|
||||
$text .= "</td></tr>";
|
||||
|
||||
$tmp = alt_auth_get_field_list('radius',$frm, $ldap, FALSE);
|
||||
$tmp = alt_auth_get_field_list('radius',$frm, vartrue($ldap), FALSE);
|
||||
if ($tmp)
|
||||
{
|
||||
$text .= "<tr><td class='forumheader2' colspan='2'>".LAN_ALT_27."</td></tr>".$tmp;
|
||||
|
Reference in New Issue
Block a user