Location: PHPKode > projects > Internet Media Manager > imm-0.3/include/functions.inc.php
<?php
function &getUser(){
	$auth =& Dataface_AuthenticationTool::getInstance();
	$user =& $auth->getLoggedInUser();
	return $user;
}

function getRole(){
	$user =& getUser();
	if ( $user and $user->val('role') ) return $user->val('role');
	return null;
}

function isAdmin(){
	return (getRole() == 'ADMIN');
}
Return current item: Internet Media Manager