/**
 * Check Login Cookie
 *
 * @since 1.0
 * @uses $cookie_login
 * @uses cookie_check
 * @uses redirect
 */
function login_cookie_check()
{
    global $cookie_login;
    if (cookie_check()) {
        create_cookie();
    } else {
        $qstring = filter_queryString(array('id'));
        $redirect_url = $cookie_login . '?redirect=' . myself(false) . '?' . $qstring;
        redirect($redirect_url);
    }
}
/**
 * Check Login Cookie
 *
 * @since 1.0
 * @uses $cookie_login
 * @uses cookie_check
 * @uses redirect
 */
function login_cookie_check()
{
    global $cookie_login;
    if (cookie_check()) {
        create_cookie();
    } else {
        $qstring = filter_queryString(explode(',', getDef('GSLOGINQSALLOWED')));
        $redirect_url = $cookie_login . '?redirect=' . myself(false) . '?' . $qstring;
        redirect($redirect_url);
    }
}