fixed bug in player.epl, looks like now we can choose games and see a
authorBenni Bärmann <benni@obda.de>
Tue, 18 Sep 2012 22:30:05 +0000 (00:30 +0200)
committerBenni Bärmann <benni@obda.de>
Tue, 18 Sep 2012 22:30:05 +0000 (00:30 +0200)
map for the first time.

TODO
html/player.epl
src/FROGS/Config.pm
var/LOCALIZE.sql

diff --git a/TODO b/TODO
index f3cc862..f63a1a2 100644 (file)
--- 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. 
 
 - 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. 
 Testen
 
 - mal nach SQL-Injection-Möglichkeiten checken. 
index ccb534e..a670831 100644 (file)
@@ -87,7 +87,7 @@
     for $og (@$open_games){
       push @real_open_games, $og unless exists $such{$og->[0]};
     }
     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};
   -]
 
     ($rn) = $db->read_player($id, 'REALNAME') unless exists $udat{-game};
   -]
 
   <hr>
   <p>[+ $db->loc('PLAYER_OPENGAMES') +]:<p>
   [$ foreach $og (@real_open_games) $]
   <hr>
   <p>[+ $db->loc('PLAYER_OPENGAMES') +]:<p>
   [$ foreach $og (@real_open_games) $]
-    [- $og=$og->[0]; ($og_name) = $db->read_game($og,'NAME'); -]
+    [- ($og_name) = $db->read_game($og,'NAME'); -]
     <a href="player.epl?game=[+$og+]">[+$og_name+]</a><p>
   [$ endforeach $]
   [$ if $#{@real_open_games} < 0 $]
     <a href="player.epl?game=[+$og+]">[+$og_name+]</a><p>
   [$ endforeach $]
   [$ if $#{@real_open_games} < 0 $]
       $messages = $aym->read_messages();
      $now = $db->now();
      -]
       $messages = $aym->read_messages();
      $now = $db->now();
      -]
-    <strong>[+ $db->loc('PLAYER_MESSAGES_HEADING') +]</strong><p>
+   <strong>[+ $db->loc('PLAYER_MESSAGES_HEADING') +]</strong><p>
     <a href="player.epl?delete_all_messages=1&time=[+$now+]">
    [+ $db->loc('PLAYER_DELETE_MESSAGES')+]</a><p>
     [$ foreach $msg (@$messages) $]
     <a href="player.epl?delete_all_messages=1&time=[+$now+]">
    [+ $db->loc('PLAYER_DELETE_MESSAGES')+]</a><p>
     [$ foreach $msg (@$messages) $]
index 6ac0bef..47423a9 100644 (file)
@@ -40,7 +40,7 @@ $::conf = {
           -DEFAULT_LANGUAGE => 'EN',
           -LOG_TIME_IN_LOOP => 1000, # loops until next time output in log
           -DEBUG => 1,
           -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,
           -MESSAGE_IN_LOG => 0,
           -FULL_DEBUG_FILE => '/home/benni/aymargeddon/current/src/FROGS/+out',
           -SCHEDULER_SLEEP => 2,
index 2a86409..ba04d26 100644 (file)
@@ -49,4 +49,4 @@ UNLOCK TABLES;
 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
 
 /*!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