Diff for /loncom/publisher/Attic/lonconstruct.pm between versions 1.15 and 1.21

version 1.15, 2003/10/18 17:17:12 version 1.21, 2003/12/10 00:32:56
Line 45  use Apache::lonnet; Line 45  use Apache::lonnet;
 use Apache::Log ();  use Apache::Log ();
 use HTML::Entities();  use HTML::Entities();
   
 my $DEBUG = 1;  my $DEBUG = 0;
 =pod  =pod
   
 =item Debug($request, $message)  =item Debug($request, $message)
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);
Line 120  sub handler { Line 119  sub handler {
    if ($ENV{'form.forceColoredit'}) {     if ($ENV{'form.forceColoredit'}) {
        $lowerframe.='?editmode=Edit&problemmode=Edit';         $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(<<ENDPAGE);     $r->print(<<ENDPAGE);
 <html>  <html>
 <head><title>LON-CAPA Construction Space</title>  <head><title>LON-CAPA Construction Space</title>
Line 133  var lastknownpriv="$lowerframe"; Line 127  var lastknownpriv="$lowerframe";
 </script>  </script>
 </head>  </head>
 <frameset rows="110,*" border="0">  <frameset rows="110,*" border="0">
 <frame src='/adm/publisher.html'>  <frame src='/adm/localize/adm/publisher.html'>
 <frame src="$lowerframe" name="LONCAPAToBePublished">  <frame src="$lowerframe" name="LONCAPAToBePublished">
 </frameset>  </frameset>
 </html>  </html>

Removed from v.1.15  
changed lines
  Added in v.1.21


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