function pun_setcookie($user_id, $password_hash, $expire)
{
    global $cookie_name, $cookie_seed;
    forum_setcookie($cookie_name, $user_id . '|' . forum_hmac($password_hash, $cookie_seed . '_password_hash') . '|' . $expire . '|' . forum_hmac($user_id . '|' . $expire, $cookie_seed . '_cookie_hash'), $expire);
}
Beispiel #2
0
function pun_setcookie($user_id, $password_hash, $expire)
{
    global $flux_config;
    forum_setcookie($flux_config['cookie']['name'], $user_id . '|' . forum_hmac($password_hash, $flux_config['cookie']['seed'] . '_password_hash') . '|' . $expire . '|' . forum_hmac($user_id . '|' . $expire, $flux_config['cookie']['seed'] . '_cookie_hash'), $expire);
}