[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf /interface londocs.pm doc/loncapafiles loncapafiles.lpml

www lon-capa-cvs@mail.lon-capa.org
Tue, 10 Sep 2002 19:01:09 -0000


www		Tue Sep 10 15:01:09 2002 EDT

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom	loncapa_apache.conf 
    /loncom/interface	londocs.pm 
  Log:
  Ad hoc bulletin boards and simple pages
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.172 doc/loncapafiles/loncapafiles.lpml:1.173
--- doc/loncapafiles/loncapafiles.lpml:1.172	Tue Sep 10 10:26:13 2002
+++ doc/loncapafiles/loncapafiles.lpml	Tue Sep 10 15:01:09 2002
@@ -3,7 +3,7 @@
 <!-- loncapafiles.lpml -->
 <!-- Scott Harrison -->
 
-<!-- $Id: loncapafiles.lpml,v 1.172 2002/09/10 14:26:13 www Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.173 2002/09/10 19:01:09 www Exp $ -->
 
 <!--
 
@@ -1375,6 +1375,24 @@
 <categoryname>handler</categoryname>
 <description>
 Handler to put up syllabus
+</description>
+<status>works/unverified</status>
+</file>
+<file>
+<source>loncom/interface/lonsimplepage.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lonsimplepage.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to put up simple page
+</description>
+<status>works/unverified</status>
+</file>
+<file>
+<source>loncom/interface/lonbulletin.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lonbulletin.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to put up bulletin board
 </description>
 <status>works/unverified</status>
 </file>
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.18 loncom/loncapa_apache.conf:1.19
--- loncom/loncapa_apache.conf:1.18	Tue Sep 10 10:26:13 2002
+++ loncom/loncapa_apache.conf	Tue Sep 10 15:01:09 2002
@@ -1,7 +1,7 @@
 ##
 ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
 ##
-## $Id: loncapa_apache.conf,v 1.18 2002/09/10 14:26:13 www Exp $
+## $Id: loncapa_apache.conf,v 1.19 2002/09/10 19:01:09 www Exp $
 ##
 ## 1/11/2002 - Scott Harrison
 ## 2/19/2002 - Scott Harrison
@@ -76,6 +76,22 @@
 PerlAccessHandler	Apache::lonacc
 SetHandler              perl-script
 PerlHandler             Apache::lonaboutme
+ErrorDocument     404 /adm/notfound.html
+ErrorDocument	  500 /adm/errorhandler
+</LocationMatch>
+
+<LocationMatch "^/adm/.*/smppg">
+PerlAccessHandler	Apache::lonacc
+SetHandler              perl-script
+PerlHandler             Apache::lonsimplepage
+ErrorDocument     404 /adm/notfound.html
+ErrorDocument	  500 /adm/errorhandler
+</LocationMatch>
+
+<LocationMatch "^/adm/.*/bulletinboard">
+PerlAccessHandler	Apache::lonacc
+SetHandler              perl-script
+PerlHandler             Apache::lonbulletin
 ErrorDocument     404 /adm/notfound.html
 ErrorDocument	  500 /adm/errorhandler
 </LocationMatch>
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.21 loncom/interface/londocs.pm:1.22
--- loncom/interface/londocs.pm:1.21	Fri Sep  6 11:18:23 2002
+++ loncom/interface/londocs.pm	Tue Sep 10 15:01:09 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.21 2002/09/06 15:18:23 www Exp $
+# $Id: londocs.pm,v 1.22 2002/09/10 19:01:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -270,6 +270,8 @@
 
     $iconpath = $r->dir_config('lonIconsURL') . "/";
 
+    my $now=time;
+
 # print screen
     $r->print(<<ENDDOCUMENT);
 <html>
@@ -295,6 +297,20 @@
     window.open('/adm/rat/extpickframe.html');
 }
 
+function makesmppage() {
+    var title=prompt('Listed Title for the Page');
+    this.document.forms.newsmppg.importdetail.value=
+	title+'=/adm/$udom/$uname/$now/smppg';
+    this.document.forms.newsmppg.submit();
+}
+
+function makebulboard() {
+    var title=prompt('Listed Title for the Bulletin Board');
+    this.document.forms.newbul.importdetail.value=
+	title+'=/adm/$udom/$uname/$now/bulletinboard';
+    this.document.forms.newbul.submit();
+}
+
 function finishpick() {
     var title=this.document.forms.extimport.title.value;
     var url=this.document.forms.extimport.url.value;
@@ -375,6 +391,20 @@
 <input type=hidden name="importdetail" 
 value="Navigate Content=/adm/navmaps">
 <input name="newnav" type="submit" value="Navigate Content" />
+</form>
+<form action="/adm/coursedocs" method="post" name="newsmppg">
+<input type="hidden" name="folder" value="$folder">
+<input type="hidden" name="foldername" value="$ENV{'form.foldername'}">
+<input type=hidden name="importdetail" value="">
+<input name="newsmppg" type="button" value="Simple Page"
+onClick="javascript:makesmppage();" />
+</form>
+<form action="/adm/coursedocs" method="post" name="newbul">
+<input type="hidden" name="folder" value="$folder">
+<input type="hidden" name="foldername" value="$ENV{'form.foldername'}">
+<input type=hidden name="importdetail" value="">
+<input name="newbulletin" type="button" value="Bulletin Board"
+onClick="javascript:makebulboard();" />
 </form>
 <form action="/adm/coursedocs" method="post" name="newaboutme">
 <input type="hidden" name="folder" value="$folder">