gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/www/scm/admin index.php,1.2,1.3


From: tperdue
Subject: [Gforge-commits] gforge/www/scm/admin index.php,1.2,1.3
Date: Wed, 19 May 2004 13:17:31 -0500

Update of /cvsroot/gforge/gforge/www/scm/admin
In directory db.perdue.net:/home/tperdue/share/dev.gforge.org/www/scm/admin

Modified Files:
        index.php 
Log Message:
modifications to scm pluginification effort - scm_utils.php was created

Index: index.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/scm/admin/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/index.php 18 May 2004 21:02:35 -0000      1.2
+++ b/index.php 19 May 2004 18:17:29 -0000      1.3
@@ -1,31 +1,35 @@
 <?php
 /**
-  *
-  * SourceForge CVS Frontend
-  *
-  * SourceForge: Breaking Down the Barriers to Open Source Development
-  * Copyright 1999-2001 (c) VA Linux Systems
-  * http://sourceforge.net
-  *
-  * @version   $Id$
-  *
-  */
-
-
-require_once('pre.php');    
-require_once('common/include/account.php');
-
-//only projects can use cvs, and only if they have it turned on
-$project =& group_get_object($group_id);
+<<<<<<< index.php
+ * GForge SCM Frontend
+ *
+ * Copyright 2004 (c) Roland Mas, GForge LLC
+ *
+ * @version   $Id$
+ * @author Tim Perdue address@hidden
+ * @date 2004-05-19
+ *
+ * This file is part of GForge.
+ *
+ * GForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GForge 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
 
-if (!$project->isProject()) {
-       
exit_error('Error',$Language->getText('scm_index','error_only_projects_can_use_cvs'));
-}
-if (!$project->usesCVS()) {
-       
exit_error('Error',$Language->getText('scm_index','error_this_project_has_turned_off'));
-}
+require_once('pre.php');
+require_once('www/scm/scm_utils.php');
 
-site_project_header(array('title'=>$Language->getText('scm_index','cvs_repository'),'group'=>$group_id,'toptab'=>'scm_index','pagename'=>'scm_index','sectionvals'=>array($project->getPublicName())));
+scm_header(array('title'=>$Language->getText('scm_index','cvs_repository'),'group'=>$group_id));
 
 if ($submit) {
        $hook_params = array () ;
@@ -43,7 +47,7 @@
 }
 
 ?>
-<form action="/scm/admin/index.php?group_id=<?php echo $group_id; ?>">
+<form action="<?php echo $PHP_SELF; ?>">
 <?php
 
        $hook_params = array () ;
@@ -55,7 +59,7 @@
 </form>
 <?php
 
-site_project_footer(array());
+scm_footer();
 
 // Local Variables:
 // mode: php





reply via email to

[Prev in Thread] Current Thread [Next in Thread]