Topic: punBB 1.3 external login
hello,
i read many post about punBB 1.3 integration, but i don't find any working solution. I wont to make our login form and autologin to forum by setting cookie. For testing i put data from database manually So i used that code:
define (FORUM_ROOT, 'forum/');
require_once FORUM_ROOT.'include/common.php';
$user_id = 'gokiux';
$form_password = '12345';
$salt = 'YsxR\cDvTy!#'; //salt is too from table users
$form_password_hash = forum_hash($form_password, $salt);
$expire = ($save_pass) ? time() + 1209600 : time() + $forum_config['o_timeout_visit'];
forum_setcookie($cookie_name, base64_encode($user_id.'|'.$form_password_hash.'|'.$expire.'|'.sha1($salt.$form_password_hash.forum_hash($expire, $salt))), $expire);
what i'm doing wrong?