/**
 * 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 {
        redirect($cookie_login . '?redirect=' . myself(FALSE));
    }
}
Exemplo n.º 2
0
/**
 * 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);
    }
}
Exemplo n.º 3
0
        } else {
            rename($temp, $init);
            if (!file_exists($init)) {
                $kill .= sprintf(i18n_r('MOVE_TEMPCONFIG_ERROR'), 'temp.gsconfig.php', 'gsconfig.php') . '<br />';
            }
        }
        # send email to new administrator
        $subject = $site_full_name . ' ' . i18n_r('EMAIL_COMPLETE');
        $message .= '<p>' . i18n_r('EMAIL_USERNAME') . ': <strong>' . stripslashes($_POST['user']) . '</strong>';
        $message .= '<br>' . i18n_r('EMAIL_PASSWORD') . ': <strong>' . $random . '</strong>';
        $message .= '<br>' . i18n_r('EMAIL_LOGIN') . ': <a href="' . $SITEURL . $GSADMIN . '/">' . $SITEURL . $GSADMIN . '/</a></p>';
        $message .= '<p><em>' . i18n_r('EMAIL_THANKYOU') . ' ' . $site_full_name . '!</em></p>';
        $status = sendmail($EMAIL, $subject, $message);
        # set the login cookie, then redirect user to secure panel
        setcookie('GS_ADMIN_USERNAME', _id($USR));
        create_cookie();
        # check for fatal errors, if none, redirect to
        if ($kill == '') {
            redirect("support.php");
        }
    }
}
get_template('header', $site_full_name . ' &raquo; ' . i18n_r('INSTALLATION'));
?>
	
		<h1><?php 
echo $site_full_name;
?>
</h1>
	</div>
</div>
Exemplo n.º 4
0
function login_cookie_check()
{
    global $cookie_login;
    if (cookie_check()) {
        create_cookie();
    } else {
        header("Location: " . $cookie_login);
        exit;
    }
}
Exemplo n.º 5
0
/**
 * 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);
    }
}