source: trunk/index.php@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago
  • Property svn:executable set to *
File size: 626 bytes
Line 
1<?
2echo('...');//print_r($_SERVER);
3$ServerName = array_reverse(explode('.',$_SERVER["HTTP_HOST"]));
4if(count($ServerName) < 3)
5{
6 $ServerName[2] = 'www';
7 //chdir('www');
8 //include('index.php');
9}
10//print_r($ServerName);
11//if($ServerName[2] == 'heroes-of-fantasy')
12//{
13// chdir('heroes-of-fantasy');
14// include('index.php');
15//}
16Header('Location: http://www.zdechov.net/'.$ServerName[2].'/');
17/*
18else if($ServerName[0]=='astea') chdir('astea');
19else if($ServerName[0]=='jirihajda') chdir('jirihajda');
20else if($ServerName[0]=='sunrisechat') chdir('sunrisechat');
21else chdir('www');
22
23*/
24?>
Note: See TracBrowser for help on using the repository browser.