1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

phpBB question

Discussion in 'phpBB' started by kevbo22, Mar 8, 2011.

  1. #1
    I am wondering if any one knows where I can find the code that redirects the admin to re-authenticate on the login page. Example, when the admin goes to the ACP, they are redirected to the login page to re-authenticate. Do you know where I can find the code that redirects? Thanks.
    SEMrush
     
    kevbo22, Mar 8, 2011 IP
    SEMrush
  2. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    This bit of code is 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);
    }

    I also found the "login_box" in /includes/functions.php on line 2859:

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

    Now that I found this, How can I redirect the admin re-authenticate to a duplicate login page?
     
    kevbo22, Mar 8, 2011 IP
  3. Fazy

    Fazy Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    in phpbb it is by default to re authenticate if acp is log in if you are using phpbb3.08 if not then update it
    go to maintenance and then see which version f phpbb you are using
     
    Fazy, Mar 17, 2011 IP