Ignore:
Timestamp:
09/11/25 17:57:24 (3 days ago)
Author:
Kris Deugau
Message:

/trunk/uribl

Move the %config blurb inside the module so it's not splattered across all
the scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uribl/import-cur.pl

    r84 r86  
    3737
    3838my $datesth = $dbh->prepare("UPDATE urilist SET added=? WHERE uri=?");
    39 
    40 my %config;
    41 my $sth = $dbh->prepare("SELECT key,value FROM misc");
    42 $sth->execute;
    43 while (my ($key,$value) = $sth->fetchrow_array) {
    44   $config{$key} = $value;
    45 }
    46 $config{blzone} = 'uribl.company.com' if !$config{blzone};
    4739
    4840my @months = ('null','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
Note: See TracChangeset for help on using the changeset viewer.