Diff for /loncom/interface/lonchatfetch.pm between versions 1.32 and 1.35

version 1.32, 2006/11/29 19:45:55 version 1.35, 2009/07/26 16:53:40
Line 178  sub handler { Line 178  sub handler {
         $refresh_cmd .= "&group=$group";          $refresh_cmd .= "&group=$group";
     }      }
     my $headarg;      my $headarg;
     my ($blocked,$blocktext) = &blockstatus();      my ($blocked,$blocktext) = blockstatus();
     if ($blocked) {      if ($blocked) {
         $newstuff = $blocktext;          $newstuff = $blocktext;
         $headarg =  {'only_body' => 1,};          $headarg =  {'only_body' => 1,};
   
    $r->print(<<ENDSCRIPT);
             <script type="text/javascript">
               parent.location.href="/adm/blockingstatus/?activity=chat"
             </script>
   ENDSCRIPT
     } else {      } else {
         $headarg = {'redirect'  => [5,$refresh_cmd,1],          $headarg = {'redirect'  => [5,$refresh_cmd,1],
                                     'only_body' => 1,};                                      'only_body' => 1,};
     }      }
     my $start_page = &Apache::loncommon::start_page('Chat',undef,$headarg);       my $start_page = &Apache::loncommon::start_page('Chat Room',undef,$headarg); 
     my $end_page = &Apache::loncommon::end_page();      my $end_page = &Apache::loncommon::end_page();
     $r->print(<<ENDDOCUMENT);      $r->print(<<ENDDOCUMENT);
 $start_page  $start_page
Line 223  sub blockstatus { Line 229  sub blockstatus {
     if ($startblock && $endblock) {      if ($startblock && $endblock) {
         $blocked = 1;          $blocked = 1;
         my $endblocktime = &Apache::lonlocal::locallocaltime($endblock);          my $endblocktime = &Apache::lonlocal::locallocaltime($endblock);
         $output .= &mt('Chat will be unavailable to you until [_1] because communication is blocked in one or more of your courses: <br/><br />',$endblocktime);           $output .= &mt('Chat Room will be unavailable to you until [_1] because communication is blocked in one or more of your courses:',$endblocktime).'<br /><br />';
         foreach my $course (keys(%setters)) {          foreach my $course (keys(%setters)) {
             my %courseinfo=&Apache::lonnet::coursedescription($course);              my %courseinfo=&Apache::lonnet::coursedescription($course);
             for (my $i=0; $i<@{$setters{$course}{staff}}; $i++) {              for (my $i=0; $i<@{$setters{$course}{staff}}; $i++) {

Removed from v.1.32  
changed lines
  Added in v.1.35


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