Revision 3387
Added by Jing Tao about 17 years ago
src/perl/register-dataset.cgi | ||
---|---|---|
3946 | 3946 |
################################################################################ |
3947 | 3947 |
sub getProjectList { |
3948 | 3948 |
|
3949 |
#use NCEAS::AdminDB;
|
|
3950 |
#my $admindb = NCEAS::AdminDB->new();
|
|
3951 |
#$admindb->connect($nceas_db, $nceas_db_user, $nceas_db_password);
|
|
3952 |
#my $projects = $admindb->getProjects();
|
|
3953 |
my $projects = getTestProjectListFromTextFile(); |
|
3949 |
use NCEAS::AdminDB; |
|
3950 |
my $admindb = NCEAS::AdminDB->new(); |
|
3951 |
$admindb->connect($nceas_db, $nceas_db_user, $nceas_db_password); |
|
3952 |
my $projects = $admindb->getProjects(); |
|
3953 |
#my $projects = getTestProjectListFromTextFile();
|
|
3954 | 3954 |
#my $projects = getTestProjectList(); |
3955 | 3955 |
return $projects; |
3956 | 3956 |
} |
Also available in: Unified diff
Getting project list from nceas admin db.