Annotation of loncom/publisher/lonconstruct.pm, revision 1.6

1.1       www         1: # The LearningOnline Network with CAPA
1.6     ! albertel    2: # Construction Space Page Wrapper for Construction
        !             3: #
        !             4: # $Id: gplheader.pl,v 1.1 2001/11/29 18:19:27 www Exp $
        !             5: #
        !             6: # Copyright Michigan State University Board of Trustees
        !             7: #
        !             8: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
        !             9: #
        !            10: # LON-CAPA is free software; you can redistribute it and/or modify
        !            11: # it under the terms of the GNU General Public License as published by
        !            12: # the Free Software Foundation; either version 2 of the License, or
        !            13: # (at your option) any later version.
        !            14: #
        !            15: # LON-CAPA is distributed in the hope that it will be useful,
        !            16: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            18: # GNU General Public License for more details.
        !            19: #
        !            20: # You should have received a copy of the GNU General Public License
        !            21: # along with LON-CAPA; if not, write to the Free Software
        !            22: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
        !            23: #
        !            24: # /home/httpd/html/adm/gpl.txt
        !            25: #
        !            26: # http://www.lon-capa.org/
1.1       www        27: #
                     28: #
                     29: # (Page Handler
                     30: #
                     31: # (TeX Content Handler
                     32: #
                     33: # 05/29/00,05/30 Gerd Kortemeyer)
                     34: # 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23,
                     35: # 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16 Gerd Kortemeyer)
                     36: #
1.3       www        37: # 11/22,11/23,11/28,
                     38: # 03/30/01 Gerd Kortemeyer
1.1       www        39: 
                     40: package Apache::lonconstruct;
                     41: 
                     42: use strict;
                     43: use Apache::Constants qw(:common :http);
                     44: 
                     45: # ================================================================ Main Handler
                     46: 
                     47: sub handler {
                     48:    my $r=shift;
                     49: 
                     50: # -------------------------------------------------------------- Build frameset
                     51: 
                     52:    $r->content_type('text/html');
                     53:    $r->send_http_header;
                     54:    return OK if $r->header_only;
                     55: 
                     56:    my $lowerframe=$r->path_info;
                     57:    $lowerframe=~s/^\//\/\~/;
                     58: 
                     59:    $r->print(<<ENDPAGE);
                     60: <html>
                     61: <head><title>LON-CAPA Construction Space</title></head>
1.5       ng         62: <frameset rows="110,*">
1.2       www        63: <frame src='/adm/publisher.html'>
                     64: <frame src='$lowerframe' name="LONCAPAToBePublished">
1.1       www        65: </frameset>
                     66: </html>
                     67: ENDPAGE
                     68:    return OK;
                     69: }
                     70: 1;
                     71: __END__
                     72: 

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