Diff for /loncom/publisher/Attic/lonconstruct.pm between versions 1.7 and 1.19

version 1.7, 2002/08/24 03:56:58 version 1.19, 2003/11/18 04:08:15
Line 43  use strict; Line 43  use strict;
 use Apache::Constants qw(:common :http :methods);  use Apache::Constants qw(:common :http :methods);
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::Log ();  use Apache::Log ();
   use HTML::Entities();
   
 my $DEBUG = 0;  my $DEBUG = 0;
 =pod  =pod
Line 99  sub handler { Line 99  sub handler {
    return OK if $r->header_only;     return OK if $r->header_only;
   
    my $lowerframe=$r->path_info;     my $lowerframe=$r->path_info;
   
    &Debug($r, "Initial URL for lower frame: ".$lowerframe);     &Debug($r, "Initial URL for lower frame: ".$lowerframe);
    $lowerframe=~s/^\//\/\~/;     $lowerframe=~s/^\//\/\~/;
    &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe);     &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe);
    $lowerframe=~s/\"/&quot\;/g;     $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'}) {
    &Apache::lonnet::appenv('cgi.path' => $r->path_info);
    $lowerframe="http://$ENV{SERVER_NAME}/cgi-bin/decompress.pl";
   
      }
    $r->print(<<ENDPAGE);     $r->print(<<ENDPAGE);
 <html>  <html>
 <head><title>LON-CAPA Construction Space</title></head>  <head><title>LON-CAPA Construction Space</title>
 <frameset rows="110,*">  <script language="JavaScript">
   var lastknownpriv="$lowerframe";
   </script>
   </head>
   <frameset rows="110,*" border="0">
 <frame src='/adm/publisher.html'>  <frame src='/adm/publisher.html'>
 <frame src="$lowerframe" name="LONCAPAToBePublished">  <frame src="$lowerframe" name="LONCAPAToBePublished">
 </frameset>  </frameset>

Removed from v.1.7  
changed lines
  Added in v.1.19


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>