Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_PHPBB', true);
- $phpbb_root_path = 'phpBB3/';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include('phpBB3/common.php');
- $username = "";
- $password = "";
- $user->session_begin();
- $auth->acl($user->data);
- $user->setup('ucp');
- $r = $auth->login($username, $password);
- // 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/
- if(!$r['error_msg']) { echo "Logging you in"; } else { echo "Error: ".$r['error_msg']; }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement