Location: PHPKode > scripts > MVC Membership System > mvc-membership-system/functions.php
<?

    // check if any administrator is currently logged
	function isAdminLogged() {
	  if (!isset($_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='admin') 
	  return false;
	  else return true;
	}

    // check if any member is currently logged
	function isMemberLogged() {
	  if (!isset($_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='member') 
	   return false; 
	   else return true;
	}

    // check if any partner is currently logged
	function isPartnerLogged() {
	  if (!isset($_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='partner') 
	   return false; 
	   else return true;
	}

?>
Return current item: MVC Membership System