Commit d2516445af7bcbcfe2417223ec6f3ee3f03a0b60
1 parent
d60c25ff
now the BASEURL can be set for each host the script is running on, making testing much more easy
Showing
1 changed file
with
13 additions
and
2 deletions
... | ... | @@ -12,8 +12,19 @@ define ('CACHEDIR', HOME . 'cache/'); |
12 | 12 | define ('LOCALEDIR', HOME . 'locale/'); |
13 | 13 | |
14 | 14 | /* diese Pfade als URLS */ |
15 | -// Evolver | |
16 | -define ('BASEURL', "http://localhost/~georg/bilder/"); | |
15 | +switch ($_SERVER["HTTP_HOST"]) | |
16 | +{ | |
17 | + // Georgs Testumgebung | |
18 | + case 'georgs_test': | |
19 | + define ('BASEURL', "http://". $_SERVER['SERVER_NAME'] . "/"); | |
20 | + define ('BASESURL', "https://". $_SERVER['SERVER_NAME'] . "/"); | |
21 | + break; | |
22 | + | |
23 | + // Evolver | |
24 | + default: | |
25 | + define ('BASEURL', "http://localhost/~georg/bilder/"); | |
26 | + define ('BASESURL', "https://localhost/~georg/bilder/"); | |
27 | +} | |
17 | 28 | |
18 | 29 | define ('IMGURL', BASEURL . 'img/'); |
19 | 30 | define ('LIBURL', BASEURL . 'libs/'); | ... | ... |
Please
register
or
login
to post a comment