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 2005 (c) Mathieu Roy <yeupou--gnu.org>
00008 #
00009 # The Savane project is free software; you can redistribute it and/or
00010 # modify it under the terms of the GNU General Public License
00011 # as published by the Free Software Foundation; either version 2
00012 # of the License, or (at your option) any later version.
00013 #
00014 # The Savane project is distributed in the hope that it will be useful,
00015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017 # GNU General Public License for more details.
00018 #
00019 # You should have received a copy of the GNU General Public License
00020 # along with the Savane project; if not, write to the Free Software
00021 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00022
00023
00024 require "../include/pre.php";
00025
00026 if (!$group_id)
00027 {
00028 exit_no_group();
00029 }
00030
00031 if (!$project->Uses("svn") && !$project->UsesForHomepage("svn"))
00032 {
00033 exit_error(_("This project has turned off this tool"));
00034 }
00035
00036
00037 site_project_header(array('group'=>$group_id,'context'=>'svn'));
00038
00039
00040
00041 # ####################### CVS Browsing
00042
00043
00044 $type = "SVN";
00045 if (($project->Uses("svn") &&
00046 $project->getUrl("svn_viewcvs") != 'http:
00047 $project->getUrl("svn_viewcvs") != '') ||
00048 ($project->UsesForHomepage("svn") &&
00049 $project->getUrl("cvs_viewcvs_homepage") != 'http:
00050 $project->getUrl("cvs_viewcvs_homepage") != ''))
00051 {
00052 print '<h2>'.sprintf(_("Browsing the %s Repository"), $type).'</h2>';
00053 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>';
00054
00055 print '<ul>';
00056 if ($project->Uses("svn") &&
00057 $project->getUrl("svn_viewcvs") != 'http:
00058 $project->getUrl("svn_viewcvs") != '')
00059 {
00060 print '<li><a href="'.$project->getUrl("svn_viewcvs").'">'._("Browse Sources Repository").'</a></li>';
00061 }
00062 if ($project->UsesForHomepage("svn") &&
00063 $project->getUrl("cvs_viewcvs_homepage") != 'http:
00064 $project->getUrl("cvs_viewcvs_homepage") != ''
00065 )
00066 {
00067 print '<li><a href="'.$project->getUrl("cvs_viewcvs_homepage").'">'._("Browse Web Pages Repository").'</a></li>';
00068 }
00069 print '</ul><p> </p>';
00070
00071 }
00072
00073 print '<h2>'.sprintf(_("Getting a Copy of the %s Repository"),$type).'</h2>';
00074
00075 utils_get_content("svn/index");
00076
00077 site_project_footer(array());
00078
00079
00080 ?>