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