Skip to content

Instantly share code, notes, and snippets.

<?php
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
//to check ip is pass from proxy
{

Keybase proof

I hereby claim:

  • I am mot3rror on github.
  • I am mot3rror (https://keybase.io/mot3rror) on keybase.
  • I have a public key ASA60F6lBPrTmqAhQ6NfQ18QbZcbmQB-ZwJfebeKMA3MRgo

To claim this, I am signing this object:

Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
$form = New-Object System.Windows.Forms.Form
$form.Text = 'Select a Computer'
$form.Size = New-Object System.Drawing.Size(300,200)
$form.StartPosition = 'CenterScreen'
$okButton = New-Object System.Windows.Forms.Button
$okButton.Location = New-Object System.Drawing.Point(75,120)