File: D:/HostingSpaces/SBogers18/decoockpit.nl/wwwroot/facebook/index.php
<?php
require 'css-js/facebook-sdk/facebook.php';
$app_id = "180426405403942";
$app_secret = "fc64418a82f7a7fee5bec3116c3cda67";
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
$signed_request = $facebook->getSignedRequest();
$page_id = $signed_request["page"]["id"];
$page_admin = $signed_request["page"]["admin"];
$like_status = $signed_request["page"]["liked"];
$country = $signed_request["user"]["country"];
$locale = $signed_request["user"]["locale"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Author" content="Komma, (c) Komma Mediadesign, 2012. All Rights Reserved." />
<meta name="Subject" content="Restaurant - Brasserie De Coockpit Budel" />
<meta name="Description" content="Restaurant - Brasserie De Coockpit Budel" />
<meta name="Language" content="Nederlands" />
<meta name="Expires" content="14" />
<meta name="Robots" content="All" />
<title>Restaurant - Brasserie De Coockpit Budel</title>
<link href="css-js/screen.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]>
<script type="text/javascript" src="css-js/DD_belatedPNG_0.0.8a-min.js"> </script>
<script>
document.execCommand("BackgroundImageCache", false, true);
DD_belatedPNG.fix('.textTop, .textMaandmenu, .textWebsite');
</script>
<![endif]-->
<?php if ($like_status) { ?>
<script type="text/javascript">
if (top != self) top.window.location = 'http://www.facebook.com/decoockpit';
</script>
<?php } ?>
</head>
<body>
<div id="mainframe">
<?php
include("home.php");
?>
<div class="background"></div>
</div>
<script type="text/javascript" src="css-js/jquery-1.7.1.min.js"> </script>
<script type="text/javascript" src="css-js/jquery.ba-dotimeout.min.js"> </script>
<script type="text/javascript" src="css-js/coockpit.js"> </script>
</body>
</html>