--- loncom/auth/lonroles.pm 2006/05/15 17:45:46 1.148 +++ loncom/auth/lonroles.pm 2006/05/30 19:47:36 1.151 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.148 2006/05/15 17:45:46 albertel Exp $ +# $Id: lonroles.pm,v 1.151 2006/05/30 19:47:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,7 +39,10 @@ use Apache::loncommon; use Apache::lonhtmlcommon; use Apache::lonannounce; use Apache::lonlocal; +use Apache::lonpageflip(); use GDBM_File; +use LONCAPA; + sub redirect_user { my ($r,$title,$url,$msg,$launch_nav) = @_; @@ -74,6 +77,21 @@ ENDREDIR return; } +sub error_page { + my ($r,$error,$dest)=@_; + &Apache::loncommon::content_type($r,'text/html'); + &Apache::loncommon::no_cache($r); + $r->send_http_header; + return OK if $r->header_only; + $r->print(&Apache::loncommon::start_page('Problems during Course Initialization'). + ''. + '
'.&mt('The following problems occurred:'). + $error. + '