config.php 1.42 KB
<?
/* 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://" . $_SERVER["HTTP_HOST"] . "/~georg/bilder/");
		define ('BASESURL',
			"https://" . $_SERVER["HTTP_HOST"] . "/~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 ('IMGSURL',  BASESURL . 'img/');

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