From: Benni Bärmann Date: Tue, 18 Sep 2012 22:30:05 +0000 (+0200) Subject: fixed bug in player.epl, looks like now we can choose games and see a X-Git-Url: http://aymargeddon.de/gitweb/?p=aymargeddon%2Fcurrent.git;a=commitdiff_plain;h=4f1ebd58b6d8c45d5c5035390db1c293a9ada417 fixed bug in player.epl, looks like now we can choose games and see a map for the first time. --- diff --git a/TODO b/TODO index f3cc862..f63a1a2 100644 --- a/TODO +++ b/TODO @@ -9,6 +9,12 @@ Bugs - Passwörter nicht mehr im Klartext in der Datenbank ablegen und schon gar nicht im Klartext in der URL stehen haben! Urgs. +- $::conf->{-EPL_DEBUG} funktioniert nicht. Es wird -DEBUG verwendet, +auch wenn man in einem epl-script ist. + +- Umlaute in der DB müssen nach utf8 konvertiert werden. Siehe: +http://en.gentoo-wiki.com/wiki/TIP_Convert_latin1_to_UTF-8_in_MySQL + Testen - mal nach SQL-Injection-Möglichkeiten checken. diff --git a/html/player.epl b/html/player.epl index ccb534e..a670831 100644 --- a/html/player.epl +++ b/html/player.epl @@ -87,7 +87,7 @@ for $og (@$open_games){ push @real_open_games, $og unless exists $such{$og->[0]}; } - + Util::log("real open games: ". Dumper(\@real_open_games), 2); ($rn) = $db->read_player($id, 'REALNAME') unless exists $udat{-game}; -] @@ -110,7 +110,7 @@

[+ $db->loc('PLAYER_OPENGAMES') +]:

[$ foreach $og (@real_open_games) $] - [- $og=$og->[0]; ($og_name) = $db->read_game($og,'NAME'); -] + [- ($og_name) = $db->read_game($og,'NAME'); -] [+$og_name+]

[$ endforeach $] [$ if $#{@real_open_games} < 0 $] @@ -140,7 +140,7 @@ $messages = $aym->read_messages(); $now = $db->now(); -] - [+ $db->loc('PLAYER_MESSAGES_HEADING') +]

+ [+ $db->loc('PLAYER_MESSAGES_HEADING') +]

[+ $db->loc('PLAYER_DELETE_MESSAGES')+]

[$ foreach $msg (@$messages) $] diff --git a/src/FROGS/Config.pm b/src/FROGS/Config.pm index 6ac0bef..47423a9 100644 --- a/src/FROGS/Config.pm +++ b/src/FROGS/Config.pm @@ -40,7 +40,7 @@ $::conf = { -DEFAULT_LANGUAGE => 'EN', -LOG_TIME_IN_LOOP => 1000, # loops until next time output in log -DEBUG => 1, - -EPL_DEBUG => 2, + -EPL_DEBUG => 1, -MESSAGE_IN_LOG => 0, -FULL_DEBUG_FILE => '/home/benni/aymargeddon/current/src/FROGS/+out', -SCHEDULER_SLEEP => 2, diff --git a/var/LOCALIZE.sql b/var/LOCALIZE.sql index 2a86409..ba04d26 100644 --- a/var/LOCALIZE.sql +++ b/var/LOCALIZE.sql @@ -49,4 +49,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2012-09-18 23:02:06 +-- Dump completed on 2012-09-18 23:09:01