Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. <?php
  2. define('IN_PHPBB', true);
  3.  
  4. $phpbb_root_path = 'phpBB3/';
  5. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  6. include('phpBB3/common.php');
  7.  
  8. $username = "";
  9. $password = "";
  10.  
  11. $user->session_begin();
  12. $auth->acl($user->data);
  13. $user->setup('ucp');
  14.  
  15. $r = $auth->login($username, $password);
  16. // if $r doesnt out put anything, everything worked - if it outputs something, its borked and the user failed!, also tells you how the user failed \o/
  17. if(!$r['error_msg']) { echo "Logging you in"; } else { echo "Error: ".$r['error_msg']; }
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement