I am using phpBB3 on my site.
My users mainly use the Board, but I want to provide some extra pages with content, witch should only be accessible for users.
I thought I can use the login_db fuction in the auth_db.php file.
I included with
Code: Select all
define('IN_PHPBB',0); // only that IN_PHPBB is defined and the include is working
include ("forum/includes/auth/auth_db.php");
I get following error:$user="Test";
$pass="password";
$status = login_db($user,$pass);
echo $status['status'];
Call to a member function on a non-object in /.../forum/includes/auth/auth_db.php on line 42
So how can I use this function?
I want just use it to verify the users to view the pages (my extra pages) with their own username from the board and welcome them with their names.
Please can you help me?