SHARE
TWEET

Untitled

a guest Jun 15th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. define('IN_PHPBB', true);
  3. $phpbb_root_path = './';
  4. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  5. include($phpbb_root_path . 'common.' . $phpEx);
  6.  
  7. // Start session management
  8. $user->session_begin();
  9. $auth->acl($user->data);
  10. $user->setup();
  11.  
  12. if($user->data['is_registered'])
  13. {
  14.     //User is already logged in
  15. }
  16. else
  17. {
  18.     $username = request_var('username', '', true);
  19.     $password = request_var('password', '', true);
  20.  
  21.     $result = $auth->login($username, $password);
  22.  
  23.     if ($result['status'] == LOGIN_SUCCESS)
  24.     {
  25.         //User was successfully logged into phpBB
  26.     }
  27.     else
  28.     {
  29.         //User's login failed
  30.     }
  31. }
  32. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top