You have been Invited
[insert_php]
switch($_GET[“invited”]){
case ‘true’:
posterInvite();
break;
default:
//header(“Location: http://teamdriven.us/”);
break;
}
///// functions /////
function posterInvite(){
global $current_user;
$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);
if($user_role == “invitedusers”) {
echo ‘
‘;
}
else {
//(“Location: http://teamdriven.us/”);
}
}
[/insert_php]