version 1.6, 2001/12/04 15:34:57
|
version 1.7, 2001/12/13 14:02:54
|
Line 41
|
Line 41
|
# 03/31,04/03 Gerd Kortemeyer) |
# 03/31,04/03 Gerd Kortemeyer) |
# |
# |
# 05/02/01,05/09 Gerd Kortemeyer |
# 05/02/01,05/09 Gerd Kortemeyer |
|
# 12/13 Scott Harrison |
|
# |
|
### |
|
|
package Apache::londiff; |
package Apache::londiff; |
|
|
Line 50 use File::Copy;
|
Line 53 use File::Copy;
|
use Algorithm::Diff qw(diff); |
use Algorithm::Diff qw(diff); |
use Apache::Constants qw(:common :http :methods); |
use Apache::Constants qw(:common :http :methods); |
use Apache::loncacc; |
use Apache::loncacc; |
|
use Apache::lonnet(); |
|
use Apache::loncommon(); |
|
|
sub handler { |
sub handler { |
|
|
Line 57 sub handler {
|
Line 62 sub handler {
|
|
|
# Get query string for limited number of parameters |
# Get query string for limited number of parameters |
|
|
map { |
foreach (split(/&/,$ENV{'QUERY_STRING'})) { |
my ($name, $value) = split(/=/,$_); |
my ($name, $value) = split(/=/,$_); |
$value =~ tr/+/ /; |
$value =~ tr/+/ /; |
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; |
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; |
Line 67 sub handler {
|
Line 72 sub handler {
|
$ENV{'form.'.$name}=$value; |
$ENV{'form.'.$name}=$value; |
} |
} |
} |
} |
} (split(/&/,$ENV{'QUERY_STRING'})); |
} |
|
|
# Get the files |
# Get the files |
|
|
Line 107 sub handler {
|
Line 112 sub handler {
|
} |
} |
|
|
|
|
if (&Apache::lonnet::fileembstyle(($efn=~/\.(\w+)$/)) eq |
if (&Apache::loncommon::fileembstyle(($efn=~/\.(\w+)$/)) eq |
'ssi') { |
'ssi') { |
if ($ENV{'form.versionone'} eq 'priv') { |
if ($ENV{'form.versionone'} eq 'priv') { |
my $fn='/home/'.$cuname.'/public_html/'.$efn; |
my $fn='/home/'.$cuname.'/public_html/'.$efn; |