Annotation of loncom/interface/lonrss.pm, revision 1.21

1.1       www         1: # The LearningOnline Network
                      2: # RSS Feeder
                      3: #
1.21    ! www         4: # $Id: lonrss.pm,v 1.20 2006/05/11 15:27:49 www Exp $
1.1       www         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/
                     27: #
                     28: 
                     29: package Apache::lonrss;
                     30: 
                     31: use strict;
                     32: use Apache::Constants qw(:common);
                     33: use Apache::loncommon;
                     34: use Apache::lonnet;
                     35: use Apache::lontexconvert;
                     36: use Apache::lonlocal;
                     37: use Apache::lonhtmlcommon;
                     38: 
1.15      www        39: 
1.1       www        40: sub filterfeedname {
                     41:     my $filename=shift;
1.5       www        42:     $filename=~s/(\_rss\.html|\.rss)$//;
1.1       www        43:     $filename=~s/\W//g;
1.15      www        44:     $filename=~s/\_rssfeed$//;
                     45:     $filename=~s/^nohist\_//;
1.1       www        46:     return $filename;
                     47: }
                     48: 
                     49: sub feedname {
                     50:     return 'nohist_'.&filterfeedname(shift).'_rssfeed';
                     51: }
                     52: 
                     53: sub displayfeedname {
1.2       www        54:     my ($rawname,$uname,$udom)=@_;
                     55:     my $filterfilename=&filterfeedname($rawname);
                     56: # do we have a stored name?
1.20      www        57:     my %stored=&Apache::lonnet::get('nohist_all_rss_feeds',[$filterfilename,'feed_display_option_'.$filterfilename],$udom,$uname);
                     58:     if ($stored{$filterfilename}) { return ($stored{$filterfilename},$stored{'feed_display_option_'.$filterfilename}); }
1.2       www        59: # no, construct a name
                     60:     my $name=$filterfilename; 
                     61:     if ($name=~/^CourseBlog/) {
                     62:         $name=&mt('Course Blog');
                     63: 	if ($env{'course.'.$env{'request.course.id'}.'.description'}) {
                     64: 	    $name.=' '.$env{'course.'.$env{'request.course.id'}.'.description'};
                     65: 	}
                     66:     } else {
                     67: 	$name=~s/\_/ /g;
                     68:     }
1.20      www        69:     return ($name,$stored{'feed_display_option_'.$filterfilename});
1.2       www        70: }
                     71: 
1.19      www        72: sub namefeed {
1.2       www        73:     my ($rawname,$uname,$udom,$newname)=@_;
                     74:     return &Apache::lonnet::put('nohist_all_rss_feeds',
                     75: 				{ &filterfeedname($rawname) => $newname },
                     76: 				$udom,$uname);
                     77: }
                     78: 
1.20      www        79: sub changefeeddisplay {
                     80:     my ($rawname,$uname,$udom,$newstatus)=@_;
                     81:     return &Apache::lonnet::put('nohist_all_rss_feeds',
                     82: 				{ 'feed_display_option_'.&filterfeedname($rawname) => $newstatus },
                     83: 				$udom,$uname);
                     84: }
                     85: 
