# #
# File: user/fo_arcview.pl #
# #
-# Authors: Frank Schoenmann <fs@tower.de>, 2001-06-02 #
+# Authors: Frank Schönmann <fs@tower.de> #
# #
# Description: archive browser #
# #
$Shared
$Script
$Config
- $VERSION
);
BEGIN {
use CGI qw(param header path_info);
+################################################################################
+#
# 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'}
print header(-type => 'text/html');
# #
# 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.
#
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 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
# #
# File: user/fo_sev.pl #
# #
-# Authors: André Malo <nd@o3media.de>, 2001-04-08 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: severancer script #
# #
$Shared
$Script
$Config
- $VERSION
);
# locate the script
#
# 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'}
use lib "$Shared";
use CGI::Carp qw(fatalsToBrowser);
forumFile => $conf->{files}->{forum},
messagePath => $conf->{files}->{messagePath},
archivePath => $conf->{files}->{archivePath},
+ archiveIndex => $conf->{files}->{archiveIndex},
lockFile => $conf->{files}->{sev_lock},
adminDefault => $adminDefault,
cachePath => $conf->{files}->{cachePath}
# #
# File: user/fo_view.pl #
# #
-# Authors: André Malo <nd@o3media.de>, 2001-04-01 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: display the forum main file or a single posting #
# #
$Shared
$Script
$Config
- $VERSION
);
BEGIN {
header
);
+################################################################################
+#
# 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'}
print header(
-type => 'text/html',
# #
# File: user/fo_voting.pl #
# #
-# Authors: André Malo <nd@o3media.de>, 2001-04-23 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: vote a posting, return the posting view #
# #
$Shared
$Script
$Config
- $VERSION
);
BEGIN {
use Posting::Cache;
use Template::Posting;
-use CGI qw(param header remote_addr request_method);
+use CGI qw(
+ param
+ header
+ remote_addr
+ request_method
+);
+################################################################################
+#
# 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'}
my $conf = read_script_conf ($Config, $Shared, $Script);