--- loncom/publisher/Attic/lonconstruct.pm 2002/09/10 02:31:26 1.8 +++ loncom/publisher/Attic/lonconstruct.pm 2003/10/18 17:17:12 1.15 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.8 2002/09/10 02:31:26 foxr Exp $ +# $Id: lonconstruct.pm,v 1.15 2003/10/18 17:17:12 taceyjo1 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,7 +45,7 @@ use Apache::lonnet; use Apache::Log (); use HTML::Entities(); -my $DEBUG = 0; +my $DEBUG = 1; =pod =item Debug($request, $message) @@ -104,12 +104,35 @@ sub handler { $lowerframe=~s/^\//\/\~/; &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe); $lowerframe= &HTML::Entities::encode($lowerframe); - &Debug($r, "LOwer frame URL after quote subst: ".$lowerframe); + &Debug($r, "Lower frame URL after quote subst: ".$lowerframe); +# +# Are we forcing edit mode? +# + + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['forceedit']); + if ($ENV{'form.forceedit'}) { + $lowerframe.='?editmode=Edit&problemmode=EditXML'; + } + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['forceColoredit']); + if ($ENV{'form.forceColoredit'}) { + $lowerframe.='?editmode=Edit&problemmode=Edit'; + } + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['decompress']); + if ($ENV{'form.decompress'}) { + $lowerframe='http://$ENV{'SERVER_NAME'}/cgi-bin/decompress.pl?something'; + } $r->print(< -LON-CAPA Construction Space - +LON-CAPA Construction Space + + +