Beispiel #1
0
<?php

//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
if (!$group_id) {
    exit_no_group();
    // need a group_id !!!
}
commits_header(array('title' => $Language->getText('cvs_browse_commit', 'title'), 'help' => 'CVSWebInterface.html#QueryingCVS'));
if (!isset($offset) || $offset < 0) {
    $offset = 0;
}
if (!isset($chunksz) || $chunksz < 1) {
    $chunksz = 15;
}
if (!isset($msort)) {
    $msort = 0;
}
if ($msort != 0 && $msort != 1) {
    $msort = 0;
}
if (user_isloggedin() && !isset($morder)) {
    $morder = user_get_preference('commit_browse_order' . $group_id);
}
if (isset($order)) {
    if ($order != '') {
        // Add the criteria to the list of existing ones
Beispiel #2
0
<?php

//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
if (!$group_id) {
    exit_no_group();
    // need a group_id !!!
}
session_require(array('group' => $group_id, 'admin_flags' => 'A'));
commits_header(array('title' => $Language->getText('cvs_admin_commit', 'title'), 'help' => 'cvs.html#cvs-administration'));
// get project name
$sql = "SELECT unix_group_name, cvs_tracker, cvs_watch_mode, cvs_events_mailing_list, cvs_events_mailing_header, cvs_preamble, cvs_is_private from groups where group_id={$group_id}";
$result = db_query($sql);
$projectname = db_result($result, 0, 'unix_group_name');
$cvs_tracked = db_result($result, 0, 'cvs_tracker');
$cvs_watch_mode = db_result($result, 0, 'cvs_watch_mode');
$cvs_mailing_list = db_result($result, 0, 'cvs_events_mailing_list');
$cvs_mailing_header = db_result($result, 0, 'cvs_events_mailing_header');
$cvs_preamble = db_result($result, 0, 'cvs_preamble');
$cvs_is_private = db_result($result, 0, 'cvs_is_private');
if ($cvs_mailing_list == 'NULL') {
    $cvs_mailing_list = '';
}
$custom_mailing_header = $cvs_mailing_header;
if ($cvs_mailing_header == 'NULL') {
    $custom_mailing_header = "";
}
Beispiel #3
0
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
require_once 'pre.php';
require_once 'viewvc_utils.php';
require_once 'www/cvs/commit_utils.php';
if (user_isloggedin()) {
    // be backwards compatible with old viewvc.cgi links that are now redirected
    if (!$root) {
        $root = $cvsroot;
    }
    $res_grp = db_query("SELECT * FROM groups WHERE unix_group_name='" . $root . "'");
    $row_grp = db_fetch_array($res_grp);
    $group_id = $row_grp['group_id'];
    if (!check_cvs_access(user_getname(), $root, viewvc_utils_getfile("/cvs/viewvc.php"))) {
        exit_error($Language->getText('cvs_viewvc', 'error_noaccess'), $Language->getText('cvs_viewvc', 'error_noaccess_msg', session_make_url("/project/memberlist.php?group_id={$group_id}")));
    }
    viewvc_utils_track_browsing($group_id, 'cvs');
    $display_header_footer = viewvc_utils_display_header();
    if ($display_header_footer) {
        commits_header(array('title' => $Language->getText('cvs_viewvc', 'title'), 'stylesheet' => array('/viewvc-static/styles.css')));
    }
    viewvc_utils_passcommand();
    if ($display_header_footer) {
        site_footer(array());
    }
} else {
    exit_not_logged_in();
}
Beispiel #4
0
<?php

//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
if (!$group_id) {
    exit_no_group();
    // need a group_id !!!
}
session_require(array('group' => $group_id, 'admin_flags' => 'A'));
commits_header(array('title' => $Language->getText('cvs_admin_commit', 'title'), 'help' => 'CVSWebInterface.html#CVSAdministration'));
// get project name
$sql = "SELECT unix_group_name, cvs_tracker, cvs_watch_mode, cvs_events_mailing_list, cvs_events_mailing_header, cvs_preamble, cvs_is_private from groups where group_id={$group_id}";
$result = db_query($sql);
$projectname = db_result($result, 0, 'unix_group_name');
$cvs_tracked = db_result($result, 0, 'cvs_tracker');
$cvs_watch_mode = db_result($result, 0, 'cvs_watch_mode');
$cvs_mailing_list = db_result($result, 0, 'cvs_events_mailing_list');
$cvs_mailing_header = db_result($result, 0, 'cvs_events_mailing_header');
$cvs_preamble = db_result($result, 0, 'cvs_preamble');
$cvs_is_private = db_result($result, 0, 'cvs_is_private');
if ($cvs_mailing_list == 'NULL') {
    $cvs_mailing_list = '';
}
$custom_mailing_header = $cvs_mailing_header;
if ($cvs_mailing_header == 'NULL') {
    $custom_mailing_header = "";
}
Beispiel #5
0
<?php

//
// Codendi
// Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
// http://www.codendi.com
//
//
//
//	Originally written by Laurent Julliard 2001- 2003 Codendi Team, Xerox
//
if (!$group_id) {
    exit_no_group();
    // need a group_id !!!
}
commits_header(array('title' => $Language->getText('cvs_intro', 'title')));
// 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={$group_id}");
$row_grp = db_fetch_array($res_grp);
// Show CVS access information
if ($row_grp['cvs_preamble'] != '') {
    echo util_unconvert_htmlspecialchars($row_grp['cvs_preamble']);
} else {
    include $Language->getContent('cvs/intro');
}
// Summary info
print '</TD><TD width="25%">';
print $HTML->box1_top($Language->getText('cvs_intro', 'repo_history'));
echo format_cvs_history($group_id);
Beispiel #6
0
<?php

//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
if (!$group_id) {
    exit_no_group();
    // need a group_id !!!
}
commits_header(array('title' => $Language->getText('cvs_browse_commit', 'title'), 'help' => 'cvs.html#querying-cvs'));
if (!isset($offset) || $offset < 0) {
    $offset = 0;
}
if (!isset($chunksz) || $chunksz < 1) {
    $chunksz = 15;
}
if (!isset($msort)) {
    $msort = 0;
}
if ($msort != 0 && $msort != 1) {
    $msort = 0;
}
if (user_isloggedin() && !isset($morder)) {
    $morder = user_get_preference('commit_browse_order' . $group_id);
}
if (isset($order)) {
    if ($order != '') {
        // Add the criteria to the list of existing ones
Beispiel #7
0
        $order_str = " ORDER BY " . $order;
    } else {
        $order_str = " ORDER BY dir, file";
    }
}
$when_str = '';
$id_str = "AND cvs_checkins.descid='{$checkin_id}' ";
if ($commit_id) {
    $id_str = "AND cvs_checkins.commitid='{$commit_id}' ";
    if ($desc_id) {
        $id_str = $id_str . "AND cvs_checkins.descid='{$desc_id}' ";
    }
}
if ($when) {
    $when_str = "AND cvs_checkins.ci_when='{$when}' ";
}
if ($tag) {
    $when_str = $when_str . "AND cvs_checkins.stickytag='{$tag}' ";
}
$sql = "SELECT repository, cvs_commits.comm_when as c_when, repositoryid, description, file, fileid, dir, dirid, type, branch, revision, addedlines, removedlines " . "FROM cvs_dirs, cvs_descs, cvs_files, cvs_checkins, cvs_branches, cvs_repositories, cvs_commits " . "WHERE cvs_checkins.fileid=cvs_files.id " . "AND cvs_checkins.dirid=cvs_dirs.id " . "AND cvs_checkins.commitid=cvs_commits.id " . "AND cvs_checkins.branchid=cvs_branches.id " . "AND cvs_checkins.descid=cvs_descs.id " . "AND cvs_checkins.repositoryid=cvs_repositories.id " . $id_str . $when_str . $order_str;
$result = db_query($sql);
if (db_numrows($result) > 0) {
    if (get_group_id_from_repository(db_result($result, 0, 'repository')) != $group_id) {
        exit_error('Error', $Language->getText('cvs_detail_commit', 'error_notfound', array($commit_id)));
    }
    commits_header(array('title' => $Language->getText('cvs_detail_commit', 'title', array($commit_id)), 'help' => 'cvs.html#querying-cvs'));
    show_commit_details($result);
    commits_footer(array());
} else {
    exit_error('Error', $Language->getText('cvs_detail_commit', 'error_notfound', array($commit_id)));
}
Beispiel #8
0
        $order_str = " ORDER BY " . $order;
    } else {
        $order_str = " ORDER BY dir, file";
    }
}
$when_str = '';
$id_str = "AND cvs_checkins.descid='{$checkin_id}' ";
if ($commit_id) {
    $id_str = "AND cvs_checkins.commitid='{$commit_id}' ";
    if ($desc_id) {
        $id_str = $id_str . "AND cvs_checkins.descid='{$desc_id}' ";
    }
}
if ($when) {
    $when_str = "AND cvs_checkins.ci_when='{$when}' ";
}
if ($tag) {
    $when_str = $when_str . "AND cvs_checkins.stickytag='{$tag}' ";
}
$sql = "SELECT repository, cvs_commits.comm_when as c_when, repositoryid, description, file, fileid, dir, dirid, type, branch, revision, addedlines, removedlines " . "FROM cvs_dirs, cvs_descs, cvs_files, cvs_checkins, cvs_branches, cvs_repositories, cvs_commits " . "WHERE cvs_checkins.fileid=cvs_files.id " . "AND cvs_checkins.dirid=cvs_dirs.id " . "AND cvs_checkins.commitid=cvs_commits.id " . "AND cvs_checkins.branchid=cvs_branches.id " . "AND cvs_checkins.descid=cvs_descs.id " . "AND cvs_checkins.repositoryid=cvs_repositories.id " . $id_str . $when_str . $order_str;
$result = db_query($sql);
if (db_numrows($result) > 0) {
    if (get_group_id_from_repository(db_result($result, 0, 'repository')) != $group_id) {
        exit_error('Error', $Language->getText('cvs_detail_commit', 'error_notfound', array($commit_id)));
    }
    commits_header(array('title' => $Language->getText('cvs_detail_commit', 'title', array($commit_id)), 'help' => 'CVSWebInterface.html#QueryingCVS'));
    show_commit_details($result);
    commits_footer(array());
} else {
    exit_error('Error', $Language->getText('cvs_detail_commit', 'error_notfound', array($commit_id)));
}