<?php require_once "cms/lib/viewer_functions.php"; ?>
<?php if (!@$GLOBALS['WEBSITE_MEMBERSHIP_PLUGIN']) { die("You must activate the Website Membership plugin before you can access this page."); } ?>
<?php

  if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); exit; } 
   
  $url = ""; 
   
  if ($CURRENT_USER['fellow'] == 1) { 
    $url = "/member/fellows.php"; 
  } 
  elseif ($CURRENT_USER['certified'] == 2) { 
    $url = "/member/certified.php"; 
  } 
  elseif ($CURRENT_USER['associate'] == 3) { 
    $url = "/member/associate.php"; 
  } 
  else { 
    $url  = "/member/subscriber.php"; 
  } 
   
  redirectBrowserToURL($url); 
  exit;

?>