Blame view

config.php 1.33 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?
/* 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 */
15 16 17
switch ($_SERVER["HTTP_HOST"])
{
	// Georgs Testumgebung
18
	case 'bilder-workingcopy':
Georg Hopp authored
19
		define ('URLPATH', '/');
20 21 22 23
		break;

	// Evolver
	default:
Georg Hopp authored
24
		define ('URLPATH', '/~georg/bilder/');
25
}
Georg Hopp authored
26 27
define ('BASEURL', "http://" . $_SERVER["HTTP_HOST"] . URLPATH);
define ('BASESURL', "https://" . $_SERVER["HTTP_HOST"] . URLPATH);
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

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 ('IMGSURL',  BASESURL . 'img/');

/* Basisklassen & Funktionen */
define ('SAVANT_SMALL',   LIBDIR . 'c_SavantSmall.php');
define ('PICTOOL_SAVANT', LIBDIR . 'c_picToolSavant.php');
define ('UTILS',          LIBDIR . 'utils.php');
?>