23 |
error_reporting(E_ALL) ; // how verbose ? |
error_reporting(E_ALL) ; // how verbose ? |
24 |
|
|
25 |
// from where to include auth_*.php modules? |
// from where to include auth_*.php modules? |
26 |
$gblIncDir = "/data/docman2"; |
// this is defined in global configuration file /etc/docman.conf |
27 |
|
//$gblIncDir = "/data/docman2"; |
28 |
|
|
29 |
// force download on view (so it won't open in associated application) |
// force download on view (so it won't open in associated application) |
30 |
$gblForceDownload = 0; |
$gblForceDownload = 0; |
75 |
////////////////////////////////////////////////////////////////// |
////////////////////////////////////////////////////////////////// |
76 |
|
|
77 |
$gblTitle = "Document Manager"; |
$gblTitle = "Document Manager"; |
78 |
$gblVersion = "2.0-pre3"; |
$gblVersion = "2.0-pre4"; |
79 |
|
|
80 |
$secHash = ""; |
$secHash = ""; |
81 |
|
|
|
// location of html files |
|
|
$html = $gblIncDir."/html"; |
|
|
|
|
82 |
// load language |
// load language |
83 |
if (isset($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"])) { |
if (isset($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"])) { |
84 |
LoadLanguage($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]); |
LoadLanguage($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]); |
121 |
$self = $HTTP_SERVER_VARS["PHP_SELF"] ; |
$self = $HTTP_SERVER_VARS["PHP_SELF"] ; |
122 |
|
|
123 |
if (file_exists("$fsDocumentRoot/docman.css")) { |
if (file_exists("$fsDocumentRoot/docman.css")) { |
124 |
$css=dirname($self)."/docman.css"; |
$css = ""; |
125 |
|
$d = dirname($self); |
126 |
|
if ($d != "/") $css = $d; |
127 |
|
$css .= "/docman.css"; |
128 |
} else { |
} else { |
129 |
$css=$self."?STYLE=get"; |
$css=$self."?STYLE=get"; |
130 |
} |
} |
|
|
|
131 |
include("$html/head.html"); |
include("$html/head.html"); |
132 |
} |
} |
133 |
|
|
1588 |
$docman_conf = "/etc/docman.conf"; |
$docman_conf = "/etc/docman.conf"; |
1589 |
if (! file_exists($docman_conf)) { |
if (! file_exists($docman_conf)) { |
1590 |
$error = "Can't find master configuration file <tt>$docman_conf</tt>. See <tt>docman2/doc/upgrade.html#docman_conf</tt> for more informations"; |
$error = "Can't find master configuration file <tt>$docman_conf</tt>. See <tt>docman2/doc/upgrade.html#docman_conf</tt> for more informations"; |
1591 |
|
|
1592 |
error_log("docman: $error"); |
error_log("docman: $error"); |
1593 |
Error("docman not installed completly",$error); |
Error("docman not installed completly",$error); |
1594 |
} |
} |
1595 |
include($docman_conf); |
include($docman_conf); |
1596 |
|
|
1597 |
|
// location of html files |
1598 |
|
$html = $gblIncDir."/html"; |
1599 |
|
|
1600 |
|
// set fsRealmDir |
1601 |
if (! isset($fsRealmDir)) { |
if (! isset($fsRealmDir)) { |
1602 |
$fsRealmDir = "$gblIncDir/realm"; |
$fsRealmDir = "$gblIncDir/realm"; |
1603 |
} |
} |