.
#------------------------------
# $Revision: 2643 $
# $Author: al $
# $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $
#------------------------------
# This page allows users to add a new profile which is POSTed to
# account_prof_add.php
# Users can also manage their profiles
if ( isset( $g_global_profiles ) ) {
$g_global_profiles = true;
} else {
$g_global_profiles = false;
}
require_once( 'core.php' );
$t_core_path = config_get( 'core_path' );
require_once( $t_core_path.'current_user_api.php' );
auth_ensure_user_authenticated();
current_user_ensure_unprotected();
if ( $g_global_profiles ) {
access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) );
} else {
access_ensure_global_level( config_get( 'add_profile_threshold' ) );
}
html_page_top1( lang_get( 'manage_profiles_link' ) );
html_page_top2();
if ( $g_global_profiles ) {
print_manage_menu( 'manage_prof_menu_page.php' );
}
if ( $g_global_profiles ) {
$t_user_id = ALL_USERS;
} else {
$t_user_id = auth_get_current_user_id();
}
?>