Some very old PHP code originally intended to become an image management tool.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.4 KiB

<?
/* 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');
?>