# #
# File: user/fo_posting.pl #
# #
-# Authors: André Malo <nd@o3media.de>, 2001-04-08 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: Accept new postings, display "Neue Nachricht" page #
# #
$Shared
$Script
$Config
- $VERSION
);
# locate the script
use Conf::Admin;
use Posting::Cache;
+################################################################################
+#
# Version check
#
-$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+# last modified:
+# $Date$ (GMT)
+# by $Author$
+#
+sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'}
# load script configuration and admin default conf.
#
### Posting::Request ###########################################################
package Posting::Request;
-use Arc::Archive;
+use Arc::Starter;
use CheckRFC;
-use Encode::Plain; $Encode::Plain::utf8 = 1; # generally convert from UTF-8
+use Encode::Plain; $Encode::Plain::utf8 = 1;
use Encode::Posting;
use Lock;
use Posting::_lib qw(
sub severance {
my $self = shift;
- my $stat = cut_tail ({
- forumFile => $self -> {conf} -> {forum_file_name},
- messagePath => $self -> {conf} -> {message_path},
- archivePath => $self -> {conf} -> {original} -> {files} -> {archivePath},
- lockFile => $self -> {conf} -> {original} -> {files} -> {sev_lock},
- adminDefault => $self -> {conf} -> {admin},
- cachePath => $self -> {conf} -> {original} -> {files} -> {cachePath}
- });
-# die $stat->{(keys %$stat)[0]} if (%$stat);
-
+ start_severance ($self -> {conf} -> {original} -> {files} -> {sev_app});
}
### sub response ###############################################################
}
sub jerk {
- my $text = $_[1] || 'An error has occurred.';
+ my $text = shift;
+ $text = 'An error has occurred.' unless defined $text;
+
print <<EOF;
Content-type: text/plain