File: D:/HostingSpaces/SBogers10/spire.komma-mediadesign.nl/wwwroot/check_x2.php
<?php
/**
* check_x2.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 24/01/14
*/
//define('X2',0);
// Check for x2
if(strpos($_SERVER['SERVER_NAME'],'x2') !== false)
{
define('X2',1);
include $_SERVER['DOCUMENT_ROOT'] . '/lib/x2_old_links.php';
}
else
{
define('X2',0);
}
//$ips = array('212.61.130.133','188.204.215.70'); // Komma & Spire
/*
$ips = array('212.61.130.133'); // Komma
if(in_array($_SERVER['REMOTE_ADDR'],$ips))
{
define('X2',1);
include $_SERVER['DOCUMENT_ROOT'] . '/lib/x2_old_links.php';
}
else
{
define('X2',0);
}*/