Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]kimo_gusatava[/eluser]
is there a way to check if a passed ID is currently logged in?
like:
Code:
// url: http://example.com/user/profile/3213

function profile($id) {
    if(this->ion_auth->is_current_user($id)) {
        // show an editable profile
    } else {
        // show profile to public
    }

}


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 06-29-2011, 09:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB