/[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

branches/pear-db/global_vars.php revision 47 by dpavlin, Fri Mar 5 13:42:57 2004 UTC branches/pear-db/include/global_vars.php revision 62 by dpavlin, Sat Mar 6 19:26:11 2004 UTC
# Line 9  Modified By: Paul F. Bramscher <brams006 Line 9  Modified By: Paul F. Bramscher <brams006
9  */  */
10    
11  // General globals  // General globals
12  $GLOBAL_SYS_NAME                = "LibData (v1.04-xx)";  $GLOBAL_SYS_NAME                = "LibData (v1.04-pear-db)";
13  $GLOBAL_ADMIN_NAME              = "Dobrica Pavlinusic";  $GLOBAL_ADMIN_NAME              = "Dobrica Pavlinusic";
14  $GLOBAL_ADMIN_EMAIL             = "dpavlin@mjesec.ffzg.hr";  $GLOBAL_ADMIN_EMAIL             = "dpavlin@mjesec.ffzg.hr";
15    
16  $host = $_SERVER["HTTP_HOST"];  $host = $_SERVER["HTTP_HOST"];
17    $path = "/";
18    
19    # if host name is not libdata, we will automatically
20    # assume that it's alias installation (see etc/httpd-alias.conf)
21    # with url http://host/libdata-dev/
22    if (! stristr($host, "libdata")) {
23            $path = "/libdata-dev/";
24    }
25    
26  // URL path information  // URL path information
27  $GLOBAL_RQS_URL                 = "http://$host/";  $GLOBAL_RQS_URL                 = "http://".$host.$path;
28  $GLOBAL_SCRIBE_URL              = "http://$host/";  $GLOBAL_SCRIBE_URL              = "http://".$host.$path;
29  $GLOBAL_PUBLIC_URL              = "http://$host/";  $GLOBAL_PUBLIC_URL              = "http://".$host.$path;
30  $GLOBAL_ADMIN_URL               = "http://$host/admin/";  $GLOBAL_ADMIN_URL               = "http://".$host.$path."admin/";
31  $GLOBAL_AUTH_URL                = "http://$host/admin/login.phtml";  $GLOBAL_AUTH_URL                = "http://".$host.$path."admin/login.phtml";
32  $GLOBAL_NO_ACCESS               = "no_access.phtml";  $GLOBAL_NO_ACCESS               = "no_access.phtml";
33    
34  // Admininistrative include directory  // Admininistrative include directory
# Line 38  $GLOBAL_ADMIN_FOOTER           = "include/libdata Line 46  $GLOBAL_ADMIN_FOOTER           = "include/libdata
46  if (stristr($host, 'pg')) {  if (stristr($host, 'pg')) {
47          include_once("xx_pgsql.php");          include_once("xx_pgsql.php");
48          $GLOBAL_SYS_NAME .= " [pgsql]";          $GLOBAL_SYS_NAME .= " [pgsql]";
49  } else {  } elseif (stristr($host, 'my')) {
50          include_once("xx_mysql.php");          include_once("xx_mysql.php");
51          $GLOBAL_SYS_NAME .= " [mysql]";          $GLOBAL_SYS_NAME .= " [mysql]";
52    } else {
53            include_once("xx_pear_db.php");
54            $GLOBAL_SYS_NAME .= " [pear-db]";
55  }  }
56    
57  ?>  ?>

Legend:
Removed from v.47  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.26