Browse Source

now the BASEURL can be set for each host the script is running on, making testing much more easy

master
Georg Hopp 18 years ago
parent
commit
d2516445af
  1. 15
      config.php

15
config.php

@ -12,8 +12,19 @@ define ('CACHEDIR', HOME . 'cache/');
define ('LOCALEDIR', HOME . 'locale/');
/* diese Pfade als URLS */
// Evolver
define ('BASEURL', "http://localhost/~georg/bilder/");
switch ($_SERVER["HTTP_HOST"])
{
// Georgs Testumgebung
case 'georgs_test':
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/');

Loading…
Cancel
Save