]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Conf.pm
modified version check
[selfforum.git] / selfforum-cgi / shared / Conf.pm
index c0920d019804317519f9d8a6e7d44ca9686106d8..eead4dcee3a217caecb22d869532f7e0c6c4d348 100644 (file)
@@ -4,7 +4,7 @@ package Conf;
 #                                                                              #
 # File:        shared/Conf.pm                                                  #
 #                                                                              #
 #                                                                              #
 # File:        shared/Conf.pm                                                  #
 #                                                                              #
-# Authors:     Andre Malo       <nd@o3media.de>, 2001-06-16                    #
+# Authors:     André Malo <nd@o3media.de>                                      #
 #                                                                              #
 # Description: read and parse configuration files                              #
 #                                                                              #
 #                                                                              #
 # Description: read and parse configuration files                              #
 #                                                                              #
@@ -13,15 +13,19 @@ package Conf;
 use strict;
 use vars qw(
   @EXPORT
 use strict;
 use vars qw(
   @EXPORT
-  $VERSION
 );
 
 use XML::DOM;
 
 ################################################################################
 );
 
 use XML::DOM;
 
 ################################################################################
+#
 # Version check
 #
 # 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'}
 
 ################################################################################
 #
 
 ################################################################################
 #
@@ -164,8 +168,6 @@ sub parse_script_conf ($\%$) {
 #         $Shared - /path/to/shared-dir   #        -- " --
 #         $Script - scriptname
 #
 #         $Shared - /path/to/shared-dir   #        -- " --
 #         $Script - scriptname
 #
-# Return: hashref of config hash
-#
 sub read_script_conf ($$$) {
   my ($Config, $Shared, $Script) = @_;
 
 sub read_script_conf ($$$) {
   my ($Config, $Shared, $Script) = @_;
 
@@ -209,4 +211,4 @@ ref($_)eq 'HASH'){&hash($_,"$string\[$i] -> ")}else{if(ref($_)eq'ARRAY'){
 
 #
 #
 
 #
 #
-### *real* end of Conf ;-) #####################################################
+### *real* end of Conf ;-) #####################################################
\ No newline at end of file

patrick-canterino.de