[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm lonsyllabus.pm doc/loncapafiles loncapafiles.lpml

www lon-capa-cvs@mail.lon-capa.org
Tue, 27 Aug 2002 12:48:47 -0000


www		Tue Aug 27 08:48:47 2002 EDT

  Added files:                 
    /loncom/interface	lonaboutme.pm lonsyllabus.pm 

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
  Log:
  ... *sigh* ... the things you do ...
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.166 doc/loncapafiles/loncapafiles.lpml:1.167
--- doc/loncapafiles/loncapafiles.lpml:1.166	Mon Aug 26 08:47:28 2002
+++ doc/loncapafiles/loncapafiles.lpml	Tue Aug 27 08:48:46 2002
@@ -3,7 +3,7 @@
 <!-- loncapafiles.lpml -->
 <!-- Scott Harrison -->
 
-<!-- $Id: loncapafiles.lpml,v 1.166 2002/08/26 12:47:28 www Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.167 2002/08/27 12:48:46 www Exp $ -->
 
 <!--
 
@@ -1355,6 +1355,24 @@
 <categoryname>handler</categoryname>
 <description>
 Handler to put up announcements and calendar
+</description>
+<status>works/unverified</status>
+</file>
+<file>
+<source>loncom/interface/lonsyllabus.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lonsyllabus.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to put up syllabus
+</description>
+<status>works/unverified</status>
+</file>
+<file>
+<source>loncom/interface/lonaboutme.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lonaboutme.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to put up personal info
 </description>
 <status>works/unverified</status>
 </file>

Index: loncom/interface/lonaboutme.pm
+++ loncom/interface/lonaboutme.pm
# The LearningOnline Network
# About a Person
#
# $Id: lonaboutme.pm,v 1.1 2002/08/27 12:48:46 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
#
# LON-CAPA is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LON-CAPA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LON-CAPA; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# /home/httpd/html/adm/gpl.txt
#
# http://www.lon-capa.org/
#

package Apache::lonaboutme;

use strict;
use Apache::Constants qw(:common);
use Apache::loncommon;
use Apache::lonnet;

sub handler {
    my $r = shift;
    $r->content_type('text/html');
    $r->send_http_header;
    return OK if $r->header_only;


# ------------------------------------------------------------ Print the screen
    $r->print(<<ENDDOCUMENT);
<html>
<head>
<title>The LearningOnline Network with CAPA</title>
</head>
ENDDOCUMENT
    $r->print(&Apache::loncommon::bodytag("Personal Information"));
# does this user have privileges to post, etc?
    my $allowed=0;
    if ($ENV{'request.course.id'}) {
       $allowed=&Apache::lonnet::allowed('srm',$ENV{'request.course.id'});
    }

    $r->print('</body></html>');
    return OK;
} 

1;
__END__

Index: loncom/interface/lonsyllabus.pm
+++ loncom/interface/lonsyllabus.pm
# The LearningOnline Network
# Syllabus
#
# $Id: lonsyllabus.pm,v 1.1 2002/08/27 12:48:46 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
#
# LON-CAPA is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LON-CAPA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LON-CAPA; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# /home/httpd/html/adm/gpl.txt
#
# http://www.lon-capa.org/
#

package Apache::lonsyllabus;

use strict;
use Apache::Constants qw(:common);
use Apache::loncommon;
use Apache::lonnet;

sub handler {
    my $r = shift;
    $r->content_type('text/html');
    $r->send_http_header;
    return OK if $r->header_only;


# ------------------------------------------------------------ Print the screen
    $r->print(<<ENDDOCUMENT);
<html>
<head>
<title>The LearningOnline Network with CAPA</title>
</head>
ENDDOCUMENT
    $r->print(&Apache::loncommon::bodytag("Syllabus"));
# does this user have privileges to post, etc?
    my $allowed=0;
    if ($ENV{'request.course.id'}) {
       $allowed=&Apache::lonnet::allowed('srm',$ENV{'request.course.id'});
    }

    $r->print('</body></html>');
    return OK;
} 

1;
__END__