9 |
*/ |
*/ |
10 |
|
|
11 |
// General globals |
// General globals |
12 |
$GLOBAL_SYS_NAME = "LibData (v1.04-pear-db)"; |
$GLOBAL_SYS_NAME = "LibData (v2.0-xx)"; |
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 |