--- loncom/interface/lonhtmlcommon.pm 2006/08/08 19:02:04 1.151 +++ loncom/interface/lonhtmlcommon.pm 2007/03/12 18:09:36 1.157 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.151 2006/08/08 19:02:04 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.157 2007/03/12 18:09:36 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -60,7 +60,6 @@ use Time::Local; use Time::HiRes; use Apache::lonlocal; use Apache::lonnet; -use lib '/home/httpd/lib/perl/'; use LONCAPA; ############################################## @@ -78,7 +77,7 @@ use LONCAPA; sub authorbombs { my $url=shift; $url=&Apache::lonnet::declutter($url); - my ($udom,$uname)=($url=~/^(\w+)\/(\w+)\//); + my ($udom,$uname)=($url=~m{^($LONCAPA::domain_re)/($LONCAPA::username_re)/}); my %bombs=&Apache::lonmsg::all_url_author_res_msg($uname,$udom); foreach (keys %bombs) { if ($_=~/^$udom\/$uname\//) { @@ -699,10 +698,10 @@ sub StatusOptions { } $Str .= ' size="'.$size.'" '; $Str .= '>'."\n"; - foreach my $type (['Active', &mt('Currently Enrolled')], - ['Future', &mt('Future Enrolled')], - ['Expired', &mt('Previously Enrolled')], - ['Any', &mt('Any Enrollment Status')]) { + foreach my $type (['Active', &mt('Currently Has Access')], + ['Future', &mt('Will Have Future Access')], + ['Expired', &mt('Previously Had Access')], + ['Any', &mt('Any Access Status')]) { my ($name,$label) = @$type; $Str .= '