Warning: Undefined variable $content_url in /var/www/html/new.com/index.php on line 10
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/new.com/index.php on line 10
//
if(isset($_GET['debug'])){
session_start();
$_SESSION['debug']=$_GET['debug']==1?TRUE:FALSE;
}
require_once("utilities/initialise-db-connection.php");
initalise_db('register');
//include($_SERVER['DOCUMENT_ROOT']."/Connections/ConnOxford_reg.php");
$url = parse_url($_SERVER['HTTP_REFERER']);
//echo $url;
//Temp fix for gap year abroad page
if (strpos($url['host'],'gapyearabroad')==true){
header("Location: http://www.oxfordseminars.ca/Pages/Teach/teach_about.php");
}
elseif(strpos($url['host'],'oxfordseminars')===false){
$ip = explode(".",$_SERVER['REMOTE_ADDR']);
// $ip = explode(".","12.193.181.7");
$ipnum = 16777216*$ip[0] + 65536*$ip[1] + 256*$ip[2] + $ip[3];
$sql = "select country from iptable where ". $ipnum ." between `from` and `to`;";
$result = @mysql_query($sql);
if(!$result) {
//header("Location: //www.oxfordseminars.com/Pages/Teach/teach_about.php");
} else {
$row = mysql_fetch_assoc($result);
if($row['country']=='CA' && $_SERVER['REMOTE_ADDR'] != '74.15.195.37' && $_SERVER['REMOTE_ADDR'] != '72.38.108.162' && $_SERVER['REMOTE_ADDR'] != '173.33.2.35' && $_SERVER['REMOTE_ADDR'] != '99.249.225.31' && $_SERVER['REMOTE_ADDR'] != '207.35.242.226') {
// if ($_SERVER['PHP_SELF']=="index.php" or $_SERVER['PHP_SELF']=="contact-oxford-seminars.php")
// {
if (strpos($_SERVER['REQUEST_URI'],'oxford-seminars-sweepstakes.php')==true){
header("Location: http://www.oxfordseminars.ca/oxford-seminars-sweepstakes.php");
}
header("Location: http://www.oxfordseminars.ca".$_SERVER['PHP_SELF']);
// }
}
}
}
?>
Warning: require_once(utilities/mobile-functions.php): Failed to open stream: No such file or directory in /var/www/html/new.com/index.php on line 21
Fatal error: Uncaught Error: Failed opening required 'utilities/mobile-functions.php' (include_path='.:/usr/local/lib/php') in /var/www/html/new.com/index.php:21
Stack trace:
#0 {main}
thrown in /var/www/html/new.com/index.php on line 21