Apache-MiniWiki

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN


WriteMakefile(
    'NAME'		=> 'Apache::MiniWiki',
    'VERSION_FROM'	=> 'MiniWiki.pm',
    'PREREQ_PM'		=> { 'Apache::Constants' => 0,
			     'CGI' => 2.47,
			     'HTML::FromText' => 0,
			     'HTML::Template' => 0,
			     'Rcs' => 1.04,
			     'Date::Manip' => 0,
				 'Image::Magick' => 1,
			     'Apache::Htpasswd' => 0 },
    ($] >= 5.005 ?
      (ABSTRACT_FROM => 'MiniWiki.pm', # retrieve abstract from module 
       AUTHOR     => 'Jonas Oberg <jonas@gnu.org>, Wim Kerkhoff <kerw@cpan.org>, James Farrell <jfarrell@telesterion.org>') : ()),
);

MiniWiki.pm  view on Meta::CPAN

	#$r->send_http_header("image/$subtype");

	if (-f $thumburi && stat($thumburi)->mtime > $file_mtime) {
		# if the thumbnail is newer then the big image,
		# then obviously a new one hasn't been uploaded. 
		# Don't call ImageMagick to check the size.
		# Use the existing thumb.
		return send_file($r, $thumburi);
	}

	use Image::Magick;
	my $image = Image::Magick->new;

	my ($width, $height, $size, $format) = $image->Ping($fileuri);

	if ($width < $max_width && $height < $max_height) {
		# don't scale it down
		return send_file($r, $fileuri);
	}
	else {
		if (!-f $thumburi || stat($thumburi)->mtime < $file_mtime) {
			my $resize_ratio;

MiniWiki.pm  view on Meta::CPAN

    all the pages in the Wiki

=head1 DEPENDENCIES

This module requires these other modules:

  Apache::Htpasswd
  Apache::Constants
  CGI
  Date::Manip
  Image::Magick (Optional)
  HTML::FromText
  HTML::Template
  Rcs

=head1 SYNOPSIS

Add this to httpd.conf:

  <Location /wiki>
     PerlAddVar datadir "/home/foo/db/wiki/"

MiniWiki.pm  view on Meta::CPAN

  
  PerlAddVar templates fvlug linux

By doing this, pages that contain those words will use the matching template.
For example, the /your-wiki-vroot/LinuxDatabases page will then use the template-linux page,
instead of template. You will need to create the template by going to
/wiki/your-wiki-vroot/(edit)/template-<the_template> first.

(Optional) To disable file uploads such as binary attachments and inline images,
set uploads to no. By default it is yes. Note that inline images requires the
Image::Magick module to be installed for generating thumbnails.

  PerlAddVar uploads no

(Optional) Pre-caching can be done by a periodic (eg every 5 minutes) cronjob
to refresh the cached version of the .list* pages (see below) in the background,
rather then when Apache::Miniki discovers that the cache is old when a request is
done. To eanble:

  PerlAddVar precaching yes

MiniWiki.pm  view on Meta::CPAN

Wim Kerkhoff, E<lt>kerw@cpan.orgE<gt>

James Farrell, E<lt>jfarrell@telesterion.orgE<gt>

=head1 CONTRIBUTORS

Brian Lauer, E<lt>fozbaca@yahoo.comE<gt>

=head1 SEE ALSO

L<perl>, L<Apache::Registry>, L<HTML::FromText>, L<HTML::LinkExtor>, L<HTML::Template>, L<Rcs>, L<CGI>, L<Date::Manip>, L<Image::Magick>.

=cut

README  view on Meta::CPAN

      - basic checks to keep search engine spiders from deleting 
        all the pages in the Wiki

DEPENDENCIES
    This module requires these other modules:

      Apache::Htpasswd
      Apache::Constants
      CGI
      Date::Manip
      Image::Magick (Optional)
      HTML::FromText
      HTML::Template
      Rcs

SYNOPSIS
    Add this to httpd.conf:

      <Location /wiki>
         PerlAddVar datadir "/home/foo/db/wiki/"
         PerlAddVar vroot "/wiki"

README  view on Meta::CPAN

      PerlAddVar templates fvlug linux

    By doing this, pages that contain those words will use the matching
    template. For example, the /your-wiki-vroot/LinuxDatabases page will
    then use the template-linux page, instead of template. You will need to
    create the template by going to
    /wiki/your-wiki-vroot/(edit)/template-<the_template> first.

    (Optional) To disable file uploads such as binary attachments and inline
    images, set uploads to no. By default it is yes. Note that inline images
    requires the Image::Magick module to be installed for generating
    thumbnails.

      PerlAddVar uploads no

    (Optional) Pre-caching can be done by a periodic (eg every 5 minutes)
    cronjob to refresh the cached version of the .list* pages (see below) in
    the background, rather then when Apache::Miniki discovers that the cache
    is old when a request is done. To eanble:

      PerlAddVar precaching yes

README  view on Meta::CPAN


    Wim Kerkhoff, <kerw@cpan.org>

    James Farrell, <jfarrell@telesterion.org>

CONTRIBUTORS
    Brian Lauer, <fozbaca@yahoo.com>

SEE ALSO
    perl, Apache::Registry, HTML::FromText, HTML::LinkExtor, HTML::Template,
    Rcs, CGI, Date::Manip, Image::Magick.



( run in 0.642 second using v1.01-cache-2.11-cpan-beeb90c9504 )