/[libdata]/branches/pear-db/include/global_vars.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/pear-db/include/global_vars.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 76 by dpavlin, Thu Mar 18 21:47:40 2004 UTC revision 77 by dpavlin, Thu Mar 18 22:20:55 2004 UTC
# Line 20  $path = "/"; Line 20  $path = "/";
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
# Line 43  $GLOBAL_ADMIN_FOOTER           = "include/libdata Line 43  $GLOBAL_ADMIN_FOOTER           = "include/libdata
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 {

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.26