/[libdata]/trunk/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

Contents of /trunk/include/global_vars.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Fri Mar 5 13:42:57 2004 UTC (20 years ago) by dpavlin
Original Path: branches/pear-db/global_vars.php
File size: 1314 byte(s)
branch to begin migration to Pear::DB

1 <?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 $GLOBAL_SYS_NAME = "LibData (v1.04-xx)";
13 $GLOBAL_ADMIN_NAME = "Dobrica Pavlinusic";
14 $GLOBAL_ADMIN_EMAIL = "dpavlin@mjesec.ffzg.hr";
15
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 if (stristr($host, 'pg')) {
39 include_once("xx_pgsql.php");
40 $GLOBAL_SYS_NAME .= " [pgsql]";
41 } else {
42 include_once("xx_mysql.php");
43 $GLOBAL_SYS_NAME .= " [mysql]";
44 }
45
46 ?>

  ViewVC Help
Powered by ViewVC 1.1.26