Twoje IP - :: DARKGRAPHIC | Studio Graficzne
58659
page-template,page-template-full_width,page-template-full_width-php,page,page-id-58659,qode-core-1.0,,darkgraphic child-child-ver-1.0.0, vertical_menu_with_scroll,smooth_scroll,side_menu_slide_from_right,grid_1300,wpb-js-composer js-comp-ver-6.0.2,vc_responsive

Twoje IP:

[insert_php]

// variables
$xfwd = mm_strip($_SERVER[„HTTP_X_FORWARDED_FOR”]);
$address = mm_strip($_SERVER[„REMOTE_ADDR”]);
$port = mm_strip($_SERVER[„REMOTE_PORT”]);
$method = mm_strip($_SERVER[„REQUEST_METHOD”]);
$protocol = mm_strip($_SERVER[„SERVER_PROTOCOL”]);
$agent = mm_strip($_SERVER[„HTTP_USER_AGENT”]);

if ($xfwd !== ”) {
$IP = $xfwd;
$proxy = $address;
$host = @gethostbyaddr($xfwd);
} else {
$IP = $address;
$host = @gethostbyaddr($address);
}

// sanitizes
function mm_strip($string) {
$string = trim($string);
$string = strip_tags($string);
$string = htmlspecialchars($string, ENT_QUOTES, ‚UTF-8’);
$string = str_replace(„\n”, „”, $string);
$string = trim($string);
return $string;
}
[/insert_php]

 

[insert_php] echo $IP; [/insert_php]