From: ndparker <> Date: Wed, 25 Jul 2001 23:15:50 +0000 (+0000) Subject: modified version check X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/bca3eed65c50f585248ae3a1cc8bb6a74e4e8bb8?hp=71fa089ab8145e2ee2398d6fc647c886cc358f8c modified version check --- diff --git a/selfforum-cgi/shared/Posting/Admin.pm b/selfforum-cgi/shared/Posting/Admin.pm index be392e4..a075f56 100644 --- a/selfforum-cgi/shared/Posting/Admin.pm +++ b/selfforum-cgi/shared/Posting/Admin.pm @@ -5,8 +5,8 @@ package Posting::Admin; # File: shared/Posting/Admin.pm # # (was: ~Handle.pm) # # # -# Authors: Frank Schoenmann , 2001-03-13 # -# Andre Malo , 2001-03-29 # +# Authors: Frank Schönmann # +# André Malo # # # # Description: Allow administration of postings # # # @@ -20,7 +20,6 @@ package Posting::Admin; use strict; use vars qw( @EXPORT - $VERSION ); use Lock qw(:READ); @@ -37,7 +36,11 @@ use XML::DOM; # # 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'} ################################################################################ # @@ -355,4 +358,4 @@ sub change_posting_body ($$$$) { # # -### end of Posting::Admin ###################################################### +### end of Posting::Admin ###################################################### \ No newline at end of file diff --git a/selfforum-cgi/shared/Posting/Cache.pm b/selfforum-cgi/shared/Posting/Cache.pm index 8cd5fdf..b940f35 100644 --- a/selfforum-cgi/shared/Posting/Cache.pm +++ b/selfforum-cgi/shared/Posting/Cache.pm @@ -4,17 +4,13 @@ package Posting::Cache; # # # File: shared/Posting/Cache.pm # # # -# Authors: André Malo , 2001-06-22 # +# Authors: André Malo # # # # Description: Views/Voting Cache class # # # ################################################################################ use strict; -use vars qw( - $VERSION -); - use Fcntl; use File::Path; use Lock; @@ -23,7 +19,11 @@ use Lock; # # 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 $O_BINARY = eval "O_BINARY"; $O_BINARY = 0 if ($@); diff --git a/selfforum-cgi/shared/Posting/Write.pm b/selfforum-cgi/shared/Posting/Write.pm index 5670251..62fa11c 100644 --- a/selfforum-cgi/shared/Posting/Write.pm +++ b/selfforum-cgi/shared/Posting/Write.pm @@ -4,7 +4,7 @@ package Posting::Write; # # # File: shared/Posting/Write.pm # # # -# Authors: André Malo , 2001-04-08 # +# Authors: André Malo # # # # Description: Save a posting # # # @@ -14,7 +14,6 @@ use strict; use vars qw( %error @EXPORT - $VERSION ); use Encode::Plain; $Encode::Plain::utf8 = 1; @@ -44,7 +43,11 @@ use XML::DOM; # # 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'} ################################################################################ # diff --git a/selfforum-cgi/shared/Posting/_lib.pm b/selfforum-cgi/shared/Posting/_lib.pm index e89a0c1..ca29f30 100644 --- a/selfforum-cgi/shared/Posting/_lib.pm +++ b/selfforum-cgi/shared/Posting/_lib.pm @@ -4,8 +4,8 @@ package Posting::_lib; # # # File: shared/Posting/_lib.pm # # # -# Authors: André Malo , 2001-06-11 # -# Frank Schoenmann , 2001-06-04 # +# Authors: André Malo # +# Frank Schönmann # # # # Description: Message access interface, time format routines # # # @@ -14,7 +14,6 @@ package Posting::_lib; use strict; use vars qw( @EXPORT_OK - $VERSION ); use Encode::Plain; $Encode::Plain::utf8 = 1; @@ -26,7 +25,11 @@ use XML::DOM; # # 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'} ################################################################################ # @@ -399,7 +402,8 @@ sub sort_thread ($$) { for (@smsg) { ++$z; splice @smsg,$z,0,@{$mhash{$_ -> {mid}}} if ($_ -> {answers}); - delete $_ -> {kids};} + delete $_ -> {kids}; + } # return \@smsg; @@ -590,7 +594,7 @@ sub create_forum_xml_string ($$) { my $xml = ''."\n" . ' {dtd}.'">'."\n" - . ''; + . ''; for $thread (sort {$b <=> $a} keys %$threads) { $xml .= '';