version 4.22, 2019/11/13 09:12:47 |
version 4.23, 2019/11/26 11:21:27 |
|
|
$use_moddate $gzip_open $file_list_len |
$use_moddate $gzip_open $file_list_len |
$allow_tar @tar_options @gzip_options @zip_options @cvs_options |
$allow_tar @tar_options @gzip_options @zip_options @cvs_options |
@annotate_options @rcsdiff_options |
@annotate_options @rcsdiff_options |
$HTML_DOCTYPE $HTML_META $cssurl $CSS $cvshistory_url |
$HTML_DOCTYPE $HTML_META $cssurl $CSS |
); |
); |
|
|
require Compress::Zlib; |
require Compress::Zlib; |
Line 173 sub download_url($$;$); |
|
Line 173 sub download_url($$;$); |
|
sub download_link($$$;$); |
sub download_link($$$;$); |
sub display_url($$;$); |
sub display_url($$;$); |
sub display_link($$;$$); |
sub display_link($$;$$); |
sub history_link($$;$); |
|
sub toggleQuery($;$); |
sub toggleQuery($;$); |
sub htmlquote($); |
sub htmlquote($); |
sub htmlunquote($); |
sub htmlunquote($); |
Line 206 $cvstreedefault = $logo = $defaulttitle = |
|
Line 205 $cvstreedefault = $logo = $defaulttitle = |
|
$allow_markup = $allow_compress = $edit_option_form = |
$allow_markup = $allow_compress = $edit_option_form = |
$show_subdir_lastmod = $show_log_in_markup = $preformat_in_markup = |
$show_subdir_lastmod = $show_log_in_markup = $preformat_in_markup = |
$tabstop = $use_moddate = $gzip_open = $DEBUG = |
$tabstop = $use_moddate = $gzip_open = $DEBUG = |
$cvshistory_url = $allow_tar = undef; |
$allow_tar = undef; |
|
|
$allow_version_select = $allow_mailtos = $allow_log_extra = 1; |
$allow_version_select = $allow_mailtos = $allow_log_extra = 1; |
|
|
Line 816 if (-d $fullname) { |
|
Line 815 if (-d $fullname) { |
|
|
|
} else { |
} else { |
print '<p>Current directory: <b>', clickablePath($where, 0), '</b>'; |
print '<p>Current directory: <b>', clickablePath($where, 0), '</b>'; |
if ($cvshistory_url) { |
|
(my $d = $where) =~ s|^/*(.*?)/*$|$1|; |
|
print ' - ', history_link($d, ''); |
|
} |
|
print "</p>\n"; |
print "</p>\n"; |
print "<p>Current tag: <b>", htmlquote($input{only_with_tag}), "</b></p>\n" |
print "<p>Current tag: <b>", htmlquote($input{only_with_tag}), "</b></p>\n" |
if $input{only_with_tag}; |
if $input{only_with_tag}; |
|
|
&clickablePath($upwhere, 1), "</b>\n</p>\n"; |
&clickablePath($upwhere, 1), "</b>\n</p>\n"; |
print "<p>\n "; |
print "<p>\n "; |
print &link('Request diff between arbitrary revisions', '#diff'); |
print &link('Request diff between arbitrary revisions', '#diff'); |
if ($cvshistory_url) { |
|
(my $d = $upwhere) =~ s|/+$||; |
|
print ' - ', history_link($d, $filename); |
|
} |
|
print "\n</p>\n<hr />\n"; |
print "\n</p>\n<hr />\n"; |
|
|
print "<p>\n"; |
print "<p>\n"; |
Line 3666 sub display_link($$;$$) |
|
Line 3657 sub display_link($$;$$) |
|
return sprintf('<a href="%s" class="display-link">%s</a>', |
return sprintf('<a href="%s" class="display-link">%s</a>', |
display_url($url, $revision, $mtype) . $barequery, |
display_url($url, $revision, $mtype) . $barequery, |
htmlquote($textlink)); |
htmlquote($textlink)); |
} |
|
|
|
# |
|
# Returns a link to CVSHistory for the given directory and filename. |
|
# |
|
sub history_link($$;$) |
|
{ |
|
my ($dir, $file, $text) = @_; |
|
$dir ||= ''; |
|
$file ||= ''; |
|
$text ||= 'History'; |
|
return &link($text, |
|
sprintf('%s?cvsroot=%s;dsearch=%s;fsearch=%s;limit=1', |
|
$cvshistory_url, uri_escape($input{cvsroot} || ''), |
|
uri_escape($dir), uri_escape($file))); |
|
} |
} |
|
|
# Returns a Query string with the |
# Returns a Query string with the |