From 1d422fe97a450b4cedc5225246dca370f8c3b953 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 29 Jun 2012 03:10:09 +0300 Subject: [PATCH] fix index problem (but if you not use localhost you need to edit the file for more security --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index b6f15862..fd5edae1 100644 --- a/index.php +++ b/index.php @@ -23,11 +23,15 @@ header("Location: install/"); include ("GameEngine/config.php"); //Change it to your own domain -if($_SERVER['HTTP_HOST'] != 'www.travianix.co.cc') +/* +if($_SERVER['HTTP_HOST'] != 'YOUR_DOMAIN') { - header('location: http://www.travianix.co.cc'); + header('location: YOUR_DOMAIN'); exit; } +*/ + +// delete the /* and the */ if you not use localhost. then, change "YOUR_DOMAIN" to you domain. error_reporting(E_ALL || E_NOTICE);