<?php 
/*
	What's My IP?
*/

// 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;
}

?>




<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>Canadian National Security Ltd - Security Systems Winnipeg</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="Canadian National Security Ltd has been serving the Winnipeg area for many years and wants to earn your business. Our loyal customers love our personalized treatment; it keeps them coming back each time a new issue arises. Our customers are like our family.">
<meta name="keywords" content="Security Systems Winnipeg, Canadian National Security Ltd, winnipegsecurity.net, security cameras winnipeg, alarm systems winnipeg, winnipeg alarm systems">
<meta name="author" content="Erik" >
<meta name="subject" content="Security Systems">
<meta name="Geography" content="Winnipeg, MB">
<meta name="Language" content="English">
<meta http-equiv="Expires" content="Never">
<meta http-equiv="CACHE-CONTROL" content="PUBLIC">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<meta name="Copyright" content="Canadian National Security Ltd, http://www.cnat.ca">
<meta name="Revisit-After" content="21 Days">
<meta name="distribution" content="Global">
<meta name="City" content="Winnipeg">
<meta name="country" content="Canada">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<link rel="StyleSheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/lytebox.css" type="text/css" media="screen">
<script type="text/javascript" language="javascript" src="css/lytebox.js"></script>
</head>
<body topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">

<table width="1000" cellspacing="0" cellpadding="0" border="0" align="center">
	<tbody><tr>
		<td width="1000"><style type="text/css">
