--- loncom/publisher/Attic/lonconstruct.pm 2003/11/18 04:08:15 1.19 +++ loncom/publisher/Attic/lonconstruct.pm 2004/10/29 20:44:30 1.24 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.19 2003/11/18 04:08:15 taceyjo1 Exp $ +# $Id: lonconstruct.pm,v 1.24 2004/10/29 20:44:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -85,8 +85,6 @@ sub Debug { } - - # ================================================================ Main Handler sub handler { @@ -102,7 +100,7 @@ sub handler { &Debug($r, "Initial URL for lower frame: ".$lowerframe); $lowerframe=~s/^\//\/\~/; &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe); - $lowerframe= &HTML::Entities::encode($lowerframe); + $lowerframe= &HTML::Entities::encode($lowerframe,'<>&"'); &Debug($r, "Lower frame URL after quote subst: ".$lowerframe); # @@ -119,12 +117,15 @@ sub handler { if ($ENV{'form.forceColoredit'}) { $lowerframe.='?editmode=Edit&problemmode=Edit'; } - &Apache::loncommon::get_unprocessed_cgi - ($ENV{'QUERY_STRING'},['decompress']); - if ($ENV{'form.decompress'}) { - &Apache::lonnet::appenv('cgi.path' => $r->path_info); - $lowerframe="http://$ENV{SERVER_NAME}/cgi-bin/decompress.pl"; - + +# +# Checking to see if we should display the topframe +# + my $toprows = 0; + my $topsrc = ''; + if ($ENV{'environment.remote'} eq 'on') { + $toprows = '110'; + $topsrc = '/adm/localize/adm/publisher.html'; } $r->print(< @@ -133,8 +134,8 @@ sub handler { var lastknownpriv="$lowerframe"; - - + +