--- loncom/publisher/londiff.pm 2001/05/02 23:00:05 1.3
+++ loncom/publisher/londiff.pm 2001/05/03 11:04:07 1.4
@@ -71,18 +71,22 @@ sub handler {
$f1[$#f1+1]=$line;
}
}
+ $r->print('
Construction Space Version
');
} else {
my $fn=
'/home/httpd/html//res/'.$ENV{'user.domain'}.'/'.$ENV{'user.name'}.'/';
if ($ENV{'form.versionone'}) {
my ($main,$suffix)=($ENV{'form.filename'}=~/^(.+)\.(\w+)$/);
$fn.=$main.'.'.$ENV{'form.versionone'}.'.'.$suffix;
+ $r->print('Version '.$ENV{'form.versionone'}.'
');
} else {
$fn.=$ENV{'form.filename'};
+ $r->print('Current Version
');
}
@f1=split(/\n/,&Apache::lonnet::getfile($fn));
}
+ $r->print('versus');
if ($ENV{'form.versiontwo'} eq 'priv') {
my $fn='/home/'.$ENV{'user.name'}.'/public_html/'.$ENV{'form.filename'};
@@ -94,14 +98,17 @@ sub handler {
$f2[$#f2+1]=$line;
}
}
+ $r->print('Construction Space Version
');
} else {
my $fn=
'/home/httpd/html/res/'.$ENV{'user.domain'}.'/'.$ENV{'user.name'}.'/';
if ($ENV{'form.versiontwo'}) {
my ($main,$suffix)=($ENV{'form.filename'}=~/^(.+)\.(\w+)$/);
$fn.=$main.'.'.$ENV{'form.versiontwo'}.'.'.$suffix;
+ $r->print('Version '.$ENV{'form.versiontwo'}.'
');
} else {
$fn.=$ENV{'form.filename'};
+ $r->print('Current Version
');
}
@f2=split(/\n/,&Apache::lonnet::getfile($fn));
}