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-pear-db)"; |
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 |
} elseif (stristr($host, 'my')) { |
42 |
include_once("xx_mysql.php"); |
43 |
$GLOBAL_SYS_NAME .= " [mysql]"; |
44 |
} else { |
45 |
include_once("xx_pear_db.php"); |
46 |
$GLOBAL_SYS_NAME .= " [pear-db]"; |
47 |
} |
48 |
|
49 |
?> |