if($_SERVER['HTTPS'])
{
echo
"<script type=\"text/javascript\" src=\"https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php\"></script>\n";
} else {
echo
"<script type=\"text/javascript\" src=\"http://static.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php\"></script>\n";
}
if($_SERVER['HTTPS'])
{
$http_set = "https://ssl";
} else {
$http_set = "http://static";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<!--- this is a secure xd_receiver, since it loads from https:// -->
<script src="<?php echo $http_set;?>.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script>
</body>
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.