mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
NOISSUE, Getting a real ip of client, when the server is under a proxy.
This commit is contained in:
parent
8b1bab0e23
commit
d49b2307e7
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ define('_XE_PATH_', str_replace('config/config.inc.php', '', str_replace('\\', '
|
|||
// Set can use other method instead cookie to store session id(for file upload)
|
||||
ini_set('session.use_only_cookies', 0);
|
||||
|
||||
// Set Real IP Address of Client.
|
||||
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
|
||||
if(file_exists(_XE_PATH_ . 'config/package.inc.php'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue