--- loncom/publisher/loncfile.pm 2003/02/04 21:54:17 1.22 +++ loncom/publisher/loncfile.pm 2003/02/04 22:01:38 1.23 @@ -10,7 +10,7 @@ # # -# $Id: loncfile.pm,v 1.22 2003/02/04 21:54:17 albertel Exp $ +# $Id: loncfile.pm,v 1.23 2003/02/04 22:01:38 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -336,10 +336,10 @@ sub exists { return 'Error: destination for operation is a directory.'; } if ( -e $published) { - $result.='
Warning: target file exists, and has been published!
'; + $result.='Warning: target file exists, and has been published!
'; } elsif ( -e $construct) { - $result.='Warning: target file exists!
'; + $result.='Warning: target file exists!
'; } return $result; @@ -384,7 +384,7 @@ sub checksuffix { if ($old=~m:(.*)/+([^/]+)\.(\w+)$:) { $oldsuffix=$3; } if ($oldsuffix ne $newsuffix) { $result.= - 'Warning: change of MIME type!
'; + 'Warning: change of MIME type!
'; } return $result; } @@ -411,9 +411,9 @@ sub CloseForm1 { &Debug($request, "Cancel url is: ".$cancelurl); - $request->print(''); + $request->print(''); $request->print(''); + '" method="GET">'); } @@ -445,7 +445,7 @@ Parameters: sub CloseForm2 { my ($request, $user, $directory) = @_; - $request->print('Rename '.$filename.'
to '.
+ '" />
Rename '.$filename.
+ '
to '.
$dest.'?
Delete '.$filename.'?
'); &CloseForm1($request, $cancelurl); } else { @@ -606,9 +607,9 @@ sub Copy1 { return; } my $dest=&SimplifyDir($dir,$newfilename); - $request->print('Copy '.$filename.'
to '.
+ '" />
Copy '.$filename.'
to '.
''.$dest.'?
Directory exists.
'); } else { - $request->print('Make new directory '. + $request->print('
Make new directory '. $path."/".$newdir.'?
'); &CloseForm1($request, $cancelurl); @@ -821,10 +822,10 @@ sub phaseone { # my $conspace=ConstructionPathFromRelative($uname, $fn); - $r->print('print('No such file.
print(' copy Error: '.$!.''); + $request->print(' copy Error: '.$!.''); return 0; } else { unless (chmod(0660, $newfile)) { - $request->print(' chmod error: '.$!.''); + $request->print(' chmod error: '.$!.''); return 0; } return 1; @@ -1033,11 +1034,11 @@ sub NewDir2 { my ($request, $user, $newdirectory) = @_; unless(mkdir($newdirectory, 02770)) { - $request->print('Error: '.$!.''); + $request->print('Error: '.$!.''); return 0; } unless(chmod(02770, ($newdirectory))) { - $request->print(' Error: '.$!.''); + $request->print(' Error: '.$!.''); return 0; } return 1; @@ -1130,7 +1131,7 @@ sub phasetwo { $dest = $ENV{'form.newfilename'}; } else { - $r->print('No New filename specified'); + $r->print('
No New filename specified
'); return; } @@ -1227,13 +1228,13 @@ sub handler { $r->print('Unknown Action'); + $r->print('
Unknown Action