File:  [LON-CAPA] / rat / lonpageflip.pm
Revision 1.73: download - view: text, annotated - select for diffs
Fri Oct 20 22:03:24 2006 UTC (17 years, 6 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- id split backwards

    1: # The LearningOnline Network with CAPA
    2: #
    3: # Page flip handler
    4: #
    5: # $Id: lonpageflip.pm,v 1.73 2006/10/20 22:03:24 albertel Exp $
    6: #
    7: # Copyright Michigan State University Board of Trustees
    8: #
    9: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
   10: #
   11: # LON-CAPA is free software; you can redistribute it and/or modify
   12: # it under the terms of the GNU General Public License as published by
   13: # the Free Software Foundation; either version 2 of the License, or
   14: # (at your option) any later version.
   15: #
   16: # LON-CAPA is distributed in the hope that it will be useful,
   17: # but WITHOUT ANY WARRANTY; without even the implied warranty of
   18: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   19: # GNU General Public License for more details.
   20: #
   21: # You should have received a copy of the GNU General Public License
   22: # along with LON-CAPA; if not, write to the Free Software
   23: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   24: #
   25: # /home/httpd/html/adm/gpl.txt
   26: #
   27: # http://www.lon-capa.org/
   28: #
   29: 
   30: package Apache::lonpageflip;
   31: 
   32: use strict;
   33: use LONCAPA;
   34: use Apache::Constants qw(:common :http REDIRECT);
   35: use Apache::lonnet;
   36: use Apache::loncommon();
   37: use HTML::TokeParser;
   38: use GDBM_File;
   39: 
   40: # ========================================================== Module Global Hash
   41:   
   42: my %hash;
   43: 
   44: sub cleanup {
   45:     if (tied(%hash)){
   46: 	&Apache::lonnet::logthis('Cleanup pageflip: hash');
   47:         unless (untie(%hash)) {
   48: 	    &Apache::lonnet::logthis('Failed cleanup pageflip: hash');
   49:         }
   50:     }
   51:     return OK;
   52: }
   53: 
   54: sub addrid {
   55:     my ($current,$new,$condid)=@_;
   56:     unless ($condid) { $condid=0; }
   57: 
   58: 	if ($current) {
   59: 	    $current.=','.$new;
   60:         } else {
   61:             $current=''.$new;
   62:         }
   63: 
   64:     return $current;
   65: }
   66: 
   67: sub fullmove {
   68:     my ($rid,$mapurl,$direction)=@_;
   69:     if (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'.db',
   70:                         &GDBM_READER(),0640)) {
   71: 	($rid,$mapurl)=&move($rid,$mapurl,$direction);
   72:         untie(%hash);
   73:     }
   74:     return($rid,$mapurl);
   75: }
   76: 
   77: sub hash_src {
   78:     my ($id)=@_;
   79:     my ($mapid,$resid)=split(/\./,$id);
   80:     my $symb=&Apache::lonnet::encode_symb($hash{'map_id_'.$mapid},
   81: 					  $resid,$hash{'src_'.$id});
   82:     if ($hash{'encrypted_'.$id}) {
   83: 	return (&Apache::lonenc::encrypted($hash{'src_'.$id}),
   84: 		&Apache::lonenc::encrypted($symb));
   85:     }
   86:     return ($hash{'src_'.$id},$symb);
   87: }
   88: 
   89: sub move {
   90:     my ($next,$endupmap,$direction) = @_;
   91:     my $safecount=0;
   92:     my $allowed=0;
   93:     do {
   94: 	($next,$endupmap)=&get_next_possible_move($next,$endupmap,$direction);
   95: 
   96: 	my $url = $hash{'src_'.$next};
   97: 	my ($mapid,$resid)=split(/\./,$next);
   98: 	my $symb = &Apache::lonnet::encode_symb($hash{'map_id_'.$mapid},
   99: 						$resid,$url);
  100: 	if ($url eq '' || $symb eq '') {
  101: 	    $allowed = 0;
  102: 	} else {
  103: 	    my $priv = &Apache::lonnet::allowed('bre',$url,$symb);
  104: 	    $allowed = (($priv eq 'F') || ($priv eq '2'));
  105: 	}
  106: 	$safecount++;
  107:     } while (   ($next)
  108: 	     && ($next!~/\,/)
  109: 	     && (
  110: 		    (!$hash{'src_'.$next})
  111: 		 || (
  112: 		        (!$env{'request.role.adv'})
  113: 		     &&  $hash{'randomout_'.$next}
  114: 		    )
  115: 		 || (!$allowed)
  116: 		)
  117: 	     && ($safecount<10000));
  118: 
  119:     return ($next,$endupmap);
  120: }
  121: 
  122: sub get_next_possible_move {
  123:     my ($rid,$mapurl,$direction)=@_;
  124:     my $startoutrid=$rid;
  125: 
  126:     my $next='';
  127: 
  128:               my $mincond=1;
  129:               my $posnext='';
  130:               if ($direction eq 'forward') {
  131: # --------------------------------------------------------------------- Forward
  132:                   while ($hash{'type_'.$rid} eq 'finish') {
  133: 	             $rid=$hash{'ids_'.$hash{'map_id_'.(split(/\./,$rid))[0]}};
  134:                   }
  135: 		  foreach my $id (split(/\,/,$hash{'to_'.$rid})) {
  136: 		     my $condition= $hash{'conditions_'.$hash{'goesto_'.$id}};
  137: 		     my $rescond  = &Apache::lonnet::docondval($condition);
  138: 		     my $linkcond = &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$id}});
  139: 		     my $thiscond = ($rescond<$linkcond)?$rescond:$linkcond;
  140: 		     if ($thiscond>=$mincond) {
  141: 		          if ($posnext) {
  142: 		             $posnext.=','.$id.':'.$thiscond;
  143:                           } else {
  144:                              $posnext=$id.':'.$thiscond;
  145: 		          }
  146:                           if ($thiscond>$mincond) { $mincond=$thiscond; }
  147: 	              }
  148:                   } 
  149: 		  foreach my $id (split(/\,/,$posnext))  {
  150:                       my ($linkid,$condval)=split(/\:/,$id);
  151:                       if ($condval>=$mincond) {
  152: 		          $next=&addrid($next,$hash{'goesto_'.$linkid},
  153:                                 $hash{'condid_'.$hash{'undercond_'.$linkid}});
  154:                       }
  155:                   }
  156:                   if ($hash{'is_map_'.$next}) {
  157: # This jumps to the beginning of a new map (going down level)
  158:                       if (
  159:       $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'sequence') {
  160: 			  $mapurl=$hash{'src_'.$next};
  161: 			  $next=$hash{'map_start_'.$hash{'src_'.$next}};
  162:                      } elsif (
  163: # This jumps back up from an empty sequence, to a page up one level
  164:                          $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'page') {
  165:                          $mapurl=$hash{'map_id_'.(split(/\./,$next))[0]};
  166:                      }
  167:                   } elsif 
  168:                     ((split(/\./,$startoutrid))[0]!=(split(/\./,$next))[0]) {
  169: # This comes up from a map (coming up one level);
  170: 		      $mapurl=$hash{'map_id_'.(split(/\./,$next))[0]};
  171: 		  }
  172:               } elsif ($direction eq 'back') {
  173: # ------------------------------------------------------------------- Backwards
  174:                  while ($hash{'type_'.$rid} eq 'start') {
  175: 	             $rid=$hash{'ids_'.$hash{'map_id_'.(split(/\./,$rid))[0]}};
  176: 		 }
  177: 		 foreach my $id (split(/\,/,$hash{'from_'.$rid})) {
  178: 		     my $condition= $hash{'conditions_'.$hash{'comesfrom_'.$id}};
  179: 		     my $rescond  = &Apache::lonnet::docondval($condition);
  180: 		     my $linkcond = &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$id}});
  181: 		     my $thiscond = ($rescond<$linkcond)?$rescond:$linkcond;
  182: 		     if ($thiscond>=$mincond) {
  183: 			 if ($posnext) {
  184: 		             $posnext.=','.$id.':'.$thiscond;
  185: 			 } else {
  186:                              $posnext=$id.':'.$thiscond;
  187: 			 }
  188: 			 if ($thiscond>$mincond) { $mincond=$thiscond; }
  189: 		     }
  190: 		 } 
  191: 		 foreach my $id (split(/\,/,$posnext)) {
  192: 		     my ($linkid,$condval)=split(/\:/,$id);
  193: 		     if ($condval>=$mincond) {
  194: 			 $next=&addrid($next,$hash{'comesfrom_'.$linkid},
  195: 				       $hash{'condid_'.$hash{'undercond_'.$linkid}});
  196: 		     }
  197: 		 }
  198:                   if ($hash{'is_map_'.$next}) {
  199: # This jumps to the end of a new map (going down one level)
  200:                       if (
  201:       $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'sequence') {
  202: 			  $mapurl=$hash{'src_'.$next};
  203: 			  $next=$hash{'map_finish_'.$hash{'src_'.$next}};
  204:                       } elsif (
  205:       $hash{'map_type_'.$hash{'map_pc_'.$hash{'src_'.$next}}} eq 'page') {
  206: # This jumps back up from an empty sequence, to a page up one level
  207:                           $mapurl=$hash{'map_id_'.(split(/\./,$next))[0]};
  208:                       }
  209:                   } elsif 
  210:                     ((split(/\./,$startoutrid))[0]!=(split(/\./,$next))[0]) {
  211: # This comes back up from a map (going up one level);
  212: 		      $mapurl=$hash{'map_id_'.(split(/\./,$next))[0]};
  213:                   }
  214: 	      }
  215:               return ($next,$mapurl);
  216: }
  217: 
  218: sub navlaunch {
  219:     my ($r)=@_;
  220:     &Apache::loncommon::content_type($r,'text/html');
  221:     &Apache::loncommon::no_cache($r);
  222:     $r->send_http_header;
  223:     $r->print(&Apache::loncommon::start_page('Launched'));   
  224:     $r->print(<<ENDNAV);
  225:     <p><a href="/adm/flip?postdata=firstres%3a">Goto first resource</a></p>
  226:     <script type="text/javascript">
  227: 	function collapse() {
  228: 	    menu=window.open("/adm/navmaps?collapseExternal","loncapanav",
  229: 			     "height=600,width=400,scrollbars=1");
  230: 	    this.document.location='/adm/navmaps?turningOffExternal';
  231: 	}
  232:     </script>
  233:     <p><a href="javascript:collapse();">Collapse external navigation window</a></p>
  234: ENDNAV
  235:     $r->print(&Apache::loncommon::end_page());
  236: }
  237: 
  238: sub first_accessible_resource {
  239:     my $furl;
  240:     if (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'.db',
  241: 	    &GDBM_READER(),0640)) {
  242: 	$furl=$hash{'first_url'};
  243:         if (!&Apache::lonnet::allowed('bre',$furl)) {
  244: # Wow, we cannot see this ... move forward to the next one that we can see
  245: 	    my ($newrid,$newmap)=&move($hash{'first_rid'},$hash{'first_mapurl'},'forward');
  246: # Build the new URL
  247: 	    my ($newmapid,$newresid)=split(/\./,$newrid);
  248: 	    my $symb=&Apache::lonnet::encode_symb($newmap,$newresid,$hash{'src_'.$newrid});
  249: 	    $furl=&add_get_param($hash{'src_'.$newrid},{ 'symb' => $symb });
  250: 	    if ($hash{'encrypted_'.$newrid}) {
  251: 		$furl=&Apache::lonenc::encrypted($furl);
  252: 	    }
  253: 	}
  254: 	untie(%hash);
  255: 	return $furl;
  256:     } else {
  257: 	return '/adm/navmaps';
  258:     }
  259: }
  260: 
  261: # ================================================================ Main Handler
  262: 
  263: sub handler {
  264:    my $r=shift;
  265: 
  266: # ------------------------------------------- Set document type for header only
  267: 
  268:   if ($r->header_only) {
  269:       &Apache::loncommon::content_type($r,'text/html');
  270:       $r->send_http_header;
  271:       return OK;
  272:   }
  273: 
  274:   my %cachehash=(); 
  275:   my $multichoice=0;
  276:   my %multichoicehash=();
  277:   my ($redirecturl,$redirectsymb);
  278:   my $next='';
  279:   my @possibilities=();
  280:    &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['postdata']);
  281:   if (($env{'form.postdata'})&&($env{'request.course.fn'})) {
  282:       $env{'form.postdata'}=~/(\w+)\:(.*)/;
  283:       my $direction=$1;
  284:       my $currenturl=$2;
  285:       if ($currenturl=~m|^/enc/|) {
  286: 	  $currenturl=&Apache::lonenc::unencrypted($currenturl);
  287:       }
  288:       $currenturl=~s/\.\d+\.(\w+)$/\.$1/;
  289:       if ($direction eq 'firstres') {
  290: 	  my $furl=&first_accessible_resource();
  291: 	  &Apache::loncommon::content_type($r,'text/html');
  292: 	  $r->header_out(Location => 
  293: 			 &Apache::lonnet::absolute_url().$furl);
  294: 	     
  295: 	  return REDIRECT;
  296:       }
  297:       if ($direction eq 'return' || $direction eq 'navlaunch') {
  298: # -------------------------------------------------------- Return to last known
  299:          my $last;
  300:          if (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'_symb.db',
  301:                     &GDBM_READER(),0640)) {
  302: 	     $last=$hash{'last_known'};
  303:              untie(%hash);
  304:          }
  305:          my $newloc;
  306:          if (($last) && (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'.db',
  307:                         &GDBM_READER(),0640))) {
  308:             my ($murl,$id,$fn)=&Apache::lonnet::decode_symb($last);
  309: 	    $id=$hash{'map_pc_'.&Apache::lonnet::clutter($murl)}.'.'.$id;
  310: 	    $newloc=$hash{'src_'.$id};
  311: 	    if ($newloc) {
  312: 		if ($hash{'encrypted_'.$id}) { $newloc=&Apache::lonenc::encrypted($newloc); }
  313: 			      
  314: 	    } else {
  315: 		$newloc='/adm/navmaps';
  316: 	    }
  317:             untie %hash;
  318:          } else {
  319: 	    $newloc='/adm/navmaps';
  320:          }  
  321: 	 if ($newloc eq '/adm/navmaps' && $direction eq 'navlaunch') {
  322: 	     &navlaunch($r);
  323: 	     return OK;
  324: 	 } else {
  325: 	     &Apache::loncommon::content_type($r,'text/html');
  326: 	     $r->header_out(Location => 
  327: 			    &Apache::lonnet::absolute_url().$newloc);
  328: 	     
  329: 	     return REDIRECT;
  330: 	 }
  331:       }
  332:       $currenturl=~s/^http\:\/\///;
  333:       $currenturl=~s/^[^\/]+//;
  334: #
  335: # Is the current URL on the map? If not, start with last known URL
  336: #
  337:       unless (&Apache::lonnet::is_on_map($currenturl)) {
  338: 	 my $last;
  339:          if (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'_symb.db',
  340:                     &GDBM_READER(),0640)) {
  341: 	     $last=$hash{'last_known'};
  342:              untie(%hash);
  343:          }
  344:          if ($last) {
  345: 	     $currenturl=&Apache::lonnet::clutter((&Apache::lonnet::decode_symb($last))[2]);
  346: 	 } else {
  347: 	     if ($direction eq 'return') {
  348: 		 &Apache::loncommon::content_type($r,'text/html');
  349: 		 $r->header_out(Location => 
  350: 				&Apache::lonnet::absolute_url().
  351: 				'/adm/noidea.html');
  352: 		 return REDIRECT;
  353: 	     } else {
  354: 		 &navlaunch($r);
  355: 		 return OK;
  356: 	     }
  357:          }
  358:       }
  359: # ------------------------------------------- Do we have any idea where we are?
  360:       my $position;
  361:       if ($position=Apache::lonnet::symbread($currenturl)) {
  362: # ------------------------------------------------------------------------- Yes
  363: 	  my ($startoutmap,$mapnum,$thisurl)=&Apache::lonnet::decode_symb($position);
  364:           $cachehash{$startoutmap}{$thisurl}=[$thisurl,$mapnum];
  365:           $cachehash{$startoutmap}{'last_known'}=
  366:                              [&Apache::lonnet::declutter($currenturl),$mapnum];
  367: 
  368: # ============================================================ Tie the big hash
  369:           if (tie(%hash,'GDBM_File',$env{'request.course.fn'}.'.db',
  370:                         &GDBM_READER(),0640)) {
  371:               my $rid=$hash{'map_pc_'.&Apache::lonnet::clutter($startoutmap)}.
  372:                       '.'.$mapnum;
  373: 
  374: # ------------------------------------------------- Move forward, backward, etc
  375:               my $endupmap;
  376:               ($next,$endupmap)=&move($rid,$startoutmap,$direction);
  377: # -------------------------------------- Do we have one and only one empty URL?
  378: # We are now at at least one non-empty URL
  379: # ----------------------------------------------------- Check out possibilities
  380:               if ($next) {
  381:                   @possibilities=split(/\,/,$next);
  382:                   if ($#possibilities==0) {
  383: # ---------------------------------------------- Only one possibility, redirect
  384: 	              ($redirecturl,$redirectsymb)=&hash_src($next);
  385:                       $cachehash{$endupmap}{$redirecturl}=
  386: 			  [$redirecturl,(split(/\./,$next))[1]];
  387:                   } else {
  388: # ------------------------ There are multiple possibilities for a next resource
  389:                       $multichoice=1;
  390: 		      foreach my $id (@possibilities) {
  391: 			  $multichoicehash{'src_'.$id}=$hash{'src_'.$id};
  392:                           $multichoicehash{'title_'.$id}=$hash{'title_'.$id};
  393:                           $multichoicehash{'type_'.$id}=$hash{'type_'.$id};
  394:                           (my $first, my $second) = $id =~ /(\d+).(\d+)/;
  395:                           my $symbSrc = Apache::lonnet::declutter($hash{'src_'.$id});
  396:                           $multichoicehash{'symb_'.$id} = 
  397:                               Apache::lonnet::declutter($hash{'map_id_'.$first}.'___'.
  398:                                                         $second.'___'.$symbSrc);
  399:                                                          
  400:                           my ($choicemap,$choiceres)=split(/\./,$id);
  401: 			  my $map=&Apache::lonnet::declutter($hash{'src_'.$choicemap});
  402: 			  my $url=$multichoicehash{'src_'.$id};
  403:                           $cachehash{$map}{$url}=[$url,$choiceres];
  404:                       }
  405:                   }
  406: 	      } else {
  407: # -------------------------------------------------------------- No place to go
  408:                   $multichoice=-1;
  409:               }
  410: # ----------------- The program must come past this point to untie the big hash
  411: 	      untie(%hash);
  412: # --------------------------------------------------------- Store position info
  413:               $cachehash{$startoutmap}{'last_direction'}=[$direction,'notasymb'];
  414:               foreach my $thismap (keys %cachehash) {
  415: 		  my $mapnum=$cachehash{$thismap}->{'mapnum'};
  416: 		  delete($cachehash{$thismap}->{'mapnum'});
  417: 		  &Apache::lonnet::symblist($thismap,
  418: 					    %{$cachehash{$thismap}});
  419: 	      }
  420: # ============================================== Do not return before this line
  421:               if ($redirecturl) {
  422: # ----------------------------------------------------- There is a URL to go to
  423: 		  if ($direction eq 'forward') {
  424:                      &Apache::lonnet::linklog($currenturl,$redirecturl);
  425: 		  }
  426: 		  if ($direction eq 'back') {
  427:                      &Apache::lonnet::linklog($redirecturl,$currenturl);
  428: 		  }
  429: # ------------------------------------------------- Check for critical messages
  430: 		  if ((time-$env{'user.criticalcheck.time'})>300) {
  431:                      my @what=&Apache::lonnet::dump
  432:                                   ('critical',$env{'user.domain'},
  433:                                               $env{'user.name'});
  434:                      if ($what[0]) {
  435: 	                if (($what[0] ne 'con_lost') && 
  436:                             ($what[0]!~/^error\:/)) {
  437: 	                   $redirecturl='/adm/email?critical=display';
  438: 			   $redirectsymb='';
  439:                         }
  440:                      }
  441:                      &Apache::lonnet::appenv('user.criticalcheck.time'=>time);
  442: 		  }
  443: 
  444: 		  &Apache::loncommon::content_type($r,'text/html');
  445: 		  my $url=&Apache::lonnet::absolute_url().$redirecturl;
  446: 		  $url = &add_get_param($url, { 'symb' => $redirectsymb});
  447:                   $r->header_out(Location => $url);
  448:                   return REDIRECT;
  449: 	      } else {
  450: # --------------------------------------------------------- There was a problem
  451:                   &Apache::loncommon::content_type($r,'text/html');
  452:                   $r->send_http_header;
  453: 		  my %lt=&Apache::lonlocal::texthash('title' => 'End of Sequence',
  454: 						     'explain' =>
  455: 						     'You have reached the end of the sequence of materials.',
  456: 						     'back' => 'Go Back',
  457: 						     'nav' => 'Navigate Course Content',
  458: 						     'wherenext' =>
  459: 						     'There are several possibilities of where to go next',
  460: 						     'pick' =>
  461: 						     'Please click on the the resource you intend to access',
  462: 						     'titleheader' => 'Title',
  463: 						     'type' => 'Type');
  464:                   if ($#possibilities>0) {
  465: 		      my $start_page=
  466: 			  &Apache::loncommon::start_page('Multiple Resources');
  467:                      $r->print(<<ENDSTART);
  468: $start_page
  469: <h3>$lt{'wherenext'}</h3>
  470: <p>
  471: $lt{'pick'}:
  472: <p>
  473: <table border=2>
  474: <tr><th>$lt{'titleheader'}</th><th>$lt{'type'}</th></tr>
  475: ENDSTART
  476:                      foreach my $id (@possibilities) {
  477:                         $r->print(
  478:                               '<tr><td><a href="'.
  479: 				  &add_get_param($multichoicehash{'src_'.$id},
  480: 						 {'symb' =>
  481: 						      $multichoicehash{'symb_'.$id},
  482: 						  }).'">'.
  483:                               $multichoicehash{'title_'.$id}.
  484:                               '</a></td><td>'.$multichoicehash{'type_'.$id}.
  485: 			      '</td></tr>');
  486:                      }
  487:                      $r->print('</table>');
  488:                   } else {
  489: 		      my $start_page=
  490: 			  &Apache::loncommon::start_page('No Resource');
  491: 		      $r->print(<<ENDNONE);
  492: $start_page
  493: <h3>$lt{'title'}</h3>
  494: <p>$lt{'explain'}</p>
  495: ENDNONE
  496: 		  }
  497: 		  $r->print(<<ENDMENU);
  498: <ul>
  499: <li><a href="/adm/flip?postdata=return:">$lt{'back'}</a></li>
  500: <li><a href="/adm/navmaps">$lt{'nav'}</a></li>
  501: </ul>
  502: ENDMENU
  503:                   $r->print(&Apache::loncommon::end_page());
  504:                   return OK;
  505: 	      }
  506: 	  } else {
  507: # ------------------------------------------------- Problem, could not tie hash
  508:               $env{'user.error.msg'}="/adm/flip:bre:0:1:Course Data Missing";
  509:               return HTTP_NOT_ACCEPTABLE; 
  510:           }
  511:       } else {
  512: # ---------------------------------------- No, could not determine where we are
  513: 	  $r->internal_redirect('/adm/ambiguous');
  514:       }
  515:   } else {
  516: # -------------------------- Class was not initialized or page fliped strangely
  517:       $env{'user.error.msg'}="/adm/flip:bre:0:0:Choose Course";
  518:       return HTTP_NOT_ACCEPTABLE; 
  519:   } 
  520: }
  521: 
  522: 1;
  523: __END__
  524: 
  525: 
  526: 
  527: 
  528: 
  529: 
  530: 

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