mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
PHP warning fixes.
This commit is contained in:
@@ -31,7 +31,7 @@ TODO:
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
/*
|
||||
|
||||
define('AUTH_SUCCESS', -1);
|
||||
define('AUTH_NOUSER', 1);
|
||||
@@ -39,7 +39,7 @@ if (!defined('e107_INIT')) { exit; }
|
||||
define('AUTH_NOCONNECT', 3);
|
||||
define('AUTH_UNKNOWN', 4);
|
||||
define('AUTH_NOT_AVAILABLE', 5);
|
||||
|
||||
*/
|
||||
|
||||
require_once(e_HANDLER.'user_extended_class.php');
|
||||
require_once(e_PLUGIN.'alt_auth/alt_auth_login_class.php'); // Has base methods class
|
||||
@@ -562,7 +562,11 @@ function alt_auth_adminmenu()
|
||||
{
|
||||
$authlist = alt_auth_admin::alt_auth_get_authlist();
|
||||
}
|
||||
define('ALT_AUTH_ACTION', 'main');
|
||||
|
||||
if(!defined('ALT_AUTH_ACTION'))
|
||||
{
|
||||
define('ALT_AUTH_ACTION', 'main');
|
||||
}
|
||||
|
||||
$var['main']['text'] = LAN_ALT_31;
|
||||
$var['main']['link'] = e_PLUGIN . 'alt_auth/alt_auth_conf.php';
|
||||
|
@@ -182,7 +182,7 @@ $text .= "<option value='1' {$sel} >".LAN_ALT_FALLBACK."</option>
|
||||
<td>".LAN_ALT_8.":<br />
|
||||
|
||||
</td>
|
||||
<td>".$altAuthAdmin->alt_auth_get_dropdown('auth_method2', $pref['auth_method2'], 'none')."
|
||||
<td>".$altAuthAdmin->alt_auth_get_dropdown('auth_method2', varset($pref['auth_method2']), 'none')."
|
||||
<div class='smalltext field-help'>".LAN_ALT_9."</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -227,7 +227,7 @@ if ($euf->userCount)
|
||||
<td class='center'><input type='checkbox' name='auth_euf_include[]' value='{$f['user_extended_struct_name']}'{$checked} /></td>
|
||||
<td>{$f['user_extended_struct_name']}</td>
|
||||
<td>".$tp->toHTML($f['user_extended_struct_text'],FALSE,'TITLE')."</td>
|
||||
<td>{$euf->user_extended_types[$f['user_extended_struct_type']]}</td></tr>\n";
|
||||
<td>". varset($euf->user_extended_types[$f['user_extended_struct_type']])."</td></tr>\n";
|
||||
}
|
||||
$text .= "</tbody>
|
||||
</table><div class='buttons-bar center'>
|
||||
|
@@ -26,14 +26,23 @@ define('AA_DEBUG1',FALSE);
|
||||
|
||||
|
||||
//TODO convert to class constants (but may be more useful as globals, perhaps within a general login manager scheme)
|
||||
define('AUTH_SUCCESS', -1);
|
||||
define('AUTH_NOUSER', 1);
|
||||
define('AUTH_BADPASSWORD', 2);
|
||||
define('AUTH_NOCONNECT', 3);
|
||||
define('AUTH_UNKNOWN', 4);
|
||||
define('AUTH_NOT_AVAILABLE', 5);
|
||||
define('AUTH_NORESOURCE', 6); // Used to indicate, for example, that a required PHP module isn't loaded
|
||||
$authConst = array(
|
||||
'AUTH_SUCCESS' => -1,
|
||||
'AUTH_NOUSER' => 1,
|
||||
'AUTH_BADPASSWORD' => 2,
|
||||
'AUTH_NOCONNECT' => 3,
|
||||
'AUTH_UNKNOWN' => 4,
|
||||
'AUTH_NOT_AVAILABLE' => 5,
|
||||
'AUTH_NORESOURCE' => 6, // Used to indicate => for example => that a required PHP module isn't loaded
|
||||
);
|
||||
|
||||
foreach($authConst as $def => $val)
|
||||
{
|
||||
if(!defined($def))
|
||||
{
|
||||
define($def, $val);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Methods used by a number of alt_auth classes.
|
||||
|
Reference in New Issue
Block a user