Apache-UploadSvr
view release on metacpan or search on metacpan
lib/Apache/UploadSvr.pm view on Meta::CPAN
EOS
push @done, "</TABLE>\n";
}
my $vreport = sprintf "%d Error", $cntf;
$vreport .= sprintf ", %d Links not tested", $cntn if $cntn;
$vreport .= sprintf ", %d Anchor not tested", $cnta if $cnta;
unshift(
@done,
sprintf(
qq{<TABLE BORDER><TR><TH>File <A HREF="%s%s">%s%s</A> }.
qq{%s</TH></TR><TR><TD>},
$stageuri,
$f,
$stageuri,
$f,
$vreport
));
push @done, "</TABLE>\n";
if ($display_method eq "as_line") {
return sprintf(
qq{<A HREF="/perl/user/up?SUBMITaction=1&}.
qq{ACTION=linkcheck&STAGEDFILES=%s">%s%s</A> %s<BR>},
$f,
$stageuri,
$f,
$vreport);
}
return join "\n", @done;
}
1;
=head1 NAME
Apache::UploadSvr - A Lightweight Publishing System for Apache
=head1 SYNOPSIS
=head1 DESCRIPTION
This module implements a small publishing system for a web server with
authentication, simple security, preview, directory viewer and an interface
to delete files. The whole system is actually running software on
www.kulturbox.de at the time of publishing (i.e. Summer 1998).
The author is looking for somebody to take this code over for
maintainance.
=head1 CONFIGURATION
httpd.conf:
PerlSetVar Auth_DBI_data_source dbi:mSQL:authen
PerlSetVar Auth_DBI_pwd_table usertable
PerlSetVar Auth_DBI_grp_table grouptable
PerlSetVar Auth_DBI_uid_field user
PerlSetVar Auth_DBI_grp_field group
PerlSetVar Auth_DBI_pwd_field password
PerlSetVar stageuri /STAGE
PerlSetVar Apache_UploadSvr_Usermgr "Apache::UploadSvr::User"
PerlSetVar Apache_UploadSvr_myuri /perl/user/up
PerlSetVar Apache_UploadSvr_transdir /usr/local/apache/trans
PerlSetVar Apache_UploadSvr_trashdir /usr/local/apache/trash
<Files "...">
PerlSetVar DirCache .dircache
SetHandler perl-script
PerlHandler Apache::UploadSvr::Directory
AuthName stadtplandienst
AuthType Basic
PerlAuthenHandler Apache::AuthenDBI
require valid-user
</Files>
<Location /perl/user/up>
PerlHandler Apache::UploadSvr
</Location>
Change the permissions for the whole document tree to give the server
write access.
=head1 SECURITY
=head1 EXPORT
=head1 BUGS
=head1 COPYRIGHT
The application and accompanying modules are Copyright KULTURBOX, Berlin.
It is free software and can be used, copied and redistributed at the same
terms as perl itself.
=head1 AUTHOR
Andreas Koenig <koenig@kulturbox.de>
=cut
( run in 1.197 second using v1.01-cache-2.11-cpan-59e3e3084b8 )