Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Ruby by spot ( 17 years ago )
def logged_in?
      !!current_affiliate
    end
    def current_affiliate
      @current_affiliate ||= (login_from_session || login_from_basic_auth || login_from_cookie) unless @current_affiliate == false
    end

 

Revise this Paste

Your Name: Code Language: