3 * User information page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
9 * This file is part of GForge.
11 * GForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * GForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with GForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 require_once 'env.inc.php';
27 require_once $gfwww.'include/pre.php';
28 require_once $gfcommon.'include/User.class.php';
30 $expl_pathinfo = explode('/', getStringFromServer('REQUEST_URI'));
32 if (!$expl_pathinfo[2]) {
33 exit_error(_('Error'),_('No User Name Provided'));
36 //get the user object based on the user_name in the URL
37 $user =& user_get_object_by_name( urldecode($expl_pathinfo[2]) );
39 if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
41 exit_error(_('That user does not exist.'),_('Invalid User'));
45 $user_id = $user->getID();
47 //now show the user page
48 include $gfwww.'include/user_home.php';
54 // c-file-style: "bsd"