Annotation of loncom/publisher/lonpublisher.pm, revision 1.1

1.1     ! www         1: # The LearningOnline Network with CAPA
        !             2: # Publication Handler
        !             3: # 
        !             4: # (TeX Content Handler
        !             5: #
        !             6: # 05/29/00,05/30,10/11 Gerd Kortemeyer)
        !             7: #
        !             8: # 11/28 Gerd Kortemeyer
        !             9: 
        !            10: package Apache::lonpublisher;
        !            11: 
        !            12: use strict;
        !            13: use Apache::File;
        !            14: use Apache::Constants qw(:common);
        !            15: 
        !            16: # ================================================================ Main Handler
        !            17: 
        !            18: sub handler {
        !            19:   my $r=shift;
        !            20:   $r->content_type('text/html');
        !            21:   $r->send_http_header;
        !            22: 
        !            23:   return OK if $r->header_only;
        !            24: 
        !            25:   $r->print('<html><head><title>LON-CAPA Publishing</title></head>');
        !            26:   $r->print('<body bgcolor="#FFFFFF">');
        !            27:   $r->print('<h1>'.$ENV{'form.filename'}.'</h1>');
        !            28:   $r->print('</body></html>');
        !            29: 
        !            30:   return OK;
        !            31: }
        !            32: 
        !            33: 1;
        !            34: __END__
        !            35: 
        !            36: 
        !            37: 
        !            38: 
        !            39: 
        !            40: 
        !            41: 

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