blosxom-2.1.2/0000755000175000017500000000000011071123266012175 5ustar abesymlinkblosxom-2.1.2/ChangeLog0000644000175000017500000000617111071017316013752 0ustar abesymlinkv2.1.2 * Fix XSS in $flavour (CVE-2008-2236). Thanks to Yoshinori Ohta of Business Architects Inc. for making us aware of this issue. v2.1.1 * The "never trust a dot zero release" bugfix release for 2.1.0. * Added CVS Id keyword to file header. * Declaring $encode_xml_entities as a config option by moving it into the config section -- no functionality change. * Changing isPermalink back to "false" for the default RSS story template because it won't be a working link in many situations. This won't change the GUID, but don't let it be used as anymore. That's what the tag is for anyway. Thanks to Lilo von Hanffstengel for pointing this out. * Rewrote the (at least with Apache 2.2's environment) no more working manual base URL detection code. Made it simpler, easier to understand and let it only apply, if the base URL was not set manually. The concept since 2.0.2 was: Always ask for the whole URI and then remove the PATH_INFO in some cases again. This caused some havoc. New concept is: Strip PATH_INFO from base URL if CGI.pm didn't manage to do it. In those rare cases where neither CGI.pm nor Blosxom manages to correctly determine the base URL, you can easily set $url in the config file to the correct value and no base URL magic happens anymore (except the removing of a trailing slash if present -- as before). Closes: #2032685 * Added a lot of comments explaining the fixed problems and the remaining seldom cases where manual configuration is necessary. v2.1.0 * unescape url returned from CGI.pm to match PATH_INFO escaping * redo path_info handling with much stricter date tests * added support for multiple plugin directories using $plugin_path * changed plugin loading to use @INC instead of hardcoded $plugin_dir * added support for external config file via BLOSXOM_CONFIG_DIR and/or BLOSXOM_CONFIG_FILE environment variables * added support for $plugin_list plugin config file * fixed several RSS and XHTML escaping issues (Closes: #1717980) * made the default templates conforming to HTML 4.01 (Closes: #1609595) * added a testsuite for blosxom * added an encoding setting, defaulting to UTF-8 * added support for configuration files and therefore blosxom farms (based on the Debian config file patch) * allowed the content of the content type template to be used as variable in other templates, e.g. for usage with tags. * many small improvements * some code refactoring (including a .perltidyrc) v2.0.2 * fixed path_info to have correct extension in static mode (bug 1368882) * fixed filtering bug in static mode (bug 1356997) * changed DATA section template parsing to allow newlines for greater readability, and to allow empty templates. * work-around for bug in CGI::url() when using SSI v2.0.1 * Fixed XML escaping of RSS feeds * Ignore editor backup files in the plugin directory (i.e. "myplugin~") * Set path_info variables correctly for all static pages. blosxom-2.1.2/Makefile0000644000175000017500000000051011041242125013622 0ustar abesymlinkVERSION=$(shell head -1 ChangeLog | sed -e s/v//) dist: rm -rf ../blosxom-$(VERSION)/ mkdir ../blosxom-$(VERSION) cp -priv * ../blosxom-$(VERSION)/ cd .. && tar cvzf blosxom-$(VERSION).tar.gz --exclude=CVS --exclude='*~' --exclude=".??*" --exclude="#*#" --exclude="*.t" blosxom-$(VERSION)/ rm -rf ../blosxom-$(VERSION)/ blosxom-2.1.2/blosxom.cgi0000755000175000017500000006700311071017525014355 0ustar abesymlink#!/usr/bin/perl # Blosxom # Author: Rael Dornfest (2002-2003), The Blosxom Development Team (2005-2008) # Version: 2.1.2 ($Id: blosxom.cgi,v 1.85 2008/10/02 01:09:41 xtaran Exp $) # Home/Docs/Licensing: http://blosxom.sourceforge.net/ # Development/Downloads: http://sourceforge.net/projects/blosxom package blosxom; # --- Configurable variables ----- # What's this blog's title? $blog_title = "My Weblog"; # What's this blog's description (for outgoing RSS feed)? $blog_description = "Yet another Blosxom weblog."; # What's this blog's primary language (for outgoing RSS feed)? $blog_language = "en"; # What's this blog's text encoding ? $blog_encoding = "UTF-8"; # Where are this blog's entries kept? $datadir = "/Library/WebServer/Documents/blosxom"; # What's my preferred base URL for this blog (leave blank for automatic)? $url = ""; # Should I stick only to the datadir for items or travel down the # directory hierarchy looking for items? If so, to what depth? # 0 = infinite depth (aka grab everything), 1 = datadir only, n = n levels down $depth = 0; # How many entries should I show on the home page? $num_entries = 40; # What file extension signifies a blosxom entry? $file_extension = "txt"; # What is the default flavour? $default_flavour = "html"; # Should I show entries from the future (i.e. dated after now)? $show_future_entries = 0; # --- Plugins (Optional) ----- # File listing plugins blosxom should load # (if empty blosxom will load all plugins in $plugin_dir and $plugin_path directories) $plugin_list = ""; # Where are my plugins kept? $plugin_dir = ""; # Where should my plugins keep their state information? $plugin_state_dir = "$plugin_dir/state"; # Additional plugins location # List of directories, separated by ';' on windows, ':' everywhere else $plugin_path = ""; # --- Static Rendering ----- # Where are this blog's static files to be created? $static_dir = "/Library/WebServer/Documents/blog"; # What's my administrative password (you must set this for static rendering)? $static_password = ""; # What flavours should I generate statically? @static_flavours = qw/html rss/; # Should I statically generate individual entries? # 0 = no, 1 = yes $static_entries = 0; # Should I encode entities for xml content-types? (plugins can turn this off if they do it themselves) $encode_xml_entities = 1; # -------------------------------- use vars qw! $version $blog_title $blog_description $blog_language $blog_encoding $datadir $url %template $template $depth $num_entries $file_extension $default_flavour $static_or_dynamic $config_dir $plugin_list $plugin_path $plugin_dir $plugin_state_dir @plugins %plugins $static_dir $static_password @static_flavours $static_entries $path_info_full $path_info $path_info_yr $path_info_mo $path_info_da $path_info_mo_num $flavour $static_or_dynamic %month2num @num2month $interpolate $entries $output $header $show_future_entries %files %indexes %others $encode_xml_entities $content_type !; use strict; use FileHandle; use File::Find; use File::stat; use Time::Local; use CGI qw/:standard :netscape/; $version = "2.1.2"; # Load configuration from $ENV{BLOSXOM_CONFIG_DIR}/blosxom.conf, if it exists my $blosxom_config; if ( $ENV{BLOSXOM_CONFIG_FILE} && -r $ENV{BLOSXOM_CONFIG_FILE} ) { $blosxom_config = $ENV{BLOSXOM_CONFIG_FILE}; ( $config_dir = $blosxom_config ) =~ s! / [^/]* $ !!x; } else { for my $blosxom_config_dir ( $ENV{BLOSXOM_CONFIG_DIR}, '/etc/blosxom', '/etc' ) { if ( -r "$blosxom_config_dir/blosxom.conf" ) { $config_dir = $blosxom_config_dir; $blosxom_config = "$blosxom_config_dir/blosxom.conf"; last; } } } # Load $blosxom_config if ($blosxom_config) { if ( -r $blosxom_config ) { eval { require $blosxom_config } or warn "Error reading blosxom config file '$blosxom_config'" . ( $@ ? ": $@" : '' ); } else { warn "Cannot find or read blosxom config file '$blosxom_config'"; } } my $fh = new FileHandle; %month2num = ( nil => '00', Jan => '01', Feb => '02', Mar => '03', Apr => '04', May => '05', Jun => '06', Jul => '07', Aug => '08', Sep => '09', Oct => '10', Nov => '11', Dec => '12' ); @num2month = sort { $month2num{$a} <=> $month2num{$b} } keys %month2num; # Use the stated preferred URL or figure it out automatically. Set # $url manually in the config section above if CGI.pm doesn't guess # the base URL correctly, e.g. when called from a Server Side Includes # document or so. unless ($url) { $url = url(); # Unescape %XX hex codes (from URI::Escape::uri_unescape) $url =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg; # Support being called from inside a SSI document $url =~ s/^included:/http:/ if $ENV{SERVER_PROTOCOL} eq 'INCLUDED'; # Remove PATH_INFO if it is set but not removed by CGI.pm. This # seems to happen when used with Apache's Alias directive or if # called from inside a Server Side Include document. If that # doesn't help either, set $url manually in the configuration. $url =~ s/\Q$ENV{PATH_INFO}\E$// if defined $ENV{PATH_INFO}; # NOTE: # # There is one case where this code does more than necessary, too: # If the URL requested is e.g. http://example.org/blog/blog and # the base URL is correctly determined as http://example.org/blog # by CGI.pm, then this code will incorrectly normalize the base # URL down to http://example.org, because the same string as # PATH_INFO is part of the base URL, too. But this is such a # seldom case and can be fixed by setting $url in the config file, # too. } # The only modification done to a manually set base URL is to strip # a trailing slash if present. $url =~ s!/$!!; # Drop ending any / from dir settings $datadir =~ s!/$!!; $plugin_dir =~ s!/$!!; $static_dir =~ s!/$!!; # Fix depth to take into account datadir's path $depth += ( $datadir =~ tr[/][] ) - 1 if $depth; if ( !$ENV{GATEWAY_INTERFACE} and param('-password') and $static_password and param('-password') eq $static_password ) { $static_or_dynamic = 'static'; } else { $static_or_dynamic = 'dynamic'; param( -name => '-quiet', -value => 1 ); } # Path Info Magic # Take a gander at HTTP's PATH_INFO for optional blog name, archive yr/mo/day my @path_info = split m{/}, path_info() || param('path'); $path_info_full = join '/', @path_info; # Equivalent to $ENV{PATH_INFO} shift @path_info; # Flavour specified by ?flav={flav} or index.{flav} $flavour = ''; if (! ($flavour = param('flav'))) { if ( $path_info[$#path_info] =~ /(.+)\.(.+)$/ ) { $flavour = $2; pop @path_info if $1 eq 'index'; } } $flavour ||= $default_flavour; # Fix XSS in flavour name (CVE-2008-2236) $flavour = blosxom_html_escape($flavour); sub blosxom_html_escape { my $string = shift; my %escape = ( '<' => '<', '>' => '>', '&' => '&', '"' => '"', "'" => ''' ); my $escape_re = join '|' => keys %escape; $string =~ s/($escape_re)/$escape{$1}/g; $string; } # Global variable to be used in head/foot.{flavour} templates $path_info = ''; # Add all @path_info elements to $path_info till we come to one that could be a year while ( $path_info[0] && $path_info[0] !~ /^(19|20)\d{2}$/) { $path_info .= '/' . shift @path_info; } # Pull date elements out of path if ($path_info[0] && $path_info[0] =~ /^(19|20)\d{2}$/) { $path_info_yr = shift @path_info; if ($path_info[0] && ($path_info[0] =~ /^(0\d|1[012])$/ || exists $month2num{ ucfirst lc $path_info_mo })) { $path_info_mo = shift @path_info; # Map path_info_mo to numeric $path_info_mo_num $path_info_mo_num = $path_info_mo =~ /^\d{2}$/ ? $path_info_mo : $month2num{ ucfirst lc $path_info_mo }; if ($path_info[0] && $path_info[0] =~ /^[0123]\d$/) { $path_info_da = shift @path_info; } } } # Add remaining path elements to $path_info $path_info .= '/' . join('/', @path_info); # Strip spurious slashes $path_info =~ s!(^/*)|(/*$)!!g; # Define standard template subroutine, plugin-overridable at Plugins: Template $template = sub { my ( $path, $chunk, $flavour ) = @_; do { return join '', <$fh> if $fh->open("< $datadir/$path/$chunk.$flavour"); } while ( $path =~ s/(\/*[^\/]*)$// and $1 ); # Check for definedness, since flavour can be the empty string if ( defined $template{$flavour}{$chunk} ) { return $template{$flavour}{$chunk}; } elsif ( defined $template{error}{$chunk} ) { return $template{error}{$chunk}; } else { return ''; } }; # Bring in the templates %template = (); while () { last if /^(__END__)$/; my ( $ct, $comp, $txt ) = /^(\S+)\s(\S+)(?:\s(.*))?$/ or next; $txt =~ s/\\n/\n/mg; $template{$ct}{$comp} .= $txt . "\n"; } # Plugins: Start my $path_sep = $^O eq 'MSWin32' ? ';' : ':'; my @plugin_dirs = split /$path_sep/, $plugin_path; unshift @plugin_dirs, $plugin_dir; my @plugin_list = (); my %plugin_hash = (); # If $plugin_list is set, read plugins to use from that file if ( $plugin_list ) { if ( -r $plugin_list and $fh->open("< $plugin_list") ) { @plugin_list = map { chomp $_; $_ } grep { /\S/ && !/^#/ } <$fh>; $fh->close; } else { warn "unable to read or open plugin_list '$plugin_list': $!"; $plugin_list = ''; } } # Otherwise walk @plugin_dirs to get list of plugins to use if ( ! @plugin_list && @plugin_dirs ) { for my $plugin_dir (@plugin_dirs) { next unless -d $plugin_dir; if ( opendir PLUGINS, $plugin_dir ) { for my $plugin ( grep { /^[\w:]+$/ && !/~$/ && -f "$plugin_dir/$_" } readdir(PLUGINS) ) { # Ignore duplicates next if $plugin_hash{$plugin}; # Add to @plugin_list and %plugin_hash $plugin_hash{$plugin} = "$plugin_dir/$plugin"; push @plugin_list, $plugin; } closedir PLUGINS; } } @plugin_list = sort @plugin_list; } # Load all plugins in @plugin_list unshift @INC, @plugin_dirs; foreach my $plugin (@plugin_list) { my ( $plugin_name, $off ) = $plugin =~ /^\d*([\w:]+?)(_?)$/; my $plugin_file = $plugin_list ? $plugin_name : $plugin; my $on_off = $off eq '_' ? -1 : 1; # Allow perl module plugins # The -z test is a hack to allow a zero-length placeholder file in a # $plugin_path directory to indicate an @INC module should be loaded if ( $plugin =~ m/::/ && ( $plugin_list || -z $plugin_hash{$plugin} ) ) { # For Blosxom::Plugin::Foo style plugins, we need to use a string require eval "require $plugin_file"; } else { # we try first to load from $plugin_dir before attempting from $plugin_path eval { require "$plugin_dir/$plugin_file" } or eval { require $plugin_file }; } if ($@) { warn "error finding or loading blosxom plugin '$plugin_name': $@"; next; } if ( $plugin_name->start() and ( $plugins{$plugin_name} = $on_off ) ) { push @plugins, $plugin_name; } } shift @INC foreach @plugin_dirs; # Plugins: Template # Allow for the first encountered plugin::template subroutine to override the # default built-in template subroutine foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('template') ) { if ( my $tmp = $plugin->template() ) { $template = $tmp; last; } } } # Provide backward compatibility for Blosxom < 2.0rc1 plug-ins sub load_template { return &$template(@_); } # Define default entries subroutine $entries = sub { my ( %files, %indexes, %others ); find( sub { my $d; my $curr_depth = $File::Find::dir =~ tr[/][]; return if $depth and $curr_depth > $depth; if ( # a match $File::Find::name =~ m!^$datadir/(?:(.*)/)?(.+)\.$file_extension$! # not an index, .file, and is readable and $2 ne 'index' and $2 !~ /^\./ and ( -r $File::Find::name ) ) { # read modification time my $mtime = stat($File::Find::name)->mtime or return; # to show or not to show future entries return unless ( $show_future_entries or $mtime < time ); # add the file and its associated mtime to the list of files $files{$File::Find::name} = $mtime; # static rendering bits my $static_file = "$static_dir/$1/index." . $static_flavours[0]; if ( param('-all') or !-f $static_file or stat($static_file)->mtime < $mtime ) { $indexes{$1} = 1; $d = join( '/', ( nice_date($mtime) )[ 5, 2, 3 ] ); $indexes{$d} = $d; $indexes{ ( $1 ? "$1/" : '' ) . "$2.$file_extension" } = 1 if $static_entries; } } # not an entries match elsif ( !-d $File::Find::name and -r $File::Find::name ) { $others{$File::Find::name} = stat($File::Find::name)->mtime; } }, $datadir ); return ( \%files, \%indexes, \%others ); }; # Plugins: Entries # Allow for the first encountered plugin::entries subroutine to override the # default built-in entries subroutine foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('entries') ) { if ( my $tmp = $plugin->entries() ) { $entries = $tmp; last; } } } my ( $files, $indexes, $others ) = &$entries(); %indexes = %$indexes; # Static if ( !$ENV{GATEWAY_INTERFACE} and param('-password') and $static_password and param('-password') eq $static_password ) { param('-quiet') or print "Blosxom is generating static index pages...\n"; # Home Page and Directory Indexes my %done; foreach my $path ( sort keys %indexes ) { my $p = ''; foreach ( ( '', split /\//, $path ) ) { $p .= "/$_"; $p =~ s!^/!!; next if $done{$p}++; mkdir "$static_dir/$p", 0755 unless ( -d "$static_dir/$p" or $p =~ /\.$file_extension$/ ); foreach $flavour (@static_flavours) { $content_type = ( &$template( $p, 'content_type', $flavour ) ); $content_type =~ s!\n.*!!s; my $fn = $p =~ m!^(.+)\.$file_extension$! ? $1 : "$p/index"; param('-quiet') or print "$fn.$flavour\n"; my $fh_w = new FileHandle "> $static_dir/$fn.$flavour" or die "Couldn't open $static_dir/$p for writing: $!"; $output = ''; if ( $indexes{$path} == 1 ) { # category $path_info = $p; # individual story $path_info =~ s!\.$file_extension$!\.$flavour!; print $fh_w &generate( 'static', $path_info, '', $flavour, $content_type ); } else { # date local ( $path_info_yr, $path_info_mo, $path_info_da, $path_info ) = split /\//, $p, 4; unless ( defined $path_info ) { $path_info = "" } print $fh_w &generate( 'static', '', $p, $flavour, $content_type ); } $fh_w->close; } } } } # Dynamic else { $content_type = ( &$template( $path_info, 'content_type', $flavour ) ); $content_type =~ s!\n.*!!s; $content_type =~ s/(\$\w+(?:::\w+)*)/"defined $1 ? $1 : ''"/gee; $header = { -type => $content_type }; print generate( 'dynamic', $path_info, "$path_info_yr/$path_info_mo_num/$path_info_da", $flavour, $content_type ); } # Plugins: End foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('end') ) { $entries = $plugin->end(); } } # Generate sub generate { my ( $static_or_dynamic, $currentdir, $date, $flavour, $content_type ) = @_; %files = %$files; %others = ref $others ? %$others : (); # Plugins: Filter foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('filter') ) { $entries = $plugin->filter( \%files, \%others ); } } my %f = %files; # Plugins: Skip # Allow plugins to decide if we can cut short story generation my $skip; foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('skip') ) { if ( my $tmp = $plugin->skip() ) { $skip = $tmp; last; } } } # Define default interpolation subroutine $interpolate = sub { package blosxom; my $template = shift; # Interpolate scalars, namespaced scalars, and hash/hashref scalars $template =~ s/(\$\w+(?:::\w+)*(?:(?:->)?{(['"]?)[-\w]+\2})?)/"defined $1 ? $1 : ''"/gee; return $template; }; unless ( defined($skip) and $skip ) { # Plugins: Interpolate # Allow for the first encountered plugin::interpolate subroutine to # override the default built-in interpolate subroutine foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('interpolate') ) { if ( my $tmp = $plugin->interpolate() ) { $interpolate = $tmp; last; } } } # Head my $head = ( &$template( $currentdir, 'head', $flavour ) ); # Plugins: Head foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('head') ) { $entries = $plugin->head( $currentdir, \$head ); } } $head = &$interpolate($head); $output .= $head; # Stories my $curdate = ''; my $ne = $num_entries; if ( $currentdir =~ /(.*?)([^\/]+)\.(.+)$/ and $2 ne 'index' ) { $currentdir = "$1$2.$file_extension"; %f = ( "$datadir/$currentdir" => $files{"$datadir/$currentdir"} ) if $files{"$datadir/$currentdir"}; } else { $currentdir =~ s!/index\..+$!!; } # Define a default sort subroutine my $sort = sub { my ($files_ref) = @_; return sort { $files_ref->{$b} <=> $files_ref->{$a} } keys %$files_ref; }; # Plugins: Sort # Allow for the first encountered plugin::sort subroutine to override the # default built-in sort subroutine foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('sort') ) { if ( my $tmp = $plugin->sort() ) { $sort = $tmp; last; } } } foreach my $path_file ( &$sort( \%f, \%others ) ) { last if $ne <= 0 && $date !~ /\d/; use vars qw/ $path $fn /; ( $path, $fn ) = $path_file =~ m!^$datadir/(?:(.*)/)?(.*)\.$file_extension!; # Only stories in the right hierarchy $path =~ /^$currentdir/ or $path_file eq "$datadir/$currentdir" or next; # Prepend a slash for use in templates only if a path exists $path &&= "/$path"; # Date fiddling for by-{year,month,day} archive views use vars qw/ $dw $mo $mo_num $da $ti $yr $hr $min $hr12 $ampm $utc_offset/; ( $dw, $mo, $mo_num, $da, $ti, $yr, $utc_offset ) = nice_date( $files{"$path_file"} ); ( $hr, $min ) = split /:/, $ti; ( $hr12, $ampm ) = $hr >= 12 ? ( $hr - 12, 'pm' ) : ( $hr, 'am' ); $hr12 =~ s/^0//; if ( $hr12 == 0 ) { $hr12 = 12 } # Only stories from the right date my ( $path_info_yr, $path_info_mo_num, $path_info_da ) = split /\//, $date; next if $path_info_yr && $yr != $path_info_yr; last if $path_info_yr && $yr < $path_info_yr; next if $path_info_mo_num && $mo ne $num2month[$path_info_mo_num]; next if $path_info_da && $da != $path_info_da; last if $path_info_da && $da < $path_info_da; # Date my $date = ( &$template( $path, 'date', $flavour ) ); # Plugins: Date foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('date') ) { $entries = $plugin->date( $currentdir, \$date, $files{$path_file}, $dw, $mo, $mo_num, $da, $ti, $yr ); } } $date = &$interpolate($date); if ( $date && $curdate ne $date ) { $curdate = $date; $output .= $date; } use vars qw/ $title $body $raw /; if ( -f "$path_file" && $fh->open("< $path_file") ) { chomp( $title = <$fh> ); chomp( $body = join '', <$fh> ); $fh->close; $raw = "$title\n$body"; } my $story = ( &$template( $path, 'story', $flavour ) ); # Plugins: Story foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('story') ) { $entries = $plugin->story( $path, $fn, \$story, \$title, \$body ); } } if ( $encode_xml_entities && $content_type =~ m{\bxml\b} && $content_type !~ m{\bxhtml\b} ) { # Escape special characters inside the container # The following line should be moved more towards to top for # performance reasons -- Axel Beckert, 2008-07-22 my $url_escape_re = qr([^-/a-zA-Z0-9:._]); $url =~ s($url_escape_re)(sprintf('%%%02X', ord($&)))eg; $path =~ s($url_escape_re)(sprintf('%%%02X', ord($&)))eg; $fn =~ s($url_escape_re)(sprintf('%%%02X', ord($&)))eg; # Escape <, >, and &, and to produce valid RSS my %escape = ( '<' => '<', '>' => '>', '&' => '&', '"' => '"', "'" => ''' ); my $escape_re = join '|' => keys %escape; $title =~ s/($escape_re)/$escape{$1}/g; $body =~ s/($escape_re)/$escape{$1}/g; $url =~ s/($escape_re)/$escape{$1}/g; $path =~ s/($escape_re)/$escape{$1}/g; $fn =~ s/($escape_re)/$escape{$1}/g; } $story = &$interpolate($story); $output .= $story; $fh->close; $ne--; } # Foot my $foot = ( &$template( $currentdir, 'foot', $flavour ) ); # Plugins: Foot foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('foot') ) { $entries = $plugin->foot( $currentdir, \$foot ); } } $foot = &$interpolate($foot); $output .= $foot; # Plugins: Last foreach my $plugin (@plugins) { if ( $plugins{$plugin} > 0 and $plugin->can('last') ) { $entries = $plugin->last(); } } } # End skip # Finally, add the header, if any and running dynamically $output = header($header) . $output if ( $static_or_dynamic eq 'dynamic' and $header ); $output; } sub nice_date { my ($unixtime) = @_; my $c_time = CORE::localtime($unixtime); my ( $dw, $mo, $da, $hr, $min, $sec, $yr ) = ( $c_time =~ /(\w{3}) +(\w{3}) +(\d{1,2}) +(\d{2}):(\d{2}):(\d{2}) +(\d{4})$/ ); $ti = "$hr:$min"; $da = sprintf( "%02d", $da ); my $mo_num = $month2num{$mo}; my $offset = timegm( $sec, $min, $hr, $da, $mo_num - 1, $yr - 1900 ) - $unixtime; my $utc_offset = sprintf( "%+03d", int( $offset / 3600 ) ) . sprintf( "%02d", ( $offset % 3600 ) / 60 ); return ( $dw, $mo, $mo_num, $da, $ti, $yr, $utc_offset ); } # Default HTML and RSS template bits __DATA__ html content_type text/html; charset=$blog_encoding html head html head html head html head html head html head $blog_title $path_info_da $path_info_mo $path_info_yr html head html head html head
html head

$blog_title

html head

$path_info_da $path_info_mo $path_info_yr

html head
html story
html story

$title

html story
$body
html story

posted at: $ti | path: $path | permanent link to this entry

html story
html date

$dw, $da $mo $yr

html foot html foot
html foot powered by blosxom html foot
html foot html foot rss content_type text/xml; charset=$blog_encoding rss head rss head rss head rss head $blog_title rss head $url/$path_info rss head $blog_description rss head $blog_language rss head http://blogs.law.harvard.edu/tech/rss rss head blosxom/$version rss story rss story $title rss story $dw, $da $mo $yr $ti:00 $utc_offset rss story $url/$yr/$mo_num/$da#$fn rss story $path rss story $url$path/$fn rss story $body rss story rss date rss foot rss foot error content_type text/html error head error head error head Error: unknown Blosxom flavour "$flavour" error head error head

Error: unknown Blosxom flavour "$flavour"

error head

I'm afraid this is the first I've heard of a "$flavour" flavoured Blosxom. Try dropping the "/+$flavour" bit from the end of the URL.

error story

$title

error story
$body

#

error date

$dw, $da $mo $yr

error foot error foot __END__ blosxom-2.1.2/t/0000755000175000017500000000000011041214761012436 5ustar abesymlinkblosxom-2.1.2/t/interpolate/0000755000175000017500000000000011030014254014755 5ustar abesymlinkblosxom-2.1.2/t/interpolate/config/0000755000175000017500000000000011030014254016222 5ustar abesymlinkblosxom-2.1.2/t/interpolate/config/blosxom.conf0000644000175000017500000000102710706102245020563 0ustar abesymlink$blog_title = 'Interpolation Testing'; $blog_description = 'Terpolation Turpentine'; $datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; use vars qw(%hash $hashref $hash); %hash = ( abc => 123, def => 456, 'X-Factor' => 789, ); $hashref = { abc => 123, def => 456, 'X-Factor' => 789, }; $Blosxom::Test::string = 'this is a test'; %Blosxom::Test::hash = ( abc => 123, def => 456, 'X-Factor' => 789, ); $Blosxom::Test::hashref = { abc => 123, def => 456, 'X-Factor' => 789, }; # Silence $hash warnings $hash = ''; 1; blosxom-2.1.2/t/interpolate/expected.html0000644000175000017500000000141410706102245017453 0ustar abesymlinkContent-Type: text/xhtml; charset=UTF-8
# Basic scalars
title: Interpolation Testing
description: Terpolation Turpentine
# Namespaced scalars
Blosxom::Test::string: this is a test
# Hash values
hash{abc}: 123
hash{'X-Factor'}: 789
blosxom::hash{def}: 456
blosxom::hash{"X-Factor"}: 789
hashref->{abc}: 123
blosxom::hashref->{def}: 456
Blosxom::Test::hash{abc}: 123
Blosxom::Test::hash{'X-Factor'}: 789
Blosxom::Test::hashref->{def}: 456
Blosxom::Test::hashref->{"X-Factor"}: 789
# Bad quoting with hash values
hash{'X-Factor}: {'X-Factor}
hash{X-Factor'}: {X-Factor'}
hash{"X-Factor'}: {"X-Factor'}
blosxom-2.1.2/t/interpolate/spec.yaml0000644000175000017500000000005110706102245016576 0ustar abesymlinktests: - - "" - expected.html blosxom-2.1.2/t/interpolate/data/0000755000175000017500000000000011030014254015666 5ustar abesymlinkblosxom-2.1.2/t/interpolate/data/content_type.html0000644000175000017500000000003210706102245021271 0ustar abesymlinktext/xhtml; charset=UTF-8 blosxom-2.1.2/t/interpolate/data/date.html0000644000175000017500000000004110706102245017473 0ustar abesymlink

$yr-$mo_num-$da

blosxom-2.1.2/t/interpolate/data/foot.html0000644000175000017500000000002010706102245017522 0ustar abesymlink blosxom-2.1.2/t/interpolate/data/head.html0000644000175000017500000000165710706102245017475 0ustar abesymlink
# Basic scalars
title: $blog_title
description: $blosxom::blog_description
# Namespaced scalars
Blosxom::Test::string: $Blosxom::Test::string
# Hash values
hash{abc}: $hash{abc}
hash{'X-Factor'}: $hash{'X-Factor'}
blosxom::hash{def}: $blosxom::hash{def}
blosxom::hash{"X-Factor"}: $blosxom::hash{"X-Factor"}
hashref->{abc}: $hashref->{abc}
blosxom::hashref->{def}: $blosxom::hashref->{def}
Blosxom::Test::hash{abc}: $Blosxom::Test::hash{abc}
Blosxom::Test::hash{'X-Factor'}: $Blosxom::Test::hash{'X-Factor'}
Blosxom::Test::hashref->{def}: $Blosxom::Test::hashref->{def}
Blosxom::Test::hashref->{"X-Factor"}: $Blosxom::Test::hashref->{"X-Factor"}
# Bad quoting with hash values
hash{'X-Factor}: $hash{'X-Factor}
hash{X-Factor'}: $hash{X-Factor'}
hash{"X-Factor'}: $hash{"X-Factor'}
blosxom-2.1.2/t/interpolate/data/story.html0000644000175000017500000000031610706102245017743 0ustar abesymlink

$title

$body

posted at: $ti | path: $path | permanent link to this entry

blosxom-2.1.2/t/README0000644000175000017500000000453210716265356013340 0ustar abesymlinkRunning Tests ============= perl ./Setup prove *.t Test Layout =========== To add a new test, you want to add two things - a test script (which is typically just a symlink to the main 'driver' script), and a test directory. If you just want a symlink test script, then add your test script name to 'Tests', and rerun Setup. To add a new test directory, you're probably best just to copy one of the existing ones - 'templates' is a good choice: cp -rp templates newtest Test directory layout is as follows, using 'templates' as an example: templates |-- config | `-- blosxom.conf |-- data | |-- 1.txt | |-- 1.txt.200607192254 | |-- content_type.html | |-- date.html | |-- foot.html | |-- head.html | `-- story.html |-- expected.html `-- spec.yaml The 'config' directory contains the config files for this blosxom instance, which is minimally a 'blosxom.conf' file with the $data_dir variable pointing to the 'data' directory. Customising this is optional. The 'data directory' is the set of stories or posts you want to use for your test, and any flavour files you want. Stories may optionally be suffixed with a numeric timestamp (format YYYYMMDDHHMI) like the '1.txt.200607192254' entry above, which is used to set the modify time of the story explicitly (since CVS does not store mtimes). Providing flavour files is recommended so that your tests don't break if the default flavours change. At the top level of the test directory are a set of one or more expected output files, and the spec.yaml files which controls the set of tests that are run. For templates, the spec.yaml looks like this: tests: - - "" - expected.html This lists the set of tests to be run (in this case just a single test). Each test requires a list of two arguments - the arguments to path to blosxom.cgi (in this case none, an empty string), and a file containing the expected output. So this test will execute blosxom.cgi with no arguments, and compare the output produced against that contained in the 'expected.html' file. A longer spec.yaml example is: tests: - - "" - expected.html - - path=/foo - expected.html - - path=/foo/bar.html - expected.bar This defines three tests, one with no arguments, one with a path of /foo, and a third with a path of /foo/bar.html. blosxom-2.1.2/t/Setup0000755000175000017500000000107510716265356013505 0ustar abesymlink#!/usr/bin/env perl # # Script to setup test script symlinks, since CVS can't store them # use strict; use IO::File; my $DRIVER = 'driver'; my $TESTS = 'Tests'; die "cannot find driver file '$DRIVER'" unless -f $DRIVER; die "cannot find tests file '$TESTS'" unless -f $TESTS; my @tests = (); my $th = IO::File->new($TESTS, 'r') or die "cannot open tests file '$TESTS': $!"; @tests = <$th>; close $th; for my $t (@tests) { chomp $t; unlink $t if -l $t; print "symlink $DRIVER $t\n"; eval { symlink $DRIVER, $t } or die "symlink $DRIVER, $t failed: $!"; } blosxom-2.1.2/t/Tests0000644000175000017500000000016210716265356013500 0ustar abesymlink01_templates.t 02_smoketest.t 03_permalinks.t 03_interpolate.t 04_plugin_dir.t 04_plugin_list.t 08_static_basic.t blosxom-2.1.2/t/driver0000644000175000017500000000767310726160614013677 0ustar abesymlink#!/usr/bin/perl use strict; use warnings; use Test::More qw( no_plan ); use Cwd; use YAML; use IO::File; use File::Find; use File::Copy; #use File::Touch; use File::Basename; use Test::Differences; my $test = basename($0); $test =~ s/^\d+_?//; $test =~ s/\.t$//; my $testdir = $test; $testdir = "t/$testdir" if -d "t/$testdir"; $testdir = cwd . "/$testdir"; die "cannot find root '$testdir'" unless -d $testdir; my $blosxom_config_dir = "$testdir/config"; die "cannot find blosxom config dir '$blosxom_config_dir'" unless -d $blosxom_config_dir; $ENV{BLOSXOM_CONFIG_DIR} = $blosxom_config_dir; $ENV{TZ} = 'UTC'; my $blosxom_cgi = $ENV{BLOSXOM_CGI}; unless ($blosxom_cgi && -f $blosxom_cgi) { if (-f "$testdir/../../blosxom.cgi") { $blosxom_cgi = "$testdir/../../blosxom.cgi"; warn "ignoring BLOSXOM_CGI setting '$ENV{BLOSXOM_CGI}' - using '$blosxom_cgi' instead" if $ENV{BLOSXOM_CGI}; } elsif ($blosxom_cgi) { die "cannot find blosxom.cgi '$blosxom_cgi' - check your BLOSXOM_CGI environment variable"; } else { die "cannot find blosxom.cgi - please set the BLOSXOM_CGI environment variable"; } } die "blosxom.cgi '$blosxom_cgi' is not executable" unless -x $blosxom_cgi; my $spec = YAML::LoadFile ("$testdir/spec.yaml") or die("$test - could not load spec"); touch_files("$testdir/data"); # Eval blosxom.conf my ($static_dir, $static_password, @static_flavours); if (my $fh = IO::File->new("$blosxom_config_dir/blosxom.conf", 'r')) { no strict; local $/ = undef; eval <$fh>; } # Static mode if ($static_password) { eval { require File::DirCompare; require File::Remove; }; SKIP: { skip "Static tests require additional modules: $@", 1 if $@; my $expected = $spec->{expected}; skip "Static tests require 'expected' directory", 1 unless $expected; $expected = "$blosxom_config_dir/../$expected" unless $expected =~ m!^/!; skip "Static tests 'expected' directory is missing", 1 unless -d $expected; skip "Static tests 'static_dir' directory is missing", 1 unless -d $static_dir; File::Remove::remove(\1, "$static_dir/*"); my $errors = qx($blosxom_cgi -quiet=1 -password=$static_password); is($errors, '', 'no errors reported from static run'); File::DirCompare->compare($static_dir, "$blosxom_config_dir/../" . $spec->{expected}, sub { my ($a, $b) = @_; my ($a_short, $b_short) = ($a, $b); $a_short =~ s!^.*\.\./!! if $a_short; $b_short =~ s!^.*\.\./!! if $b_short; return if $b =~ m! /CVS$ !x; if (! $b) { fail("$a_short has no corresponding file"); } elsif (! $a) { fail("$b_short has no corresponding file"); } else { my ($got, $expected) = ('', ''); my $fh = IO::File->new($a, 'r') or die "cannot open static output file '$a': $!"; { local $/ = undef; $got = <$fh>; $fh->close; } $fh = IO::File->new($b, 'r') or die "cannot open static output file '$b': $!"; { local $/ = undef; $expected = <$fh>; $fh->close; } eq_or_diff($got, $expected, "file $a_short and $b_short match", { style => 'Unified' }); } }, { ignore_cmp => 1 }); # Cleanup static output File::Remove::remove(\1, "$static_dir/*") unless $ENV{BLOSXOM_STATIC_NO_CLEANUP}; } } # Dynamic mode else { my %expected = (); for (@{$spec->{tests}}) { my ($args, $output) = @$_; unless ($expected{$output}) { my $fh = IO::File->new("$testdir/$output", 'r') or die "cannot open expected output file '$output': $!"; { local $/ = undef; $expected{$output} = <$fh>; } $fh->close; } my $got = qx($blosxom_cgi $args); eq_or_diff($got, $expected{$output}, "$test - got expected output for args [$args]", { style => 'Unified' }); } } sub touch_files { find( sub { if (/^(.*)\.(\d+)$/) { copy($_, $1); `touch -t $2 $1`; } }, shift ); } blosxom-2.1.2/t/permalinks/0000755000175000017500000000000011041453604014604 5ustar abesymlinkblosxom-2.1.2/t/permalinks/config/0000755000175000017500000000000011030014254016041 5ustar abesymlinkblosxom-2.1.2/t/permalinks/config/blosxom.conf0000644000175000017500000000011610701424333020400 0ustar abesymlink$datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; $blog_encoding = 'ISO-8859-1'; blosxom-2.1.2/t/permalinks/expected.bar0000644000175000017500000000234211041453604017074 0ustar abesymlinkContent-Type: text/html; charset=ISO-8859-1 My Weblog

My Weblog

Tue, 25 Jul 2006

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.

posted at: 11:02 | path: /foo | permanent link to this entry

powered by blosxom
blosxom-2.1.2/t/permalinks/expected.html0000644000175000017500000000367011041453560017302 0ustar abesymlinkContent-Type: text/html; charset=ISO-8859-1 My Weblog

My Weblog

Tue, 25 Jul 2006

Lorem ipso

Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 11:03 | path: /foo | permanent link to this entry

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.

posted at: 11:02 | path: /foo | permanent link to this entry

powered by blosxom
blosxom-2.1.2/t/permalinks/expected.rss0000644000175000017500000000263211041223340017131 0ustar abesymlinkContent-Type: text/xml; charset=ISO-8859-1 My Weblog http://localhost Yet another Blosxom weblog. en Lorem ipsum http://localhost/2006/07/19#1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/permalinks/spec.yaml0000644000175000017500000000060410701424333016421 0ustar abesymlinktests: - - "" - expected.html - - path=/foo - expected.html # GC: the following test fails because $path_info = test#bar, but via CGI the # #bar is stripped by the CGI module. So I'm not sure what this is testing. # - # - path=/foo#bar # - expected.html - - path=/foo/bar.html - expected.bar # - # - path=/2006/07/25/bar.html # - expected.bar blosxom-2.1.2/t/permalinks/data/0000755000175000017500000000000011030014255015506 5ustar abesymlinkblosxom-2.1.2/t/permalinks/data/foo/0000755000175000017500000000000011030014255016271 5ustar abesymlinkblosxom-2.1.2/t/permalinks/data/foo/bar.txt0000644000175000017500000000031510461375050017607 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. blosxom-2.1.2/t/permalinks/data/foo/baz.txt0000644000175000017500000000073210461375144017626 0ustar abesymlinkLorem ipso Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/permalinks/data/foo/bar.txt.2006072511020000644000175000017500000000031510701424333021013 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. blosxom-2.1.2/t/permalinks/data/foo/baz.txt.2006072511030000644000175000017500000000073210701424333021027 0ustar abesymlinkLorem ipso Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/plugin_dir/0000755000175000017500000000000011030014255014564 5ustar abesymlinkblosxom-2.1.2/t/plugin_dir/spec.yaml0000644000175000017500000000005110701424334016405 0ustar abesymlinktests: - - "" - expected.html blosxom-2.1.2/t/plugin_dir/README0000644000175000017500000000007510701424334015455 0ustar abesymlinkTesting plugin loading via walking the standard $plugin_dir blosxom-2.1.2/t/plugin_dir/config/0000755000175000017500000000000011030014255016031 5ustar abesymlinkblosxom-2.1.2/t/plugin_dir/config/blosxom.conf0000644000175000017500000000027110700701725020373 0ustar abesymlink$blog_title = 'plugin_list test'; $blog_encoding = 'ISO-8859-1'; $datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; $plugin_list = ''; $plugin_dir = "$ENV{BLOSXOM_CONFIG_DIR}/../plugins"; blosxom-2.1.2/t/plugin_dir/expected.html0000644000175000017500000000034110700701725017261 0ustar abesymlinkContent-Type: text/html; charset=ISO-8859-1 plugin_list test

plugin_list test

plugin2
plugin4
dump_plugins
plugin1
plugin3
Story 1 text blosxom-2.1.2/t/plugin_dir/data/0000755000175000017500000000000011030014255015475 5ustar abesymlinkblosxom-2.1.2/t/plugin_dir/data/date.html0000644000175000017500000000000110700701725017277 0ustar abesymlink blosxom-2.1.2/t/plugin_dir/data/1.txt0000644000175000017500000000002710700701725016405 0ustar abesymlinkStory 1 Story 1 text blosxom-2.1.2/t/plugin_dir/data/foot.html0000644000175000017500000000002010700701725017332 0ustar abesymlink blosxom-2.1.2/t/plugin_dir/data/head.html0000644000175000017500000000011510700701725017271 0ustar abesymlink $blog_title

$blog_title

blosxom-2.1.2/t/plugin_dir/data/story.html0000644000175000017500000000003210700701725017546 0ustar abesymlink$dump_plugins::list $body blosxom-2.1.2/t/plugin_dir/plugins/0000755000175000017500000000000011030014255016245 5ustar abesymlinkblosxom-2.1.2/t/plugin_dir/plugins/02plugin20000644000175000017500000000004510700701725017721 0ustar abesymlinkpackage plugin2; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_dir/plugins/04plugin4_0000644000175000017500000000004510700701725020064 0ustar abesymlinkpackage plugin4; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_dir/plugins/dump_plugins0000644000175000017500000000022110700701725020701 0ustar abesymlinkpackage dump_plugins; use vars qw($list); sub start { 1 }; sub head { $list = sprintf "
\n%s\n
\n", join("\n", @blosxom::plugins); } 1; blosxom-2.1.2/t/plugin_dir/plugins/plugin10000644000175000017500000000004510700701725017556 0ustar abesymlinkpackage plugin1; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_dir/plugins/plugin3_0000644000175000017500000000004510700701725017717 0ustar abesymlinkpackage plugin3; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_list/0000755000175000017500000000000011030014256014762 5ustar abesymlinkblosxom-2.1.2/t/plugin_list/spec.yaml0000644000175000017500000000005110701424334016602 0ustar abesymlinktests: - - "" - expected.html blosxom-2.1.2/t/plugin_list/README0000644000175000017500000000005010701424334015643 0ustar abesymlinkTesting plugin loading via $plugin_list blosxom-2.1.2/t/plugin_list/config/0000755000175000017500000000000011030014256016227 5ustar abesymlinkblosxom-2.1.2/t/plugin_list/config/blosxom.conf0000644000175000017500000000033610700701725020572 0ustar abesymlink$blog_title = 'plugin_list test'; $blog_encoding = 'ISO-8859-1'; $datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; $plugin_list = "$ENV{BLOSXOM_CONFIG_DIR}/plugins.conf"; $plugin_dir = "$ENV{BLOSXOM_CONFIG_DIR}/../plugins"; blosxom-2.1.2/t/plugin_list/config/plugins.conf0000644000175000017500000000027010700701725020565 0ustar abesymlink # Bare plugin1 # Numbered 02plugin2 # Underscored plugin3_ # Numbered and underscored 04plugin4_ # Commented out # plugin5 # Real plugin - dump the list of plugins dump_plugins blosxom-2.1.2/t/plugin_list/expected.html0000644000175000017500000000034110700701725017456 0ustar abesymlinkContent-Type: text/html; charset=ISO-8859-1 plugin_list test

plugin_list test

plugin1
plugin2
plugin3
plugin4
dump_plugins
Story 1 text blosxom-2.1.2/t/plugin_list/data/0000755000175000017500000000000011030014256015673 5ustar abesymlinkblosxom-2.1.2/t/plugin_list/data/date.html0000644000175000017500000000000110700701725017474 0ustar abesymlink blosxom-2.1.2/t/plugin_list/data/1.txt0000644000175000017500000000002710700701725016602 0ustar abesymlinkStory 1 Story 1 text blosxom-2.1.2/t/plugin_list/data/foot.html0000644000175000017500000000002010700701725017527 0ustar abesymlink blosxom-2.1.2/t/plugin_list/data/head.html0000644000175000017500000000011510700701725017466 0ustar abesymlink $blog_title

$blog_title

blosxom-2.1.2/t/plugin_list/data/story.html0000644000175000017500000000003210700701725017743 0ustar abesymlink$dump_plugins::list $body blosxom-2.1.2/t/plugin_list/plugins/0000755000175000017500000000000011030014256016443 5ustar abesymlinkblosxom-2.1.2/t/plugin_list/plugins/dump_plugins0000644000175000017500000000022110700701725021076 0ustar abesymlinkpackage dump_plugins; use vars qw($list); sub start { 1 }; sub head { $list = sprintf "
\n%s\n
\n", join("\n", @blosxom::plugins); } 1; blosxom-2.1.2/t/plugin_list/plugins/plugin10000644000175000017500000000004510700701725017753 0ustar abesymlinkpackage plugin1; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_list/plugins/plugin20000644000175000017500000000004510700701725017754 0ustar abesymlinkpackage plugin2; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_list/plugins/plugin30000644000175000017500000000004510700701725017755 0ustar abesymlinkpackage plugin3; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_list/plugins/plugin40000644000175000017500000000004510700701725017756 0ustar abesymlinkpackage plugin4; sub start { 1 }; 1; blosxom-2.1.2/t/plugin_list/plugins/plugin50000644000175000017500000000004510700701725017757 0ustar abesymlinkpackage plugin5; sub start { 1 }; 1; blosxom-2.1.2/t/smoketest/0000755000175000017500000000000011071122674014460 5ustar abesymlinkblosxom-2.1.2/t/smoketest/config/0000755000175000017500000000000011030014256015714 5ustar abesymlinkblosxom-2.1.2/t/smoketest/config/blosxom.conf0000644000175000017500000000011610701424334020252 0ustar abesymlink$datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; $blog_encoding = 'ISO-8859-1'; blosxom-2.1.2/t/smoketest/expected.html0000644000175000017500000000355611041453634017160 0ustar abesymlinkContent-Type: text/html; charset=ISO-8859-1 My Weblog

My Weblog

Wed, 19 Jul 2006

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

powered by blosxom
blosxom-2.1.2/t/smoketest/expected.rss0000644000175000017500000000275011071122674017016 0ustar abesymlinkContent-Type: text/xml; charset=ISO-8859-1 My Weblog http://localhost/ Yet another Blosxom weblog. en http://blogs.law.harvard.edu/tech/rss blosxom/2.1.2 Lorem ipsum Wed, 19 Jul 2006 22:54:00 +0000 http://localhost/2006/07/19#1 http://localhost/1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/smoketest/spec.yaml0000644000175000017500000000012410701424334016270 0ustar abesymlinktests: - - "" - expected.html - - "flav=rss" - "expected.rss" blosxom-2.1.2/t/smoketest/data/0000755000175000017500000000000011030014256015360 5ustar abesymlinkblosxom-2.1.2/t/smoketest/data/1.txt0000644000175000017500000000154510457534010016275 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/smoketest/data/1.txt.2006071922540000644000175000017500000000154510701424334017520 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/0000755000175000017500000000000011030014263015057 5ustar abesymlinkblosxom-2.1.2/t/static_basic/config/0000755000175000017500000000000011041223620016325 5ustar abesymlinkblosxom-2.1.2/t/static_basic/config/blosxom.conf0000644000175000017500000000024111041217436020664 0ustar abesymlink$datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; $static_dir = "$ENV{BLOSXOM_CONFIG_DIR}/../static"; $static_password = 'static'; @static_flavours = qw/html rss/; blosxom-2.1.2/t/static_basic/config/plugins.conf0000644000175000017500000000000011041217436020653 0ustar abesymlinkblosxom-2.1.2/t/static_basic/spec.yaml0000644000175000017500000000002310716265356016715 0ustar abesymlinkexpected: expected blosxom-2.1.2/t/static_basic/data/0000755000175000017500000000000011030021213015761 5ustar abesymlinkblosxom-2.1.2/t/static_basic/data/date.html0000644000175000017500000000004110716265356017613 0ustar abesymlink

$yr-$mo_num-$da

blosxom-2.1.2/t/static_basic/data/1.txt0000644000175000017500000000154510457534010016707 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/data/1.txt.2006071922540000644000175000017500000000154510716265356020147 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/data/content_type.html0000644000175000017500000000003210716265356021411 0ustar abesymlinktext/xhtml; charset=UTF-8 blosxom-2.1.2/t/static_basic/data/foot.html0000644000175000017500000000002510716265356017647 0ustar abesymlink blosxom-2.1.2/t/static_basic/data/head.html0000644000175000017500000000065510716265356017612 0ustar abesymlink $blog_title $path_info_da $path_info_mo $path_info_yr

$blog_title

$path_info_da $path_info_mo $path_info_yr

blosxom-2.1.2/t/static_basic/data/story.html0000644000175000017500000000031610716265356020063 0ustar abesymlink

$title

$body

posted at: $ti | path: $path | permanent link to this entry

blosxom-2.1.2/t/static_basic/expected/0000755000175000017500000000000011041224206016662 5ustar abesymlinkblosxom-2.1.2/t/static_basic/expected/2006/0000755000175000017500000000000011041224177017260 5ustar abesymlinkblosxom-2.1.2/t/static_basic/expected/2006/07/0000755000175000017500000000000011041224171017500 5ustar abesymlinkblosxom-2.1.2/t/static_basic/expected/2006/07/19/0000755000175000017500000000000011041224157017735 5ustar abesymlinkblosxom-2.1.2/t/static_basic/expected/2006/07/19/index.html0000644000175000017500000000272510716265357021757 0ustar abesymlink My Weblog 19 07 2006

My Weblog

19 07 2006

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/static_basic/expected/2006/07/19/index.rss0000644000175000017500000000264511041224157021604 0ustar abesymlink My Weblog http://localhost/ Yet another Blosxom weblog. en http://blogs.law.harvard.edu/tech/rss blosxom/2.1.0 Lorem ipsum Wed, 19 Jul 2006 22:54:00 +0000 http://localhost/2006/07/19#1 /1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/expected/2006/07/index.html0000644000175000017500000000272110716265357021522 0ustar abesymlink My Weblog 07 2006

My Weblog

07 2006

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/static_basic/expected/2006/07/index.rss0000644000175000017500000000264511041224171021347 0ustar abesymlink My Weblog http://localhost/ Yet another Blosxom weblog. en http://blogs.law.harvard.edu/tech/rss blosxom/2.1.0 Lorem ipsum Wed, 19 Jul 2006 22:54:00 +0000 http://localhost/2006/07/19#1 /1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/expected/2006/index.html0000644000175000017500000000271510716265357021277 0ustar abesymlink My Weblog 2006

My Weblog

2006

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/static_basic/expected/2006/index.rss0000644000175000017500000000264511041224177021127 0ustar abesymlink My Weblog http://localhost/ Yet another Blosxom weblog. en http://blogs.law.harvard.edu/tech/rss blosxom/2.1.0 Lorem ipsum Wed, 19 Jul 2006 22:54:00 +0000 http://localhost/2006/07/19#1 /1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/static_basic/expected/index.html0000644000175000017500000000270510716265356020706 0ustar abesymlink My Weblog

My Weblog

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/static_basic/expected/index.rss0000644000175000017500000000264511041224206020531 0ustar abesymlink My Weblog http://localhost/ Yet another Blosxom weblog. en http://blogs.law.harvard.edu/tech/rss blosxom/2.1.0 Lorem ipsum Wed, 19 Jul 2006 22:54:00 +0000 http://localhost/2006/07/19#1 /1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/0000755000175000017500000000000011041224215014427 5ustar abesymlinkblosxom-2.1.2/t/templates/config/0000755000175000017500000000000011041214266015701 5ustar abesymlinkblosxom-2.1.2/t/templates/config/blosxom.conf0000644000175000017500000000005711041217535020237 0ustar abesymlink$datadir = "$ENV{BLOSXOM_CONFIG_DIR}/../data"; blosxom-2.1.2/t/templates/config/plugins.conf0000644000175000017500000000000011041217535020221 0ustar abesymlinkblosxom-2.1.2/t/templates/expected.html0000644000175000017500000000411311030035561017117 0ustar abesymlinkContent-Type: text/xhtml; charset=UTF-8 My Weblog

My Weblog

2007-11-11

Lorem ipsum II

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 11:11 | path: /web | permanent link to this entry

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/templates/expected.rss0000644000175000017500000000266611041224215016773 0ustar abesymlinkContent-Type: text/xml; charset=ISO-8859-1 My Weblog http://localhost/./blosxom.cgi Yet another Blosxom weblog. en Lorem ipsum http://localhost/./blosxom.cgi/2006/07/19#1 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/spec.yaml0000644000175000017500000000005111041217535016250 0ustar abesymlinktests: - - "" - expected.html blosxom-2.1.2/t/templates/data/0000755000175000017500000000000011041223553015344 5ustar abesymlinkblosxom-2.1.2/t/templates/data/date.html0000644000175000017500000000004110701424335017145 0ustar abesymlink

$yr-$mo_num-$da

blosxom-2.1.2/t/templates/data/1.txt0000644000175000017500000000154510457534010016255 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/data/web/0000755000175000017500000000000011030022007016106 5ustar abesymlinkblosxom-2.1.2/t/templates/data/web/2.txt0000644000175000017500000000057110715561504017036 0ustar abesymlinkLorem ipsum II Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/data/web/2.txt.2007111111110000644000175000017500000000057110725226723020237 0ustar abesymlinkLorem ipsum II Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/data/1.txt.2006071922540000644000175000017500000000154510701424335017501 0ustar abesymlinkLorem ipsum Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/data/content_type.html0000644000175000017500000000003210701424335020743 0ustar abesymlinktext/xhtml; charset=UTF-8 blosxom-2.1.2/t/templates/data/foot.html0000644000175000017500000000002510701424335017201 0ustar abesymlink blosxom-2.1.2/t/templates/data/head.html0000644000175000017500000000064311041217535017141 0ustar abesymlink $blog_title $path_info_da $path_info_mo $path_info_yr

$blog_title

$path_info_da $path_info_mo $path_info_yr

blosxom-2.1.2/t/templates/data/story.html0000644000175000017500000000031610701424335017415 0ustar abesymlink

$title

$body

posted at: $ti | path: $path | permanent link to this entry

blosxom-2.1.2/t/templates/expected/0000755000175000017500000000000011041223553016234 5ustar abesymlinkblosxom-2.1.2/t/templates/expected/web/0000755000175000017500000000000011041223553017011 5ustar abesymlinkblosxom-2.1.2/t/templates/expected/web/index.html0000644000175000017500000000201410725226724021016 0ustar abesymlinkContent-Type: text/xhtml; charset=UTF-8 My Weblog

My Weblog

2007-11-11

Lorem ipsum II

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 11:11 | path: /web | permanent link to this entry

blosxom-2.1.2/t/templates/expected/web/index.rss0000644000175000017500000000320511041223340020643 0ustar abesymlinkContent-Type: text/xml; charset=UTF-8 My Weblog http://localhost/ web Yet another Blosxom weblog. author@example.com (A. U. Thor) author@example.com (A. U. Thor) Sun, 11 Nov 2007 11:11:00 +0000 en blosxom 2.1.0 hourly 1 2000-01-01T12:00+00:00 Lorem ipsum II http://localhost/web/2.html http://localhost/web/2.html Sun, 11 Nov 2007 11:11:00 +0000 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. blosxom-2.1.2/t/templates/expected/index.html0000644000175000017500000000412510725226723020245 0ustar abesymlinkContent-Type: text/xhtml; charset=UTF-8 My Weblog

My Weblog

2007-11-11

Lorem ipsum II

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 11:11 | path: /web | permanent link to this entry

2006-07-19

Lorem ipsum

Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.

posted at: 22:54 | path: | permanent link to this entry

blosxom-2.1.2/t/templates/expected/index.rss0000644000175000017500000000535011041223340020071 0ustar abesymlinkContent-Type: text/xml; charset=UTF-8 My Weblog http://localhost/ Yet another Blosxom weblog. author@example.com (A. U. Thor) author@example.com (A. U. Thor) Sun, 11 Nov 2007 11:11:00 +0000 en blosxom 2.1.0 hourly 1 2000-01-01T12:00+00:00 Lorem ipsum II http://localhost/web/2.html http://localhost/web/2.html Sun, 11 Nov 2007 11:11:00 +0000 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor. Lorem ipsum http://localhost/1.html http://localhost/1.html Wed, 19 Jul 2006 22:54:00 +0000 Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor tyr wuz de ramas cora dola tymon ipso foer tyr wuz de ramas cora dola tymo. Lorem ipso hoccer foer tyr wuz de ras cora dola tymon ipso hoc cer fuz de ramas cora dola tymon ipso hoccer. Lorem ipso foer tyr wuz de ramas cora dola tym ipso hor.