]> git.p6c8.net - selfforum.git/commitdiff
modified version check
authorndparker <>
Wed, 25 Jul 2001 23:15:50 +0000 (23:15 +0000)
committerndparker <>
Wed, 25 Jul 2001 23:15:50 +0000 (23:15 +0000)
selfforum-cgi/shared/Posting/Admin.pm
selfforum-cgi/shared/Posting/Cache.pm
selfforum-cgi/shared/Posting/Write.pm
selfforum-cgi/shared/Posting/_lib.pm

index be392e4192ae457653d4568fa8d000757b60588e..a075f569c6c4a30df27efd50c10ecee8635be207 100644 (file)
@@ -5,8 +5,8 @@ package Posting::Admin;
 # File:        shared/Posting/Admin.pm                                         #
 #              (was: ~Handle.pm)                                               #
 #                                                                              #
-# Authors:     Frank Schoenmann <fs@tower.de>, 2001-03-13                      #
-#              Andre Malo       <nd@o3media.de>, 2001-03-29                    #
+# Authors:     Frank Schönmann <fs@tower.de>                                   #
+#              André Malo <nd@o3media.de>                                      #
 #                                                                              #
 # 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
index 8cd5fdf7248326f78c059abca7e1eaf3f5b82091..b940f35cb4a33de54bc23851f83aaac9d053ac8f 100644 (file)
@@ -4,17 +4,13 @@ package Posting::Cache;
 #                                                                              #
 # File:        shared/Posting/Cache.pm                                         #
 #                                                                              #
-# Authors:     André Malo <nd@o3media.de>, 2001-06-22                          #
+# Authors:     André Malo <nd@o3media.de>                                      #
 #                                                                              #
 # 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 ($@);
index 5670251bdb48ca8f047c929ba1892102d3dd9031..62fa11cb75aef9857a02719e061ee175a6445f94 100644 (file)
@@ -4,7 +4,7 @@ package Posting::Write;
 #                                                                              #
 # File:        shared/Posting/Write.pm                                         #
 #                                                                              #
-# Authors:     André Malo <nd@o3media.de>, 2001-04-08                          #
+# Authors:     André Malo <nd@o3media.de>                                      #
 #                                                                              #
 # 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'}
 
 ################################################################################
 #
index e89a0c19df74d607a169f1debf8442d329df67ac..ca29f30c42d3ff4b3fa428c2a9236a03372ff246 100644 (file)
@@ -4,8 +4,8 @@ package Posting::_lib;
 #                                                                              #
 # File:        shared/Posting/_lib.pm                                          #
 #                                                                              #
-# Authors:     André Malo <nd@o3media.de>, 2001-06-11                          #
-#              Frank Schoenmann <fs@tower.de>, 2001-06-04                      #
+# Authors:     André Malo <nd@o3media.de>                                      #
+#              Frank Schönmann <fs@tower.de>                                   #
 #                                                                              #
 # 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 =
       '<?xml version="1.0" encoding="UTF-8"?>'."\n"
     . '<!DOCTYPE Forum SYSTEM "'.$param -> {dtd}.'">'."\n"
-    . '<Forum lastMessage="'.$param -> {lastMessage}.'" lastThread="'.$param -> {lastThread}.'">';
+    . '<Forum lastMessage="m'.$param -> {lastMessage}.'" lastThread="t'.$param -> {lastThread}.'">';
 
   for $thread (sort {$b <=> $a} keys %$threads) {
     $xml .= '<Thread id="t'.$thread.'">';

patrick-canterino.de