--- loncom/cgi/takeoffline.pl 2008/11/28 20:50:25 1.3 +++ loncom/cgi/takeoffline.pl 2008/12/25 01:56:03 1.4 @@ -2,7 +2,7 @@ $|=1; # Take machine offline, reroute traffic # -# $Id: takeoffline.pl,v 1.3 2008/11/28 20:50:25 raeburn Exp $ +# $Id: takeoffline.pl,v 1.4 2008/12/25 01:56:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -31,22 +31,23 @@ use strict; use lib '/home/httpd/lib/perl/'; use Apache::lonlocal; use LONCAPA::loncgi; +use LONCAPA::lonauthcgi; print "Content-type: text/html\n\n"; &main(); sub main { - if (!&LONCAPA::loncgi::check_ipbased_access('takeoffline')) { + if (!&LONCAPA::lonauthcgi::check_ipbased_access('takeoffline')) { if (!&LONCAPA::loncgi::check_cookie_and_load_env()) { &Apache::lonlocal::get_language_handle(); print(&LONCAPA::loncgi::missing_cookie_msg()); return; } - if (!&LONCAPA::loncgi::can_view('takeoffline')) { + if (!&LONCAPA::lonauthcgi::can_view('takeoffline')) { &Apache::lonlocal::get_language_handle(); - print(&LONCAPA::loncgi::unauthorized_msg('takeoffline')); + print(&LONCAPA::lonauthcgi::unauthorized_msg('takeoffline')); return; } }