<?php # -*- PHP -*-
# User homepage.
# 
# Copyright (C) 1999-2000 The SourceForge Crew
# Copyright (C) 2000-2003 Free Software Foundation
# Copyright (C) 2002-2005 Mathieu Roy <yeupou--gnu.org>
# Copyright (C) 2007 Sylvain Beucler
# Copyright (C) 2018 Ineiev
#
# This file is part of Savane.
# 
# Savane is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# Savane is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# The context of this page cannot be guessed later, we have to hardcode it
define('CONTEXT', 'people');
require_once('include/init.php');
require_once('include/sendmail.php');

# Extract user's name.
$pathinfo = preg_replace ("/\?.*/", "", basename($_SERVER['REQUEST_URI']));

$res_user = user_get_result_set_from_unix ($pathinfo);

if (db_numrows($res_user) < 1)
  exit_error (_("Invalid User"), _("That user does not exist."));

$extra_script_name = '/' . $pathinfo;

$user_id = db_result ($res_user, 0, 'user_id');
include ('include/user_home.php');
?>
