<?php
//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
// $Id: projects,v 1.28 2000/11/15 19:11:10 tperdue Exp $

require ('pre.php');    

/*
//
//	This is all being handled in the logger now
//
$expl_pathinfo = explode('/',$REQUEST_URI);

//project name wasn't passed in the URL

if (!$expl_pathinfo[2]) {
	exit_no_group();
}

//get the group_id based on the group_name in the URL

$res_grp=db_query("SELECT * FROM groups WHERE unix_group_name='$expl_pathinfo[2]'");

//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_id=db_result($res_grp,0,'group_id');

	$project=group_get_object($group_id,$res_grp);
*/

//
//	test to see if the logger was successful in setting up the objects
//
	if (!$group_id || !$project) {
		exit_error("Invalid Project","Invalid Project");
	} else {
		//now show the project page
		include ('project_home.php');
	}

?>
