location.replace('".SYSTEM_URL."/main/signup_login.html?link=".urlencode( $_SERVER['REQUEST_URI'] )."');";
exit;
} else {
echo ""; exit;
}
}
if ( !array_key_exists( "id", $_GET )) {
echo "";
exit;
}
$profile = new Member( $adiDbConn, $_GET["id"] );
$own_profile = $is_admin = $is_employer = $edit_profile = $admin_override = false;
$top_menu = "meet_people";
if ( $profile->memberId == $member->memberId ) {
$own_profile = true;
$topMenu = "my_profile";
if ( array_key_exists( "pub", $_GET ) && $_GET["pub"] == "edit" ) {
$edit_profile = true;
}
}
if ( $member->memberType == "admin" ) {
$is_admin = true;
if ( array_key_exists( "priv", $_GET )) {
$admin_override = true;
}
} else if ( $member->memberType == "employer" ) {
$is_employer = true;
}
if ( $profile->memberType == "employer" || $profile->memberType == "admin" ) {
$profile = new EmployerMember( $adiDbConn, $profile->memberId );
if ( $own_profile && !$edit_profile || $admin_override ) {
include SYSTEM_PATH."/profile/profile_employer/profile_private_employer.html";
} else {
include SYSTEM_PATH."/profile/profile_employer/profile_public_employer.html";
}
} else {
$profile = new IndividualMember( $adiDbConn, $profile->memberId );
if ( $own_profile && !$edit_profile || $admin_override ) {
include SYSTEM_PATH."/profile/profile_individual/profile_private_individual.html";
} else {
include SYSTEM_PATH."/profile/profile_individual/profile_public_individual.html";
}
}
function getUrl( $query ) {
global $profile,$section,$admin_override;
if ( array_key_exists( "cate", $_GET )) $section = $_GET["cate"];
$url = SYSTEM_URL."/profile/profile.html?id=".$profile->memberId."&cate=".$section;
if ( $admin_override ) $url.= "&priv=admin";
if ( $query ) $url.= "&".$query;
$url.= "#active_component";
return $url;
}
?>