src/Library/Logger.php
public static function getUserIp()
    {
        if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
            $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
        elseif (isset($_SERVER['HTTP_CLIENT_IP']))
            $ip = $_SERVER['HTTP_CLIENT_IP'];
        else
            $ip = $_SERVER['REMOTE_ADDR'];
        return $ip;
    }
public static function getUserIp()
    {
        if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
            $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
        elseif (isset($_SERVER['HTTP_CLIENT_IP']))
            $ip = $_SERVER['HTTP_CLIENT_IP'];
        else
            $ip = $_SERVER['REMOTE_ADDR'];
        return $ip;
    }
public static function getUserIp ( ) { if ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) ) $ ip = $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ; elseif ( isset ( $ _SERVER [ 'HTTP_CLIENT_IP' ] ) ) $ ip = $ _SERVER [ 'HTTP_CLIENT_IP' ] ; else $ ip = $ _SERVER [ 'REMOTE_ADDR' ] ; return $ ip ; }
Get the user IP address
Get the user IP address