20 |
# assume that it's alias installation (see etc/httpd-alias.conf) |
# assume that it's alias installation (see etc/httpd-alias.conf) |
21 |
# with url http://host/libdata-dev/ |
# with url http://host/libdata-dev/ |
22 |
if (! stristr($host, "libdata")) { |
if (! stristr($host, "libdata")) { |
23 |
$path = "/libdata-dev/"; |
$path = dirname($_SERVER["SCRIPT_URL"]); |
24 |
} |
} |
25 |
|
|
26 |
// URL path information |
// URL path information |
43 |
// ini_set("error_reporting", E_ALL); |
// ini_set("error_reporting", E_ALL); |
44 |
// ini_set("display_errors", "1"); |
// ini_set("display_errors", "1"); |
45 |
|
|
46 |
if (stristr($host, 'pg')) { |
if (stristr($host, 'pg') || stristr($path, 'pg')) { |
47 |
include_once("xx_pgsql.php"); |
include_once("xx_pgsql.php"); |
48 |
$GLOBAL_SYS_NAME .= " [pgsql]"; |
$GLOBAL_SYS_NAME .= " [pgsql]"; |
49 |
} elseif (stristr($host, 'my')) { |
} elseif (stristr($host, 'my') || stristr($path, 'my')) { |
50 |
include_once("xx_mysql.php"); |
include_once("xx_mysql.php"); |
51 |
$GLOBAL_SYS_NAME .= " [mysql]"; |
$GLOBAL_SYS_NAME .= " [mysql]"; |
52 |
} else { |
} else { |