.
/**
* This page allows users to add a new profile which is POSTed to
* account_prof_add.php
*
* Users can also manage their profiles
*
* @package MantisBT
* @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
/**
* MantisBT Core API's
*/
require_once( 'core.php' );
if ( isset( $g_global_profiles ) ) {
$g_global_profiles = true;
} else {
$g_global_profiles = false;
}
require_once( '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_top( lang_get( 'manage_profiles_link' ) );
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();
}
# Add Profile Form BEGIN
?>