Exemple #1
0
 public function __construct()
 {
     if (is_user_logged_in()) {
         wp_redirect(wpsc_get_store_url());
         exit;
     }
     parent::__construct();
     //Set a cookie now to see if they are supported by the browser.
     setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
     if (SITECOOKIEPATH != COOKIEPATH) {
         setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
     }
     $this->title = wpsc_get_login_title();
 }
Exemple #2
0
function wpsc_login_title()
{
    echo wpsc_get_login_title();
}