fix variables missed during some refactoring
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 16 Oct 2015 16:32:30 +0000 (18:32 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 16 Oct 2015 16:32:30 +0000 (18:32 +0200)
web/briskin5/Obj/briskin5.phh
web/index.php

index 1f1434c..fb696cb 100644 (file)
@@ -656,9 +656,9 @@ class Bin5_table extends Table {
                 unset($bdb);
             }
             else {
-                log_points($remote_addr, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", "DATABASE CONNECTION FAILED");
+                log_points($user->ip, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", "DATABASE CONNECTION FAILED");
             }
-            log_points($remote_addr, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist);
+            log_points($user->ip, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist);
         }
 
         $this->game_init(&$bri->user);
index 99e4011..300ad7b 100644 (file)
@@ -336,6 +336,9 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f
         $sess = "";
     if (($name = gpcs_var('name', $get, $post, $cookie)) === FALSE)
         unset($name);
+    else
+        log_step("LOGIN: $name");
+
     if (($pass_private = gpcs_var('pass_private', $get, $post, $cookie)) === FALSE)
         unset ($pass_private);
     if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
@@ -343,8 +346,6 @@ function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f
     if (($table_token = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE)
         unset ($table_token);
 
-    log_step("LOGIN: $name");
-
     // default values
     $_cookie_law_3party = 'true';
     if (isset($cookie['_cookie_law_3party']))