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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (hide annotations)
Fri Mar 5 22:38:33 2004 UTC (20 years, 2 months ago) by dpavlin
Original Path: branches/pear-db/global_vars.php
File size: 1421 byte(s)
initial changes to support PEAR::DB. Mostly broken, can it can select.

1 dpavlin 29 <?php
2     /*
3     Following are global scope parameters for the LibData system.
4    
5     File name: global_vars.php
6     Institution: University of Minnesota
7     Last Modified: January 28, 2003
8     Modified By: Paul F. Bramscher <brams006@umn.edu>
9     */
10    
11     // General globals
12 dpavlin 50 $GLOBAL_SYS_NAME = "LibData (v1.04-pear-db)";
13 dpavlin 42 $GLOBAL_ADMIN_NAME = "Dobrica Pavlinusic";
14     $GLOBAL_ADMIN_EMAIL = "dpavlin@mjesec.ffzg.hr";
15 dpavlin 29
16     $host = $_SERVER["HTTP_HOST"];
17    
18     // URL path information
19     $GLOBAL_RQS_URL = "http://$host/";
20     $GLOBAL_SCRIBE_URL = "http://$host/";
21     $GLOBAL_PUBLIC_URL = "http://$host/";
22     $GLOBAL_ADMIN_URL = "http://$host/admin/";
23     $GLOBAL_AUTH_URL = "http://$host/admin/login.phtml";
24     $GLOBAL_NO_ACCESS = "no_access.phtml";
25    
26     // Admininistrative include directory
27     $GLOBAL_ADMIN_INC = "include/";
28    
29     // Header/footer/CSS
30     $GLOBAL_ADMIN_CSS = "include/libdata.css";
31     $GLOBAL_ADMIN_HEADER = "include/libdata_header.phtml";
32     $GLOBAL_ADMIN_FOOTER = "include/libdata_footer.phtml";
33    
34     // Debugging PHP
35     // ini_set("error_reporting", E_ALL);
36     // ini_set("display_errors", "1");
37    
38 dpavlin 42 if (stristr($host, 'pg')) {
39     include_once("xx_pgsql.php");
40     $GLOBAL_SYS_NAME .= " [pgsql]";
41 dpavlin 50 } elseif (stristr($host, 'my')) {
42 dpavlin 42 include_once("xx_mysql.php");
43     $GLOBAL_SYS_NAME .= " [mysql]";
44 dpavlin 50 } else {
45     include_once("xx_pear_db.php");
46     $GLOBAL_SYS_NAME .= " [pear-db]";
47 dpavlin 42 }
48    
49 dpavlin 29 ?>

  ViewVC Help
Powered by ViewVC 1.1.26