config.php
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?
/* Pfadkonstanten */
define ('HOME', dirname (__FILE__) . '/');
define ('DATADIR', HOME . 'data/');
define ('IMGDIR', HOME . 'img/');
define ('LIBDIR', HOME . 'libs/');
define ('TPLDIR', HOME . 'templates/');
define ('JSDIR', HOME . 'js/');
define ('CSSDIR', HOME . 'css/');
define ('FONTDIR', HOME . 'fonts/');
define ('CACHEDIR', HOME . 'cache/');
define ('LOCALEDIR', HOME . 'locale/');
/* diese Pfade als URLS */
switch ($_SERVER["HTTP_HOST"])
{
// Georgs Testumgebung
case 'bilder-workingcopy':
define ('BASEURL', "http://". $_SERVER['SERVER_NAME'] . "/");
define ('BASESURL', "https://". $_SERVER['SERVER_NAME'] . "/");
break;
// Evolver
default:
define ('BASEURL', "http://localhost/~georg/bilder/");
define ('BASESURL', "https://localhost/~georg/bilder/");
}
define ('IMGURL', BASEURL . 'img/');
define ('LIBURL', BASEURL . 'libs/');
define ('TPLURL', BASEURL . 'templates/');
define ('DATAURL', BASEURL . 'data/');
define ('CSSURL', BASEURL . 'css/');
define ('JSURL', BASEURL . 'js/');
define ('CSSDIR', BASEURL . 'css/');
define ('FONTURL', BASEURL . 'fonts/');
define ('CACHEURL', BASEURL . 'cache/');
define ('BASESURL', "https://localhost/~georg/bilder/");
define ('IMGSURL', BASESURL . 'img/');
/* Basisklassen & Funktionen */
define ('SAVANT_SMALL', LIBDIR . 'c_SavantSmall.php');
define ('PICTOOL_SAVANT', LIBDIR . 'c_picToolSavant.php');
define ('UTILS', LIBDIR . 'utils.php');
?>