X-Git-Url: http://aymargeddon.de/gitweb/?p=aymargeddon%2Fcurrent.git;a=blobdiff_plain;f=src%2FFROGS%2FConfig.pm;h=5ee397de68f5f8a38367af06669134532e3f5338;hp=47423a9744a2376e87c957d790e148acdedae466;hb=4f47adab27e4a1d41cf6eea144a68d1ae6bff05d;hpb=4f1ebd58b6d8c45d5c5035390db1c293a9ada417
diff --git a/src/FROGS/Config.pm b/src/FROGS/Config.pm
index 47423a9..5ee397d 100644
--- a/src/FROGS/Config.pm
+++ b/src/FROGS/Config.pm
@@ -1,27 +1,31 @@
##########################################################################
#
-# Copyright (c) 2003 Aymargeddon Development Team
+# Copyright (c) 2003-2012 Aymargeddon Development Team
#
-# This file is part of "Last days of Aymargeddon"
-#
-# Aymargeddon is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or (at your option)
-# any later version.
-#
-# Aymargeddon is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-# more details.
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc., 675
-# Mass Ave, Cambridge, MA 02139, USA.
+# This file is part of "Last days of Aymargeddon" - a massive multi player
+# onine game of strategy
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
+# See the GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
###########################################################################
#
# TODO: seperate FROGS-config from Aymargeddon-config in different files
+# TODO: add some kind of local configuration file (db-passwd etc...)
+
# change this file to configure your game
use strict;
@@ -200,7 +204,7 @@ while(){
next if /^\s*\#.*$/;
$::conf->{-DB_PASSWD} = $_;
}
-print $::conf->{-DB_PASSWD};
+
close CONFIG or die "could not close config file $conf: $!\n";
1;