1.2       www        86: sub advertisefeeds {
1.6       www        87:     my ($uname,$udom,$edit)=@_;
1.2       www        88:     my $feeds='';
                     89:     my %feednames=&Apache::lonnet::dump('nohist_all_rss_feeds',$udom,$uname);
1.6       www        90:     my $mode='public';
                     91:     if ($edit) {
                     92: 	$mode='adm';
                     93:     }
1.3       albertel   94:     foreach my $feed (sort(keys(%feednames))) {
1.20      www        95: 	if (($feed!~/^error\:/) && ($feed!~/^feed\_display\_option\_/)) {
1.14      www        96: 	    my $feedurl='http://'.$ENV{'HTTP_HOST'}.'/public/'.$udom.'/'.$uname.'/'.$feed.'.rss';
1.6       www        97: 	    my $htmlurl='http://'.$ENV{'HTTP_HOST'}.'/'.$mode.'/'.$udom.'/'.$uname.'/'.$feed.'_rss.html';
1.20      www        98: 	    if ($feednames{'feed_display_option_'.$feed} eq 'hidden') {
                     99: 		if ($edit) {
                    100: 		    $feeds.='<li><i>'.$feednames{$feed}.'</i><br />'.&mt('Hidden').': <a href="'.$htmlurl.'"><tt>'.$htmlurl.'</tt></a></li>';
                    101: 		}
                    102: 	    } else {
                    103: 		$feeds.='<li><b>'.$feednames{$feed}.
                    104: 		    '</b><br />'.($edit?&mt('Edit'):'HTML').': <a href="'.$htmlurl.'"><tt>'.$htmlurl.'</tt></a>'.
                    105: 		    '<br />RSS: <a href="'.$feedurl.'"><tt>'.$feedurl.'</tt></a></li>';
                    106: 	    }
1.2       www       107: 	}
                    108:     }
                    109:     if ($feeds) {
                    110: 	return '<h4>'.&mt('Available RSS Feeds and Blogs').'</h4><ul>'.$feeds.'</ul>';
                    111:     } else {
                    112:         return '';
                    113:     }
1.1       www       114: }
                    115: 
1.12      albertel  116: sub rss_link {
                    117:     my ($url) = @_;
                    118:     return qq|<link rel="alternate" type="application/rss+xml" title="Course Announcements" href="$url" />|;
                    119: }
                    120: 
1.16      albertel  121: {
                    122:     my $feedcounter;
                    123:     sub get_new_feed_id {
                    124: 	$feedcounter++;
                    125: 	return time().'00000'.$$.'00000'.$feedcounter;
                    126:     }
                    127: }
                    128: 
1.15      www       129: sub addentry {
1.16      albertel  130:     my $id=&get_new_feed_id();
1.15      www       131:     return &editentry($id,@_);
1.2       www       132: }
                    133: 
                    134: sub editentry {
1.17      www       135:     my ($id,$uname,$udom,$filename,$title,$description,$url,$status,$encurl,$enctype)=@_;
1.15      www       136:     if ($status eq 'deleted') {
                    137: 	return &changestatus($id,$uname,$udom,$filename,$status);
                    138:     }
1.2       www       139:     my $feedname=&feedname($filename);
                    140:     &Apache::lonnet::put('nohist_all_rss_feeds',
                    141: 			 { &filterfeedname($filename) => &displayfeedname($filename,$uname,$udom) },
                    142: 			 $udom,$uname);
1.1       www       143:     return &Apache::lonnet::put($feedname,{
                    144: 	$id.'_title' => $title,
                    145: 	$id.'_description' => $description,
                    146: 	$id.'_link' => $url,
                    147: 	$id.'_enclosureurl' => $encurl,
                    148: 	$id.'_enclosuretype' => $enctype,
                    149: 	$id.'_status' => $status},$udom,$uname);
                    150: }
                    151: 
1.2       www       152: sub changestatus {
                    153:     my ($id,$uname,$udom,$filename,$status)=@_;
                    154:     my $feedname=&feedname($filename);
                    155:     if ($status eq 'deleted') {
                    156: 	return &Apache::lonnet::del($feedname,[$id.'_title',
                    157: 					       $id.'_description',
                    158: 					       $id.'_link',
                    159: 					       $id.'_enclosureurl',
                    160: 					       $id.'_enclosuretype',
                    161: 					       $id.'_status'],$udom,$uname);
                    162:     } else {
                    163: 	return &Apache::lonnet::put($feedname,{$id.'_status' => $status},$udom,$uname);
                    164:     }
                    165: }
                    166: 
1.8       albertel  167: sub changed_js {
                    168:     return <<ENDSCRIPT;
                    169: <script type="text/javascript">
                    170:     function changed(tform,id) {
                    171:         tform.elements[id+"_modified"].checked=true;
                    172:     }
                    173: </script>
1.11      albertel  174: ENDSCRIPT
1.8       albertel  175: }
                    176: 
