From: Matteo Nastasi (mop) Date: Fri, 16 Oct 2015 16:32:30 +0000 (+0200) Subject: fix variables missed during some refactoring X-Git-Tag: v5.0.0~14 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=5cfead23958e55c4a21872e9351d7c1e1d084f2b;hp=fd07ee7fe6eb1e0193fe878bfc49a9071f1ad8d2;p=brisk.git fix variables missed during some refactoring --- diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 1f1434c..fb696cb 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -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); diff --git a/web/index.php b/web/index.php index 99e4011..300ad7b 100644 --- a/web/index.php +++ b/web/index.php @@ -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']))