118 |
if (file_exists("$fsDocumentRoot/docman.css")) { |
if (file_exists("$fsDocumentRoot/docman.css")) { |
119 |
$css=dirname($self)."/docman.css"; |
$css=dirname($self)."/docman.css"; |
120 |
} else { |
} else { |
121 |
$css=$self."?STYLE=get&css=$css"; |
$css=$self."?STYLE=get"; |
122 |
} |
} |
123 |
|
|
124 |
include("$html/head.html"); |
include("$html/head.html"); |
571 |
function Navigate($fsRoot,$relDir) { |
function Navigate($fsRoot,$relDir) { |
572 |
|
|
573 |
global $gblEditable, $gblIcon, $gblModDays, $webRoot, $gblHide, |
global $gblEditable, $gblIcon, $gblModDays, $webRoot, $gblHide, |
574 |
$gblIgnoreUnknownFileType, |
$gblIgnoreUnknownFileType, $gblRepositoryDir, |
575 |
$HTTP_GET_VARS, $html, $realm_config; |
$HTTP_GET_VARS, $html, $realm_config; |
576 |
|
|
577 |
$self = $HTTP_SERVER_VARS["PHP_SELF"] ; |
$self = $HTTP_SERVER_VARS["PHP_SELF"] ; |
859 |
<TR><TD></TD><TD COLSPAN=5><HR></TD></TR> |
<TR><TD></TD><TD COLSPAN=5><HR></TD></TR> |
860 |
|
|
861 |
<? |
<? |
862 |
if (file_exists(".info.inc")) { |
|
863 |
|
if (file_exists("$gblRepositoryDir/.info.inc")) { |
864 |
print "<TR><TD></TD><TD COLSPAN=5>"; |
print "<TR><TD></TD><TD COLSPAN=5>"; |
865 |
include(".info.inc"); |
include("$gblRepositoryDir/.info.inc"); |
866 |
print "</TD></TR> |
print "</TD></TR><TR><TD></TD><TD COLSPAN=5><HR></TD></TR>"; |
|
<TR><TD></TD><TD COLSPAN=5><HR></TD></TR>"; |
|
867 |
} |
} |
868 |
|
|
869 |
?> |
?> |
870 |
|
|
871 |
<FORM METHOD="POST" ACTION="<?= $self ?>"> |
<FORM METHOD="POST" ACTION="<?= $self ?>"> |
1475 |
$gblFilePerms = 0640 ; // default for new files |
$gblFilePerms = 0640 ; // default for new files |
1476 |
$gblDirPerms = 0750 ; // default for new dirs |
$gblDirPerms = 0750 ; // default for new dirs |
1477 |
|
|
1478 |
|
$STYLE = $HTTP_GET_VARS[STYLE]; |
1479 |
if (isset($STYLE) && $STYLE == "get") { |
if (isset($STYLE) && $STYLE == "get") { |
1480 |
include("$html/docman.css"); |
include("$html/docman.css"); |
1481 |
exit; |
exit; |
1622 |
if (strstr($FILENAME,"/")) |
if (strstr($FILENAME,"/")) |
1623 |
Error("Upload error","Non-conforming filename. Filename <tt>$FILENAME</tt> has slashes (<tt>/</tt>) in it.") ; |
Error("Upload error","Non-conforming filename. Filename <tt>$FILENAME</tt> has slashes (<tt>/</tt>) in it.") ; |
1624 |
if (! isset($FILENAME)) { // from update file |
if (! isset($FILENAME)) { // from update file |
1625 |
$target = "$fsDir/".basename($FN_name); |
$target = "$fsDir/".basename($FN); |
1626 |
} else { |
} else { |
1627 |
$target = "$fsDir/$FILENAME"; |
$target = "$fsDir/$FILENAME"; |
1628 |
} |
} |