1.17      www       177: sub determine_enclosure_types {
                    178:     my ($url)=@_;
                    179:     my ($ending)=($url=~/\.(\w+)$/);
                    180:     return &Apache::loncommon::filemimetype($ending);
                    181: }
                    182: 
1.21    ! www       183: sub course_blog_link {
        !           184:     my ($id,$title,$description,$url,$encurl,$enctype)=@_;
        !           185:     if ($env{'request.course.id'}) {
        !           186: 	return &add_blog_entry_link($id,
        !           187: 				    $env{'course.'.$env{'request.course.id'}.'.num'},
        !           188: 				    $env{'course.'.$env{'request.course.id'}.'.domain'},
        !           189: 				    'Course_Announcements',
        !           190: 				    $title,$description,$url,'public',$encurl,$enctype,
        !           191: 				    &mt('Add to Course Announcements'));
        !           192:     } else {
        !           193: 	return '';
        !           194:     }
        !           195: }
        !           196: 
        !           197: sub add_blog_entry_link {
        !           198:     my ($id,$uname,$udom,$filename,$title,$description,$url,$status,$encurl,$enctype,$linktext)=@_;
        !           199:     return "<a href='/adm/$udom/$uname/".&filterfeedname($filename).'_rss.html?queryid='.
        !           200: 	&Apache::lonnet::escape($id).
        !           201: 	'&title='.&Apache::lonnet::escape($title).
        !           202: 	'&description='.&Apache::lonnet::escape($description).
        !           203: 	'&url='.&Apache::lonnet::escape($url).
        !           204: 	'&status='.&Apache::lonnet::escape($status).
        !           205: 	'&encurl='.&Apache::lonnet::escape($encurl).
        !           206: 	'&enctype='.&Apache::lonnet::escape($enctype).
        !           207: 	"'>".$linktext.'</a>';
        !           208: 
        !           209: }
        !           210: 
