NOISSUE, Getting a real ip of client, when the server is under a proxy.

This commit is contained in:
ngleader 2013-12-28 12:12:22 +09:00
parent 8b1bab0e23
commit d49b2307e7

View file

@ -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'))
{