I've tried this and a cookie is created, but on the redirect to the forum, it shows not logged in.
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.php');
include($phpbb_root_path . 'includes/functions_user.php');
include($phpbb_root_path . 'includes/ucp/ucp_register.php');
$password='xxxxx';
$username='xxxxx';
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$username = request_var($username, '');
$password = request_var($password, '');
if(isset($username) && isset($password))
{
$auth->login($username, $password, true);
header("Location: https://my.townhub.org/");
}
Code: Select all
.townhub.org