1008 |
$file=basename($target); |
$file=basename($target); |
1009 |
|
|
1010 |
$note=fopen("$dir/.note/$file","w"); |
$note=fopen("$dir/.note/$file","w"); |
1011 |
|
if (! $note) { |
1012 |
|
Error("Error writing note","Can't open note file <tt>$dir/.note/$file</tt> for writing",1); |
1013 |
|
} |
1014 |
fputs($note,"$msg\n"); |
fputs($note,"$msg\n"); |
1015 |
fclose($note); |
fclose($note); |
1016 |
|
|
1928 |
safe_rename($fsDir,$FN,$NEWNAME); |
safe_rename($fsDir,$FN,$NEWNAME); |
1929 |
break ; |
break ; |
1930 |
|
|
1931 |
case "NOTE" : |
case "NOTE" : |
1932 |
$NOTE=stripSlashes($HTTP_POST_VARS["NOTE"]); |
if (! HTTP_POST_VAR("NOTE")) |
1933 |
WriteNote("$fsDir/$FN","$NOTE"); |
Error("Can't add note to object","Can't find var <tt>\$NOTE</tt>",1); |
1934 |
|
if (! check_perm("$relDir/$FN", trperm_w)) |
1935 |
|
Error("Access denied","User <tt>$gblLogin</tt> tried to add note to <tt>$relDir/$FN</tt> without valid trustee.",1); |
1936 |
|
|
1937 |
|
WriteNote("$fsDir/$FN",$NOTE); |
1938 |
break ; |
break ; |
1939 |
|
|
1940 |
case "UNLOCK" : |
case "UNLOCK" : |
1952 |
header("Location: ".$tstr) ; |
header("Location: ".$tstr) ; |
1953 |
exit ; |
exit ; |
1954 |
} |
} |
1955 |
|
|
1956 |
// check for mode.. navigate, code display, upload, or detail? |
// check for mode.. navigate, code display, upload, or detail? |
1957 |
// $A=U : upload to path given in $D |
// $A=U : upload to path given in $D |
1958 |
// $A=E : display detail of file $D/$F and edit |
// $A=E : display detail of file $D/$F and edit |