Diff for /loncom/publisher/Attic/lonconstruct.pm between versions 1.26 and 1.29

version 1.26, 2004/12/10 14:57:47 version 1.29, 2005/02/28 08:22:09
Line 92  sub handler { Line 92  sub handler {
   
 # -------------------------------------------------------------- Build frameset  # -------------------------------------------------------------- Build frameset
   
    $r->content_type('text/html');     &Apache::loncommon::content_type($r,'text/html');
    $r->send_http_header;     $r->send_http_header;
    return OK if $r->header_only;     return OK if $r->header_only;
   
    my $lowerframe=$r->path_info;     my $lowerframe=$r->path_info;
    my $type='file';  
    if ($lowerframe =~ /\/$/) {  
        $type = 'dir';  
    }  
    &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 129  sub handler { Line 125  sub handler {
    my $topsrc = '';     my $topsrc = '';
    if ($ENV{'environment.remote'} ne 'off') {     if ($ENV{'environment.remote'} ne 'off') {
        $toprows = '110';         $toprows = '110';
        $topsrc = '/adm/pubmenu?disp='.$type;         $topsrc = '/adm/localize/adm/publisher.html';
    }     }
      my $html=&Apache::lonxml::xmlbegin();
    $r->print(<<ENDPAGE);     $r->print(<<ENDPAGE);
 <html>  $html
 <head><title>LON-CAPA Construction Space</title>  <head><title>LON-CAPA Construction Space</title>
 <script language="JavaScript">  <script type="text/javascript">
 var lastknownpriv="$lowerframe";  var lastknownpriv="$lowerframe";
 </script>  </script>
 </head>  </head>
 <frameset rows="$toprows,*" border="0">  <frameset rows="$toprows,*" border="0">
 <frame src='$topsrc'>  <frame src='$topsrc' />
 <frame src="$lowerframe" name="LONCAPAToBePublished">  <frame src="$lowerframe" name="LONCAPAToBePublished" />
 </frameset>  </frameset>
 </html>  </html>
 ENDPAGE  ENDPAGE

Removed from v.1.26  
changed lines
  Added in v.1.29


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