}
function getBlurb() {
- return '<p>'
+ return '<p>'
. sprintf(_('Documentation for %1$s is available at <a href="%2$s">%2$s</a>.'),
'Subversion (“SVN”)',
- 'href="http://svnbook.red-bean.com/')
+ 'http://svnbook.red-bean.com/')
. '</p>';
}
$module = $this->topModule($project);
if (session_loggedin()) {
- $u =& user_get_object(user_getid());
+ $u = user_get_object(user_getid());
$d = $u->getUnixName() ;
if (forge_get_config('use_ssh', 'scmsvn')) {
$b .= '<h2>';
$b .= ' ';
$b .= _('SSH must be installed on your client machine.');
$b .= ' ';
- $b .= _('Substitute <i>developername</i> with the proper values.');
+ $b .= _('Substitute <em>developername</em> with the proper values.');
$b .= ' ';
$b .= _('Enter your site password when prompted.');
$b .= '</p>';
$b .= '<p>';
$b .= sprintf(_('Only project developers can access the %s tree via this method.'), 'Subversion');
$b .= ' ';
- $b .= _('Substitute <i>developername</i> with the proper values.');
+ $b .= _('Substitute <em>developername</em> with the proper values.');
$b .= ' ';
$b .= _('Enter your site password when prompted.');
$b .= '</p>';
$unix_group = 'scm_' . $project->getUnixName() ;
system ("find $repo -type d | xargs -I{} chmod g+s {}") ;
if ($project->enableAnonSCM()) {
- system ("chmod -R g+wX,o+rX-w $repo") ;
+ system ("chmod -R g+rwX,o+rX-w $repo") ;
} else {
- system ("chmod -R g+wX,o-rwx $repo") ;
+ system ("chmod -R g+rwX,o-rwx $repo") ;
}
system ("chgrp -R $unix_group $repo") ;
} else {
system("chgrp $unix_group $repo");
}
if ($project->enableAnonSCM()) {
- system("chmod g+wX,o+rX-w $repo") ;
+ system("chmod g+rwX,o+rX-w $repo") ;
} else {
- system("chmod g+wX,o-rwx $repo") ;
+ system("chmod g+rwX,o-rwx $repo") ;
}
} else {
$unix_user = forge_get_config('apache_user');
$updates = 0;
$usr_adds = array();
$usr_updates = array();
-
+
$repo = forge_get_config('repos_path', 'scmsvn') . '/' . $project->getUnixName();
if (!is_dir ($repo) || !is_file ("$repo/format")) {
echo "No repository $repo\n";
db_rollback();
return false;
}
-
+
$res = db_query_params ('DELETE FROM stats_cvs_user WHERE month=$1 AND day=$2 AND group_id=$3',
array ($month_string,
$day,
db_rollback () ;
return false ;
}
-
+
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "SVNPluginStartElement", "SVNPluginEndElement");
xml_set_character_data_handler($xml_parser, "SVNPluginCharData");
foreach ( $user_list as $user ) {
// trying to get user id from user name
- $u = &user_get_object_by_name ($user) ;
+ $u = user_get_object_by_name ($user) ;
if ($u) {
$user_id = $u->getID();
} else {
$dir = $project->getUnixName ()."-$today" ;
system ("mkdir -p $tmp") ;
$code = 0 ;
- system ("svn ls file://$repo/trunk > /dev/null", $code) ;
+ system ("svn ls file://$repo/trunk > /dev/null 2> /dev/null", $code) ;
if ($code == 0) {
system ("cd $tmp ; svn export file://$repo/trunk $dir > /dev/null 2>&1") ;
system ("tar cCf $tmp - $dir |".forge_get_config('compression_method')."> $tmp/snapshot") ;