Revision 3386
Added by Jing Tao about 17 years ago
src/perl/register-dataset.cgi | ||
---|---|---|
316 | 316 |
|
317 | 317 |
# check if the user is logged in... |
318 | 318 |
my $session = CGI::Session->load() or die CGI::Session->errstr(); |
319 |
if ( $session->is_empty ) { |
|
319 |
if ( $session->is_empty && $FORM::cfg =~ 'esa' ) {
|
|
320 | 320 |
# no session found ... redirect to login page template |
321 | 321 |
$$templateVars{'showInstructions'} = 'true'; |
322 | 322 |
$$templateVars{'message'} = 'You must login to register your dataset.'; |
... | ... | |
3950 | 3950 |
#my $admindb = NCEAS::AdminDB->new(); |
3951 | 3951 |
#$admindb->connect($nceas_db, $nceas_db_user, $nceas_db_password); |
3952 | 3952 |
#my $projects = $admindb->getProjects(); |
3953 |
#my $projects = getTestProjectListFromTextFile();
|
|
3954 |
my $projects = getTestProjectList(); |
|
3953 |
my $projects = getTestProjectListFromTextFile(); |
|
3954 |
#my $projects = getTestProjectList();
|
|
3955 | 3955 |
return $projects; |
3956 | 3956 |
} |
3957 | 3957 |
|
Also available in: Unified diff
fixed bug that input form coudn't be shown.