This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Checks to see if a user is logged in
Description
integer = afc_check_if_logged_in (id)
This function checks to see if a user is logged in, and if so returns their member id number. If they are not logged in, this function will automatically redirect them to the log in page.
Parameters
id (integer) - Anytime you see this variable being passed to a function, all you need to do is simply use the variable $id, which is automatically set for you when dbinfo.php is called.
Return Values
This function has no return value.
Open Source: YesPaul's Examples $memberid = afc_check_if_logged_in ($id);
|
Back to Functions List
|