--- loncom/interface/loncommon.pm 2009/09/06 19:09:54 1.888 +++ loncom/interface/loncommon.pm 2009/09/27 15:27:26 1.892 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.888 2009/09/06 19:09:54 raeburn Exp $ +# $Id: loncommon.pm,v 1.892 2009/09/27 15:27:26 amueller Exp $ # # Copyright Michigan State University Board of Trustees # @@ -655,10 +655,6 @@ function fix_domain (formname,udom,origd return; } -function userCheck (formname) { - -} - $id_functions ENDUSERBRW } @@ -2968,7 +2964,7 @@ sub aboutmewrapper { if (!defined($username) && !defined($domain)) { return; } - return ''.$link.''; } @@ -3929,23 +3925,24 @@ sub parse_block_record { } sub blocking_status { - my $blocked; my ($activity,$uname,$udom) = @_; my %setters; + + # check for active blocking my ($startblock,$endblock)=&blockcheck(\%setters,$activity,$uname,$udom); - if ($startblock && $endblock) { - $blocked = 1; - } - if(!wantarray) { - return $blocked; - } - my $output; - my $querystring; - $querystring = "?activity=$activity"; - $output .= <<"END_MYBLOCK"; - END_MYBLOCK + + $output = Apache::lonhtmlcommon::scripttag($output); + my $popupUrl = "/adm/blockingstatus/$querystring"; + my $text = mt('Communication Blocked'); + $output .= <<"END_BLOCK";