<?php
	# Mantis - a php based bugtracking system
	# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
	# Copyright (C) 2002         Mantis Team   - mantisbt-dev@lists.sourceforge.net
	# This program is distributed under the terms and conditions of the GPL
	# See the README and LICENSE files for details

	# --------------------------------------------------------
	# $Id: account_prof_update.php,v 1.18 2002-10-20 22:52:52 jfitzell Exp $
	# --------------------------------------------------------
?>
<?php
	# This page updates the users profile information then redirects to
	# account_prof_menu_page.php
?>
<?php require_once( 'core.php' ) ?>
<?php login_cookie_check() ?>
<?php
	$f_profile_id	= gpc_get_int( 'f_profile_id' );
	$f_platform		= gpc_get_string( 'f_platform' );
	$f_os			= gpc_get_string( 'f_os' );
	$f_os_build		= gpc_get_string( 'f_os_build' );
	$f_description	= gpc_get_string( 'f_description' );

	profile_update( auth_get_current_user_id(), $f_profile_id, $f_platform, $f_os, $f_os_build, $f_description );

	print_header_redirect( 'account_prof_menu_page.php' );
?>
