version 1.5, 2008/11/28 20:50:25
|
version 1.6, 2008/12/25 01:56:03
|
Line 32 use lib '/home/httpd/lib/perl/';
|
Line 32 use lib '/home/httpd/lib/perl/';
|
use Apache::lonlocal; |
use Apache::lonlocal; |
use LONCAPA::Configuration; |
use LONCAPA::Configuration; |
use LONCAPA::loncgi; |
use LONCAPA::loncgi; |
|
use LONCAPA::lonauthcgi; |
|
|
print("Content-type: text/html\n\n"); |
print("Content-type: text/html\n\n"); |
|
|
&main(); |
&main(); |
|
|
sub main { |
sub main { |
if (!&LONCAPA::loncgi::check_ipbased_access('codeversions')) { |
if (!&LONCAPA::lonauthcgi::check_ipbased_access('codeversions')) { |
if (!&LONCAPA::loncgi::check_cookie_and_load_env()) { |
if (!&LONCAPA::loncgi::check_cookie_and_load_env()) { |
&Apache::lonlocal::get_language_handle(); |
&Apache::lonlocal::get_language_handle(); |
print(&LONCAPA::loncgi::missing_cookie_msg()); |
print(&LONCAPA::loncgi::missing_cookie_msg()); |
return; |
return; |
} |
} |
|
|
if (!&LONCAPA::loncgi::can_view('codeversions')) { |
if (!&LONCAPA::lonauthcgi::can_view('codeversions')) { |
&Apache::lonlocal::get_language_handle(); |
&Apache::lonlocal::get_language_handle(); |
print(&LONCAPA::loncgi::unauthorized_msg('codeversions')); |
print(&LONCAPA::lonauthcgi::unauthorized_msg('codeversions')); |
return; |
return; |
} |
} |
} |
} |