3 * User information page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 require_once('env.inc.php');
29 require_once('pre.php');
30 require_once('common/include/User.class.php');
32 $expl_pathinfo = explode('/', getStringFromServer('REQUEST_URI'));
34 if (!$expl_pathinfo[2]) {
35 exit_error($Language->getText('general','error'),$Language->getText('users','no_user_name'));
38 //get the user object based on the user_name in the URL
39 $user =& user_get_object_by_name($expl_pathinfo[2]);
41 if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
43 exit_error($Language->getText('users','user_not_exist_title'),$Language->getText('users','user_not_exist_text'));
47 $user_id = $user->getID();
49 //now show the user page
50 include ('user_home.php');