--- 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('

Done

'); + $request->print('

Done

'); } =pod @@ -503,9 +503,10 @@ sub Rename1 { return; } my $dest=&SimplifyDir($dir,$newfilename); - $request->print('

Rename '.$filename.'
to '. + '" />

Rename '.$filename. + '
to '. $dest.'?

'); &CloseForm1($request, $cancelurl); } else { @@ -551,8 +552,8 @@ sub Delete1 { if( -e $filename) { - $request->print(''); + $request->print(''); $request->print('

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.'?

'); &CloseForm1($request, $cancelurl); } else { @@ -696,8 +697,8 @@ sub NewDir1 $request->print('

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('
'. - ''. - ''. - ''); + $r->print(''. + ''. + ''. + ''); if ($ENV{'form.action'} eq 'rename') { @@ -905,7 +906,7 @@ sub Rename2 { if(-e $oldfile) { unless(rename($oldfile, $directory.'/'.$newfile)) { - $request->print('Error: '.$!.''); + $request->print('Error: '.$!.''); return 0; } else {} } else { @@ -949,11 +950,11 @@ sub Delete2 { if(-e $filename) { unless(unlink($filename)) { - $request->print('Error: '.$!.''); + $request->print('Error: '.$!.''); return 0; } } else { - $request->print('

No such file. 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('LON-CAPA Construction Space'); $r->print( - ''); + ''); $r->print('

Construction Space '.$fn.'

'); if (($uname ne $ENV{'user.name'}) || ($udom ne $ENV{'user.domain'})) { - $r->print('

Co-Author: '.$uname.' at '.$udom. + $r->print('

Co-Author: '.$uname.' at '.$udom. '

'); } @@ -1253,7 +1254,7 @@ sub handler { $ENV{'form.action'} eq 'newproblemfile') { $r->print('

New Resource

'); } else { - $r->print('

Unknown Action'); + $r->print('

Unknown Action

'); return OK; } if ($ENV{'form.phase'} eq 'two') {