This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

phpBB 3.0.x Remove ACP 2nd authentication login

Code snippets/ small mods for phpBB3- these can be used to add small but useful features to your forum.
Forum rules
You need to be a registered member to view the topics within this forum ;)
Locked
User avatar
Ooopsie
ooopsie
ooopsie
Posts: 1046
Joined: Sat Sep 25 2010 12:15 pm
Real name: Guito :)
Country Flag: United States
Location: Index, WA. or the State of Shock most of the time.
Contact:

phpBB 3.0.x Remove ACP 2nd authentication login

Post by Ooopsie »

This tid-bit will remove the 2nd ACP Authentication. If you are logged in as the admin, you can click the Administrator Control Panel and be redirected there without supplying a 2nd login.

Open adm/index.php
[i_i]Find:

Code: Select all

    // 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);
    }
[/i_i]
[i_i]Replace with:

Code: Select all

    // 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);
    //}
[/i_i]OR Simply comment out the lines in the Find section.
________________________
Ed
"Be kinder than necessary for everyone
you meet is fighting some kind of battle."
________________________
ALWAYS BACK-UP BEFORE MAKING CHANGES TO YOUR DATABASE OR FILES. ALWAYS!!!!

Do not PM me asking for support unless invited to do so. Use the forums.
Locked