Main Page | Directories | File List | File Members

cvs/index.php

Go to the documentation of this file.
00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: index.php 5187 2005-12-01 16:22:29Z yeupou $
00006 #
00007 #  Copyright 1999-2000 (c) The SourceForge Crew
00008 #  Copyright 2000-2003 (c) Free Software Foundation
00009 #
00010 #  Copyright 2002-2004 (c) Mathieu Roy <yeupou--at--gnu.org>
00011 #
00012 # The Savane project is free software; you can redistribute it and/or
00013 # modify it under the terms of the GNU General Public License
00014 # as published by the Free Software Foundation; either version 2
00015 # of the License, or (at your option) any later version.
00016 #
00017 # The Savane project is distributed in the hope that it will be useful,
00018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 # GNU General Public License for more details.
00021 #
00022 # You should have received a copy of the GNU General Public License
00023 # along with the Savane project; if not, write to the Free Software
00024 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00025 
00026 
00027 require "../include/pre.php";
00028 
00029 if (!$group_id)
00030 {
00031   exit_no_group();
00032 }
00033 
00034 if (!$project->Uses("cvs") && !$project->UsesForHomepage("cvs"))
00035 {
00036   exit_error(_("This project has turned off this tool"));
00037 }
00038 
00039 site_project_header(array('group'=>$group_id,'context'=>'cvs'));
00040 
00041 
00042 
00043 # ####################### CVS Browsing
00044 
00045 
00046 
00047 $type = "CVS";
00048 
00049 if (($project->Uses("cvs") && 
00050      $project->getUrl("cvs_viewcvs") != 'http://' &&
00051      $project->getUrl("cvs_viewcvs") != '') ||
00052     ($project->UsesForHomepage("cvs") && 
00053      $project->getUrl("cvs_viewcvs_homepage") != 'http://' &&
00054      $project->getUrl("cvs_viewcvs_homepage") != ''))
00055 {
00056     
00057   print '<h2>'.sprintf(_("Browsing the %s Repository"), $type).'</h2>';
00058   print '<p>'.sprintf(_("You can Browse the %s repository of this project with your web browser. This gives you a good picture of the current status of the source files. You may also view the complete histories of any file in the repository as well as differences among two versions."), $type).'</p>';
00059   
00060   print '<ul>';
00061   
00062   if ($project->Uses("cvs") &&
00063       $project->getUrl("cvs_viewcvs") != 'http://' &&
00064       $project->getUrl("cvs_viewcvs") != '')
00065     {
00066       print '<li><a href="'.$project->getUrl("cvs_viewcvs").'">'._("Browse Sources Repository").'</a></li>';
00067     }
00068   if ($project->UsesForHomepage("cvs") &&
00069       $project->getUrl("cvs_viewcvs_homepage") != 'http://' &&
00070       $project->getUrl("cvs_viewcvs_homepage") != ''
00071       )
00072     {
00073       print '<li><a href="'.$project->getUrl("cvs_viewcvs_homepage").'">'._("Browse Web Pages Repository").'</a></li>';
00074     }
00075   print '</ul>';
00076   print '<p>&nbsp;</p>';
00077 }
00078 
00079 
00080 print '<h2>'.sprintf(_("Getting a Copy of the %s Repository"),$type).'</h2>';
00081 
00082 
00083 utils_get_content("cvs/index");
00084 
00085 site_project_footer(array());
00086 
00087 
00088 ?>

Generated on Sun Feb 26 13:23:04 2006 for Savane PHP Frontend Developer Reference by  doxygen 1.4.4