version 1.2, 2001/04/16 12:04:41
|
version 1.5, 2001/04/16 12:10:26
|
Line 8
|
Line 8
|
# directory and gathers metadata. |
# directory and gathers metadata. |
# The metadata is entered into a SQL database. |
# The metadata is entered into a SQL database. |
|
|
use strict; |
|
|
|
use IO::File; |
use IO::File; |
use HTML::TokeParser; |
use HTML::TokeParser; |
|
|
Line 35 while ($configline=<CONFIG>) {
|
Line 33 while ($configline=<CONFIG>) {
|
} |
} |
close(CONFIG); |
close(CONFIG); |
|
|
|
my $dbh; |
# ------------------------------------- Make sure that database can be accessed |
# ------------------------------------- Make sure that database can be accessed |
{ |
{ |
my $dbh; |
|
unless ( |
unless ( |
$dbh = DBI->connect("DBI:mysql:loncapa","www",$perlvar{'lonSqlAccess'},{ RaiseError =>0,PrintError=>0}) |
$dbh = DBI->connect("DBI:mysql:loncapa","www",$perlvar{'lonSqlAccess'},{ RaiseError =>0,PrintError=>0}) |
) { |
) { |
Line 73 foreach my $m (@metalist) {
|
Line 71 foreach my $m (@metalist) {
|
delete($ref->{'creationdate'}).','. |
delete($ref->{'creationdate'}).','. |
delete($ref->{'lastrevisiondate'}).','. |
delete($ref->{'lastrevisiondate'}).','. |
delete($ref->{'owner'}).','. |
delete($ref->{'owner'}).','. |
delete($ref->{'copyright'}). |
delete($ref->{'copyright'})); |
')'; |
|
$sth->execute(); |
$sth->execute(); |
} |
} |
|
|