<?php
// This file is part of the Savane project
// <http://gna.org/projects/savane/>
//
// $Id: pr,v 1.4 2004/11/23 15:54:21 yeupou Exp $
//
//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
//
//
//  Copyright 2000-2001 (c) Free Software Foundation
//  See the ChangeLog file for a detailed list of changes
//
//
//
//

require "./include/pre.php";    

# Extract the group name
$pathinfo = basename(ereg_replace("\?.*$", "", $_SERVER[REQUEST_URI]));

$res_grp=db_query("SELECT * FROM groups WHERE unix_group_name='".addslashes($pathinfo)."'");


//group was not found

if (db_numrows($res_grp) < 1) {

	echo db_error();
	exit_error("Invalid Group","That group does not exist.");

} else {

	//set up the group_id
        $group_name=$pathinfo;
	$group_id=db_result($res_grp,0,'group_id');

	$project=new Project($group_id);

	//now show the project page
	include ('./include/project_home.php');

}

?>
