Admin re-authenticate question

Discuss general development subjects that are not specific to a particular version like the versioning control system we use or other infrastructure.
Post Reply
kevbo22
Registered User
Posts: 1
Joined: Wed Mar 09, 2011 12:11 am

Admin re-authenticate question

Post by kevbo22 »

I am wondering if I can make a separate login page for the admin re-authentication. I found the admin re-authenticate code in: adm/index.php on lines 30-34:

// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
}

And I found "login_box" in: includes/functions.php starting on line 2859:

/**
* Generate login box or verify password
*/
function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = false, $s_display = true)
{

Can I make a duplicate login page and name it say login_admin.php and have my ACP re-authenticate redirect here? How can I do this? Thanks.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: Admin re-authenticate question

Post by Oleg »

Please ask in mod writers discussion forum on phpbb.com. This board is for development of phpbb itself.

Post Reply