1.1       www       211: sub handler {
1.8       albertel  212:     my ($r) = @_;
1.5       www       213: 
                    214:     my $edit=0;
                    215:     my $html=0;
                    216:     my (undef,$mode,$udom,$uname,$filename)=split(/\//,$r->uri);
                    217:     if (($mode eq 'adm') && ($env{'user.name'} eq $uname) && ($env{'user.domain'} eq $udom)) {
                    218: 	$edit=1;
                    219: 	$html=1;
                    220:     }
1.21    ! www       221:     if  (($mode eq 'adm') && (&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) {
        !           222: 	$edit=1;
        !           223: 	$html=1;
        !           224:     }
1.5       www       225:     if ($filename=~/\.html$/) {
                    226: 	$html=1;
                    227:     }
                    228:     if ($html) {
                    229: 	&Apache::loncommon::content_type($r,'text/html');
                    230:     } else {
                    231: # Workaround Mozilla/Firefox
                    232: #	&Apache::loncommon::content_type($r,'application/rss+xml');
                    233: 	&Apache::loncommon::content_type($r,'text/xml');
                    234:     }
1.1       www       235:     $r->send_http_header;
                    236:     return OK if $r->header_only;
                    237: 
                    238:     my $filterfeedname=&filterfeedname($filename);
                    239:     my $feedname=&feedname($filename);
1.20      www       240:     my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom);
1.5       www       241:     if ($html) {
1.20      www       242: 	$r->print(&Apache::loncommon::start_page(($displayfeedname?$displayfeedname:&mt("Available RSS Feeds and Blogs")),undef,
1.13      albertel  243: 						 {'domain'         => $udom,
                    244: 						  'force_register' =>
                    245: 						      $env{'form.register'}}).
1.8       albertel  246: 		  &changed_js());
1.18      www       247:     } else { # render RSS
1.5       www       248: 	$r->print("<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1'>\n<channel>".
                    249: 		  "\n<link>http://".$ENV{'HTTP_HOST'}.'/public/'.$udom.'/'.$uname.'/'.
                    250: 		  $filterfeedname.'_rss.html</link>'.
                    251: 		  "\n<description>".
                    252: 		  &mt('An RSS Feed provided by the LON-CAPA Learning Content Management System').
                    253: 		  '</description>');
                    254:     }
1.21    ! www       255: # This will be the entry id for new additions to the blog
1.16      albertel  256:     my $newid = &get_new_feed_id();
1.1       www       257: # Is this user for real?
1.6       www       258:     my $homeserver=&Apache::lonnet::homeserver($uname,$udom);
                    259:     if ($html) {
1.19      www       260: # Any new feeds or renaming of feeds?
                    261: 	if ($edit) {
1.20      www       262: # Hide a feed?
                    263: 	    if ($env{'form.hidethisblog'}) {
                    264: 		&changefeeddisplay($feedname,$uname,$udom,'hidden');
                    265: 		($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom);
                    266: 	    }
                    267: # Advertise a feed?
                    268: 	    if ($env{'form.advertisethisblog'}) {
                    269: 		&changefeeddisplay($feedname,$uname,$udom,'public');
                    270: 		($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom);
                    271: 	    }
1.19      www       272: # New feed?
                    273: 	    if ($env{'form.namenewblog'}=~/\w/) {
                    274: 		&namefeed($env{'form.namenewblog'},$uname,$udom,$env{'form.namenewblog'});
                    275: 	    }
                    276: # Old feed that is being renamed?
                    277: 	    if (($displayfeedname) && ($env{'form.newblogname'}=~/\w/)) {
                    278: 		if ($env{'form.newblogname'} ne $displayfeedname) {
                    279: 		    &namefeed($feedname,$uname,$udom,$env{'form.newblogname'});
1.20      www       280: 		    ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom);
1.19      www       281: 		}
                    282: 	    }
                    283: 	}
1.6       www       284: 	$r->print(&advertisefeeds($uname,$udom,$edit));
                    285:     } 
1.1       www       286:     if ($homeserver eq 'no_host') {
1.5       www       287: 	$r->print(($html?'<h3>':'<title>').&mt('No feed available').($html?'</h3>':'</title>'));
1.18      www       288:     } else { # is indeed a user
1.1       www       289: # Course or user?
                    290: 	my $name='';
                    291: 	if ($uname=~/^\d/) {
                    292: 	    my %cenv=&Apache::lonnet::dump('environment',$udom,$uname);
                    293: 	    $name=$cenv{'description'};
                    294: 	} else {
                    295: 	    $name=&Apache::loncommon::nickname($uname,$udom);
                    296: 	}
1.19      www       297: # Add a new feed
                    298:         if (($html) && ($edit)) {
                    299: 	    $r->print('<form method="post">');
1.21    ! www       300:             $r->print(&mt('Name for New Feed').": <input type='text' size='40' name='namenewblog' />");
        !           301: 	    $r->print('<input type="submit" value="'.&mt('Start a New Feed').'" />');
1.19      www       302: 	    $r->print('</form>');
                    303: 	}
1.18      www       304:         if ($displayfeedname) { # this is an existing feed
                    305: # Anything to store?
                    306: 	    if ($edit) {
1.21    ! www       307: # check if this was called with a query string
        !           308: 		&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['queryid']);
        !           309: 		if ($env{'form.queryid'}) {
        !           310: # yes, collect the remainder
        !           311: 		    &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
        !           312: 							    ['title',
        !           313: 							     'description',
        !           314: 							     'url',
        !           315: 							     'status',
        !           316: 							     'enclosureurl',
        !           317: 							     'enclosuretype']);
        !           318: #    my ($id,$uname,$udom,$filename,$title,$description,$url,$status,$encurl,$enctype)=@_;
        !           319: 
        !           320: 		    &editentry($env{'form.queryid'},
        !           321: 			       $uname,$udom,$filename,
        !           322: 			       $env{'form.title'},
        !           323: 			       $env{'form.description'},
        !           324: 			       $env{'form.url'},
        !           325: 			       $env{'form.status'},
        !           326: 			       $env{'form.encurl'},
        !           327: 			       $env{'form.enctype'}
        !           328: 			       );
        !           329: 		}
1.18      www       330: 		my %newsfeed=&Apache::lonnet::dump($feedname,$udom,$uname);
                    331: 		foreach my $entry (sort(keys(%newsfeed)),$env{'form.newid'}.'_status') {
                    332: 		    if ($entry=~/^(\d+)\_status$/) {
                    333: 			my $id=$1;
                    334: 			if ($env{'form.'.$id.'_modified'}) {
                    335: 			    &editentry($id,$uname,$udom,$feedname,
                    336: 				       $env{'form.'.$id.'_title'},
                    337: 				       $env{'form.'.$id.'_description'},
                    338: 				       $env{'form.'.$id.'_url'},
1.21    ! www       339: 				       $env{'form.'.$id.'_status'},
        !           340: 				       $env{'form.'.$id.'_enclosureurl'},
        !           341: 				       $env{'form.'.$id.'_enclosuretype'},
        !           342: 				       );
1.18      www       343: 			}
                    344: 		    }
                    345: 		}
                    346: 	    } #done storing
                    347: 
                    348: 	    $r->print("\n".
1.19      www       349: 		      ($html?'<hr /><h3>':'<title>').
1.18      www       350: 		      &mt('LON-CAPA Feed "[_1]" for [_2]',$displayfeedname,$name).
1.20      www       351: 		      ($displayoption eq 'hidden'?' ('.&mt('Hidden').')':'').
1.18      www       352: 		      ($html?'</h3>'.($edit?'<form method="post"><br />'.
1.21    ! www       353: 				      &mt('Name of this Feed').
1.18      www       354: 				      ': <input type="text" size="50" name="newblogname" value="'.
                    355: 				      $displayfeedname.'" />':'').'<ul>':'</title>'));
1.1       www       356: # Render private items?
1.18      www       357: 	    my $viewpubliconly=1;
                    358: 	    if (($env{'user.name'} eq $uname) && ($env{'user.domain'} eq $udom)) {
                    359: 		$viewpubliconly=0;
                    360: 	    }
1.1       www       361: # Get feed items
1.18      www       362: 	    my %newsfeed=&Apache::lonnet::dump($feedname,$udom,$uname);
                    363: 	    foreach my $entry (sort(keys(%newsfeed)),$newid.'_status') {
                    364: 		if ($entry=~/^(\d+)\_status$/) { # is an entry
                    365: 		    my $id=$1;
                    366: 		    if ($edit) {
                    367: 			my %lt=&Apache::lonlocal::texthash('public' => 'public',
                    368: 							   'private' => 'private',
                    369: 							   'hidden' => 'hidden',
                    370: 							   'delete' => 'delete',
                    371: 							   'store' => 'Store changes',
                    372: 							   'title' => 'Title',
                    373: 							   'link' => 'Link',
                    374: 							   'description' => 'Description');
                    375: 			my %status=();
                    376: 			unless ($newsfeed{$id.'_status'}) { $newsfeed{$id.'_status'}='public'; }
                    377: 			$status{$newsfeed{$id.'_status'}}='checked="checked"';
                    378: 			$r->print(<<ENDEDIT);
1.5       www       379: <li>
1.15      www       380: <label><input name='$id\_modified' type='checkbox' value="modified" /> $lt{'store'}</label>
1.6       www       381: &nbsp;&nbsp;
                    382: <label><input name='$id\_status' type="radio" value="public" $status{'public'} onClick="changed(this.form,'$id');" /> $lt{'public'}</label>
1.5       www       383: &nbsp;&nbsp;
1.6       www       384: <label><input name='$id\_status' type="radio" value="private" $status{'private'} onClick="changed(this.form,'$id');" /> $lt{'private'}</label>
1.5       www       385: &nbsp;&nbsp;
1.6       www       386: <label><input name='$id\_status' type="radio" value="hidden" $status{'hidden'} onClick="changed(this.form,'$id');" /> $lt{'hidden'}</label>
1.5       www       387: &nbsp;&nbsp;
1.15      www       388: <label><input name='$id\_status' type="radio" value="deleted" onClick="changed(this.form,'$id');" /> $lt{'delete'}</label>
1.5       www       389: <br />
1.18      www       390: $lt{'title'}:
                    391: <input name='$id\_title' type='text' size='60' value='$newsfeed{$id.'_title'}' onChange="changed(this.form,'$id');" /><br />
                    392: $lt{'description'}:<br />
1.6       www       393: <textarea name='$id\_description' rows="6" cols="80" onChange="changed(this.form,'$id');">$newsfeed{$id.'_description'}</textarea><br />
1.18      www       394: $lt{'link'}:
                    395: <input name='$id\_link' type='text' size='60' value='$newsfeed{$id.'_link'}' onChange="changed(this.form,'$id');" />
1.6       www       396: <hr /></li>
1.5       www       397: ENDEDIT
1.18      www       398: 		    } else { # not in edit mode, just displaying
                    399: 			if (($newsfeed{$id.'_status'} ne 'public') && ($viewpubliconly)) { next; }
                    400: 			if ($newsfeed{$id.'_status'} eq 'hidden') { next; }
                    401: 			$r->print("\n".($html?"\n<li><b>":"<item>\n<title>").$newsfeed{$id.'_title'}.
                    402: 				  ($html?"</b><br />\n":"</title>\n<description>").
                    403: 				  $newsfeed{$id.'_description'}.
                    404: 				  ($html?"<br />\n<a href='":"</description>\n<link>").
                    405: 				  "http://".$ENV{'HTTP_HOST'}.
                    406: 				  $newsfeed{$id.'_link'}.
                    407: 				  ($html?("'>".&mt('Read more')."</a><br />\n"):"</link>\n"));
1.17      www       408: # Enclosure? Get stats
1.18      www       409: 			if ($newsfeed{$id.'_enclosureurl'}) {
                    410: 			    my @stat=&Apache::lonnet::stat_file($newsfeed{$id.'_enclosureurl'});
                    411: 			    if ($stat[7]) {
1.17      www       412: # Has non-zero length (and exists)
1.18      www       413: 				my $enclosuretype=$newsfeed{$id.'_enclosetype'};
                    414: 				$r->print(($html?"<a href='":"\n<enclosure url='").
                    415: 					  $newsfeed{$id.'_enclosureurl'}."' length='".$stat[7].
                    416: 					  "' type='".$enclosuretype.($html?"'>".&mt('Enclosure')."</a>":"' />"));
                    417: 			    }
                    418: 			}
                    419: 			if ($html) { # is HTML
                    420: 			    $r->print("\n<hr /></li>\n");
                    421: 			} else { # is RSS
                    422: 			    $r->print("\n<guid isPermaLink='false'>".$id.$filterfeedname.'_'.$udom.'_'.$uname."</guid></item>\n");
1.17      www       423: 			}
1.18      www       424: 		    } # end of "in edit mode"
                    425: 		} # end of rendering a real entry
                    426: 	    } # end of loop through all keys
                    427: 	    if ($html) {
                    428: 		$r->print('</ul>');
                    429: 		if ($edit) {
1.20      www       430: 		    $r->print('<input type="hidden" name="newid" value="'.$newid.'"/><input type="submit" value="'.&mt('Store Marked Changes').'" />'.
                    431: 			      ($displayoption eq 'hidden'?'<input type="submit" name="advertisethisblog" value="'.&mt('Advertise this Feed').'" />':
                    432: 			       '<input type="submit" name="hidethisblog" value="'.&mt('Hide this Feed').'" />'));
1.1       www       433: 		}
                    434: 	    }
1.18      www       435: 	} # was a real display feedname
                    436: 	$r->print(($html?'</form>'.&Apache::loncommon::end_page():'</channel></rss>'."\n"));
                    437:     } # a real user
1.1       www       438:     return OK;
1.18      www       439: } # end handler
1.1       www       440: 1;
                    441: __END__

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