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 | <?
|
---|
2 | echo('...');//print_r($_SERVER);
|
---|
3 | $ServerName = array_reverse(explode('.',$_SERVER["HTTP_HOST"]));
|
---|
4 | if(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 | //}
|
---|
16 | Header('Location: http://www.zdechov.net/'.$ServerName[2].'/');
|
---|
17 | /*
|
---|
18 | else if($ServerName[0]=='astea') chdir('astea');
|
---|
19 | else if($ServerName[0]=='jirihajda') chdir('jirihajda');
|
---|
20 | else if($ServerName[0]=='sunrisechat') chdir('sunrisechat');
|
---|
21 | else chdir('www');
|
---|
22 |
|
---|
23 | */
|
---|
24 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.