701 |
CELLSPACING=3 WIDTH=\"100%\">" ; |
CELLSPACING=3 WIDTH=\"100%\">" ; |
702 |
|
|
703 |
// updir bar |
// updir bar |
704 |
if ($fsDir != $fsRoot) { |
if (chopsl($fsDir) != chopsl($fsRoot)) { |
705 |
$parent = dirname($relDir) ; |
$parent = dirname($relDir) ; |
706 |
if ($parent == "") $parent = "/" ; |
if ($parent == "") $parent = "/" ; |
707 |
?> |
?> |
1205 |
|
|
1206 |
////////////////////////////////////////////////////////////////// |
////////////////////////////////////////////////////////////////// |
1207 |
|
|
1208 |
|
function chopsl($path) { |
1209 |
|
if (substr($path,strlen($path)-1,1) == "/") $path=substr($path,0,strlen($path)-1); |
1210 |
|
$path=str_replace("//","/",$path); |
1211 |
|
return $path; |
1212 |
|
} |
1213 |
|
|
1214 |
|
////////////////////////////////////////////////////////////////// |
1215 |
// MAIN PROGRAM |
// MAIN PROGRAM |
1216 |
// ============ |
// ============ |
1217 |
// query parameters: capital letters |
// query parameters: capital letters |
1469 |
// $A=Co : checkout file $D/$F |
// $A=Co : checkout file $D/$F |
1470 |
// $A=Ci : checkin file $D/$F |
// $A=Ci : checkin file $D/$F |
1471 |
// $A=V : view file (do nothing except log) |
// $A=V : view file (do nothing except log) |
1472 |
|
// $A=I : include file .$F.php from $gblFsRoot |
1473 |
// default : display directory $D |
// default : display directory $D |
1474 |
|
|
1475 |
switch ($A) { |
switch ($A) { |
1529 |
DisplayChangeLog(1); |
DisplayChangeLog(1); |
1530 |
EndHTML() ; |
EndHTML() ; |
1531 |
exit; |
exit; |
1532 |
|
case "I" : |
1533 |
|
$F=stripSlashes($F); |
1534 |
|
$inc_file="${gblFsRoot}/.${F}.php"; |
1535 |
|
if (!isset($F) || $F == "" || !file_exists($inc_file)) Error("Fatal error $inc_file"); // can't find file to include |
1536 |
|
if (!is_readable($inc_file)) |
1537 |
|
Error("Read access to include file denied",".${F}.php"); |
1538 |
|
$text = "Your include file should define \$text variable which holds this text and \$title variable which is page title"; |
1539 |
|
$title = "You should define \$title variable with page title"; |
1540 |
|
include($inc_file); |
1541 |
|
StartHTML($title, $text) ; |
1542 |
|
print "<p>".GifIcon(up)." Back to <a href=$GLOBALS[PHP_SELF]>front page</a>.</p>"; |
1543 |
|
EndHTML() ; |
1544 |
|
exit ; |
1545 |
} |
} |
1546 |
|
|
1547 |
// default: display directory $relDir |
// default: display directory $relDir |