/* menu styles */
#jsddm
{	margin: 0;
	padding: 0}

	#jsddm li
	{	float: left;
		list-style: none;
		font: 14px Tahoma, Arial}

	#jsddm li a
	{	display: block;
		background: #111;
		padding: 9px 13px;
		text-decoration: none;
		border-right: 1px solid white;
		width: auto;
		color: #ffffff;
		white-space: nowrap}

	#jsddm li a:hover
	{	background: #cc0000; color:#fff}
		
		#jsddm li ul
		{	margin: 0;
			padding: 0;
			position: absolute;
			visibility: hidden;
			border-top: 1px solid white}
		
			#jsddm li ul li
			{	float: none;
				display: inline}
			
			#jsddm li ul li a
			{	width: auto;
				background: #A9C251;
				color: #24313C}
			
			#jsddm li ul li a:hover
			{	background: #8EA344}
</style>

<script src="css/jquery.html" type="text/javascript"></script>
<script type="text/javascript">
var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;

function jsddm_open()
{	jsddm_canceltimer();
	jsddm_close();
	ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}

function jsddm_close()
{	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

function jsddm_timer()
{	closetimer = window.setTimeout(jsddm_close, timeout);}

function jsddm_canceltimer()
{	if(closetimer)
	{	window.clearTimeout(closetimer);
		closetimer = null;}}

$(document).ready(function()
{	$('#jsddm > li').bind('mouseover', jsddm_open);
	$('#jsddm > li').bind('mouseout',  jsddm_timer);});

document.onclick = jsddm_close;
</script>
<table width="1000" border="0">
  <tbody><tr>
    <td width="298"><a href="index.html"><img src="images/logo.png" alt="Security Systems Winnipeg - Canadian National Security Ltd Logo" width="469" height="90" border="0"></a></td>
    <td width="692"><table cellspacing="0" cellpadding="0" align="center">
<tbody><tr><td align="center">
<ul id="jsddm">
<li><a title="Security Systems Winnipeg - Home" href="index.html">Home</a> </li>
<li><a title="Security Systems Winnipeg - About Us" href="about.html">About Us</a> </li>
<li><a title="Security Systems Winnipeg - Services" href="services.html">Services</a></li>
<li><a title="Security Systems Winnipeg - Products" href="products.html">Products</a></li>
<li><a title="Security Systems Winnipeg - Downloads" href="downloads.html">Downloads</a></li>
<li><a title="Security Systems Winnipeg - Contact" href="contact.html" style="border:none">Contact</a></li>
</ul>
</td></tr></tbody></table>
    </td>
  </tr>
</tbody></table>

</td>
	</tr>
	<tr>
		<td>
        
			<img alt="Security Systems Winnipeg - Main Image" src="images/main.png" width="1000" height="412">
            
            
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
   
  
</tr></tbody></table>



</div>
            
            </td>
	</tr>
	<tr>
		<td></td>
	</tr>
	<tr>
		<td><table width="1000" height="430" cellpadding="6" border="0">
  <tbody><tr>
    <td valign="top"><div class="page_heading">IP Address Lookup</div>
    <div class="body_text">
    
    <div>
    <h3>
    	Your IP Address is: <?php echo $IP; ?>
        <p></p>

        <ul>
			<?php 
				echo '<li><strong>Remote Port:</strong> <span>'.$port.'</span></li>';
				echo '<li><strong>Request Method:</strong> <span>'.$method.'</span></li>';
				echo '<li><strong>Server Protocol:</strong> <span>'.$protocol.'</span></li>';
				echo '<li><strong>Server Host:</strong> <span>'.$host.'</span></li>';
				echo '<li><strong>User Agent:</strong> <span>'.$agent.'</span></li>'; 
				if ($proxy) echo '<li><strong>Proxy: <span>'.($proxy) ? $proxy : ''.'</span></li>';
			?>
			</ul>
    
  	</h3>

		 
<div>
<br>

 </td>
    <td rowspan="2" width="279" valign="top">       <div align="center">
       <table cellspacing="5" cellpadding="3">
          <tbody><tr> <td style="border:solid 1px #666;"><a href="about.html"><img src="images/about.png" alt="Security Systems Winnipeg" width="300" height="150" border="0"></a></td></tr>
          <tr> <td style="border:solid 1px #666;"><a href="products.html"><img src="images/products.png" alt="Security Systems Winnipeg" width="300" height="150" border="0"></a></td></tr>
          <tr> <td style="border:solid 1px #666;"><a href="contact.html"><img src="images/contact.png" alt="Security Systems Winnipeg" width="300" height="150" border="0"></a></td>
        </tr></tbody></table></div></td>
  </tr>
  <tr>
    <td valign="bottom">  <div class="sub_heading">Resources</div>
    <div class="body_text">Looking for product support?  Possibly a user manual?  Click on the Downloads section at the top of the page.<br>
       </div></td>
    
  </tr>
        </tbody></table>
</td>
	</tr>
</tbody></table>
<div><div class="footer" align="center">

<table width="1000" border="0">
  <tbody><tr>
    <td width="764" align="left">
<span class="footer_text">
<a class="footer_link" href="index.html" title="Security Systems Winnipeg - Home">Home</a> | 
<a class="footer_link" href="about.html" title="Security Systems Winnipeg - About Us">About us</a> | 
<a class="footer_link" href="services.html" title="Security Systems Winnipeg - Services">Services</a> | 
<a class="footer_link" href="products.html" title="Security Systems Winnipeg - Products">Products</a> | 
<a class="footer_link" href="downloads.html" title="Security Systems Winnipeg - Downloads">Downloads</a> | 
<a class="footer_link" href="contact.html" title="Security Systems Winnipeg - Contact Us">Contact Us</a> 
<br><span class="footer_text">Canadian National Security Ltd, 204-654-0000 (c)2021</span><br>
  </tr>
</tbody></table>
</div>
</div>

<div id="lbOverlay" class="grey" style="display: none;"></div><div id="lbMain" style="display: none;"><div id="lbOuterContainer" class="grey"><div id="lbIframeContainer" style="display: none;"><iframe id="lbIframe" name="lbIframe" style="display: none;"></iframe></div><div id="lbImageContainer"><img id="lbImage"><div id="lbHoverNav"><a id="lbPrev" class="grey" href="#"></a><a id="lbNext" class="grey" href="#"></a></div></div><div id="lbLoading"></div></div><div id="lbDetailsContainer" class="grey"><div id="lbDetailsData" class="grey"><div id="lbDetails"><span id="lbCaption"></span><span id="lbNumberDisplay"></span><span id="lbNavDisplay" style="display: none;"></span></div><div id="lbBottomNav"><a id="lbClose" class="grey" href="#"></a><a id="lbPause" class="grey" href="#" style="display: none;"></a><a id="lbPlay" class="grey" href="#" style="display: none;"></a></div></div></div></div><div id="blinkextension_snap_links_box_mg_mouse_gestures" style="background-color: rgba(250, 128, 0, 0.07); border: 3px dashed blue; box-sizing: border-box; position: absolute; z-index: 2147483647; display: none;"></div><div style="display: none; position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index: 2147483647; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;" id="hit_a_link_blinkextension_container_mg_mouse_gestures"></div></body></html>

