--- branches/pear-db/include/global_vars.php 2004/03/18 21:47:40 76 +++ branches/pear-db/include/global_vars.php 2004/03/18 22:20:55 77 @@ -20,7 +20,7 @@ # assume that it's alias installation (see etc/httpd-alias.conf) # with url http://host/libdata-dev/ if (! stristr($host, "libdata")) { - $path = "/libdata-dev/"; + $path = dirname($_SERVER["SCRIPT_URL"]); } // URL path information @@ -43,10 +43,10 @@ // ini_set("error_reporting", E_ALL); // ini_set("display_errors", "1"); -if (stristr($host, 'pg')) { +if (stristr($host, 'pg') || stristr($path, 'pg')) { include_once("xx_pgsql.php"); $GLOBAL_SYS_NAME .= " [pgsql]"; -} elseif (stristr($host, 'my')) { +} elseif (stristr($host, 'my') || stristr($path, 'my')) { include_once("xx_mysql.php"); $GLOBAL_SYS_NAME .= " [mysql]"; } else {