mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Fix #1468 inconsistent use of REMOTE_ADDR vs. RX_CLIENT_IP
This commit is contained in:
parent
996ca166e8
commit
2d6a175b19
11 changed files with 24 additions and 32 deletions
|
|
@ -335,7 +335,7 @@ class pollController extends poll
|
|||
$member_srl = $logged_info->member_srl?$logged_info->member_srl:0;
|
||||
|
||||
$log_args->member_srl = $member_srl;
|
||||
$log_args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
$log_args->ipaddress = \RX_CLIENT_IP;
|
||||
$output = executeQuery('poll.insertPollLog', $log_args);
|
||||
|
||||
if(!$output->toBool())
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ class pollModel extends poll
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
}
|
||||
$output = executeQuery('poll.getPollLog', $args);
|
||||
if($output->data->count) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue