// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $vGroupId = new Valid_GroupId(); $vGroupId->required(); if (!$request->valid($vGroupId)) { exit_no_group(); // need a group_id !!! } else { $group_id = $request->get('group_id'); $hp =& Codendi_HTMLPurifier::instance(); svn_header(array('title' => $Language->getText('svn_browse_revision', 'browsing'), 'help' => 'svn.html#the-subversion-browsing-interface')); $vOffset = new Valid_UInt('offset'); $vOffset->required(); if ($request->valid($vOffset)) { $offset = $request->get('offset'); } else { $offset = 0; } $vChunksz = new Valid_UInt('chunksz'); $vChunksz->required(); if ($request->valid($vChunksz)) { $chunksz = $request->get('chunksz'); } else { $chunksz = 15; } $vMsort = new Valid_WhiteList('msort', array(0, 1));
if ($group_id === false) { exit_no_group(); } $vRootType = new Valid_WhiteList('roottype', array('svn')); $vRootType->setErrorMessage($Language->getText('svn_viewvc', 'bad_roottype')); $vRootType->required(); if ($request->valid($vRootType)) { if (!svn_utils_check_access(user_getname(), $root, viewvc_utils_getfile("/svn/viewvc.php"))) { exit_error($Language->getText('svn_viewvc', 'access_denied'), $Language->getText('svn_viewvc', 'acc_den_comment', session_make_url("/project/memberlist.php?group_id={$group_id}"))); } viewvc_utils_track_browsing($group_id, 'svn'); $display_header_footer = viewvc_utils_display_header(); if ($display_header_footer) { $prefix_title = ''; if ($path = viewvc_utils_getfile("/svn/viewvc.php")) { $prefix_title = basename($path) . ' - '; } $GLOBALS['HTML']->addStylesheet('/viewvc-static/styles.css'); svn_header(array('title' => $prefix_title . $Language->getText('svn_utils', 'browse_tree'), 'path' => '/' . urlencode(viewvc_utils_getfile("/svn/viewvc.php")))); } viewvc_utils_passcommand(); if ($display_header_footer) { site_footer(array()); } } else { svn_header(array('title' => $Language->getText('svn_utils', 'browse_tree'))); site_footer(array()); } } else { exit_not_logged_in(); }
if ($request->valid($vCommitId)) { $commit_id = $request->get('commit_id'); } else { $commit_id = 0; } $vRevId = new Valid_UInt('rev_id'); $vRevId->required(); if ($request->valid($vRevId)) { $rev_id = $request->get('rev_id'); } else { $rev_id = 0; } $vOrder = new Valid_WhiteList('order', array('filename', 'type')); $vOrder->required(); if ($request->valid($vOrder)) { $order = $request->get('order'); } else { $order = ''; } $pm = ProjectManager::instance(); $project = $pm->getProject($group_id); $group_name = $project->getUnixName(false); $result = svn_data_get_revision_detail($group_id, $commit_id, $rev_id, $order); if (db_numrows($result) > 0) { svn_header(array('title' => $Language->getText('svn_detail_revision', 'svn_rev', db_result($result, 0, 'revision')), 'help' => 'svn.html#the-subversion-browsing-interface')); svn_utils_show_revision_detail($result, $group_id, $group_name, $commit_id); svn_footer(array()); } else { exit_error($Language->getText('global', 'error'), $Language->getText('svn_detail_revision', 'id_not_found', $commit_id)); } }
// // // Originally written by Laurent Julliard 2001- 2003 Codendi Team, Xerox // require_once 'common/include/URL.class.php'; require_once 'common/event/EventManager.class.php'; $vGroupId = new Valid_UInt('group_id'); $vGroupId->required(); if (!$request->valid($vGroupId)) { exit_no_group(); // need a group_id !!! } else { $group_id = $request->get('group_id'); } $hp =& Codendi_HTMLPurifier::instance(); svn_header(array('title' => $Language->getText('svn_intro', 'info'))); // Table for summary info print '<TABLE width="100%"><TR valign="top"><TD width="65%">' . "\n"; // Get group properties $res_grp = db_query("SELECT * FROM groups WHERE group_id=" . db_ei($group_id)); $row_grp = db_fetch_array($res_grp); $pm = ProjectManager::instance(); $p = $pm->getProject($group_id); // Show CVS access information if ($row_grp['svn_preamble'] != '') { echo $hp->purify(util_unconvert_htmlspecialchars($row_grp['svn_preamble']), CODENDI_PURIFIER_FULL); } else { $host = $GLOBALS['sys_default_domain']; if ($GLOBALS['sys_force_ssl']) { $svn_url = 'https://' . $host; } else {
if ($request->valid($vCommitId)) { $commit_id = $request->get('commit_id'); } else { $commit_id = 0; } $vRevId = new Valid_UInt('rev_id'); $vRevId->required(); if ($request->valid($vRevId)) { $rev_id = $request->get('rev_id'); } else { $rev_id = 0; } $vOrder = new Valid_WhiteList('order', array('filename', 'type')); $vOrder->required(); if ($request->valid($vOrder)) { $order = $request->get('order'); } else { $order = ''; } $pm = ProjectManager::instance(); $project = $pm->getProject($group_id); $group_name = $project->getUnixName(false); $result = svn_data_get_revision_detail($group_id, $commit_id, $rev_id, $order); if (db_numrows($result) > 0) { svn_header(array('title' => $Language->getText('svn_detail_revision', 'svn_rev', db_result($result, 0, 'revision')), 'help' => 'SubversionBrowsingInterface.html')); svn_utils_show_revision_detail($result, $group_id, $group_name, $commit_id); svn_footer(array()); } else { exit_error($Language->getText('global', 'error'), $Language->getText('svn_detail_revision', 'id_not_found', $commit_id)); } }
// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $vGroupId = new Valid_GroupId(); $vGroupId->required(); if (!$request->valid($vGroupId)) { exit_no_group(); // need a group_id !!! } else { $group_id = $request->get('group_id'); $hp =& Codendi_HTMLPurifier::instance(); svn_header(array('title' => $Language->getText('svn_browse_revision', 'browsing'), 'help' => 'SubversionBrowsingInterface.html')); $vOffset = new Valid_UInt('offset'); $vOffset->required(); if ($request->valid($vOffset)) { $offset = $request->get('offset'); } else { $offset = 0; } $vChunksz = new Valid_UInt('chunksz'); $vChunksz->required(); if ($request->valid($vChunksz)) { $chunksz = $request->get('chunksz'); } else { $chunksz = 15; } $vMsort = new Valid_WhiteList('msort', array(0, 1));