Flitig postare
|
|
Reg.datum: Jun 2006
Inlägg: 344
|
|
Flitig postare
Reg.datum: Jun 2006
Inlägg: 344
|
Såhär gjorde jag, och det fungerar bra...
<?php
define (FORUM_ROOT, 'forum/');
require_once FORUM_ROOT.'include/common.php';
$user_id = 1;
$form_password = 'password';
$salt = 'K^,0FOP!2Sjg';
$form_password_hash = forum_hash($form_password, $salt);
$expire = (true) ? 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);
($hook = get_hook('li_login_qr_get_login_data')) ? eval($hook) : null;
print_r($forum_user);
?>
Senast redigerad av andi den 2010-03-06 klockan 21:15
|