Changeset 201 for trunk/DNSDB.pm


Ignore:
Timestamp:
12/13/11 18:05:19 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Add perpage to config load
Switch SOA defaults to only pick up digits in config. Could be

updated to parse eg 1h, 2w, 30m, etc

Add group-tree open/closed pointer images to MANIFEST
Add an explicit value for makeactive on the newdomain template

to plug up a minor error log leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r200 r201  
    126126                # Other miscellanea
    127127                log_failures    => 1,   # log all evarthing by default
     128                perpage         => 15,
    128129        );
    129130
     
    208209      $def{contact}     = $1 if /^contact\s*=\s*([a-z0-9_.-]+)/i;
    209210      $def{prins}       = $1 if /^prins\s*=\s*([a-z0-9_.-]+)/i;
    210       $def{soattl}      = $1 if /^soattl\s*=\s*([a-z0-9_.-]+)/i;
    211       $def{refresh}     = $1 if /^refresh\s*=\s*([a-z0-9_.-]+)/i;
    212       $def{retry}       = $1 if /^retry\s*=\s*([a-z0-9_.-]+)/i;
    213       $def{expire}      = $1 if /^expire\s*=\s*([a-z0-9_.-]+)/i;
    214       $def{minttl}      = $1 if /^minttl\s*=\s*([a-z0-9_.-]+)/i;
    215       $def{ttl}         = $1 if /^ttl\s*=\s*([a-z0-9_.-]+)/i;
     211      $def{soattl}      = $1 if /^soattl\s*=\s*(\d+)/i;
     212      $def{refresh}     = $1 if /^refresh\s*=\s*(\d+)/i;
     213      $def{retry}       = $1 if /^retry\s*=\s*(\d+)/i;
     214      $def{expire}      = $1 if /^expire\s*=\s*(\d+)/i;
     215      $def{minttl}      = $1 if /^minttl\s*=\s*(\d+)/i;
     216      $def{ttl}         = $1 if /^ttl\s*=\s*(\d+)/i;
    216217      # Mail settings
    217218      $config{mailhost}         = $1 if /^mailhost\s*=\s*([a-z0-9_.-]+)/i;
     
    223224      # session - note this is fed directly to CGI::Session
    224225      $config{timeout}  = $1 if /^[tT][iI][mM][eE][oO][uU][tT]\s*=\s*(\d+[smhdwMy]?)/;
    225       # log failed actions
     226      # misc
    226227      $config{log_failures}     = $1 if /^log_failures\s*=\s*([a-z01]+)/i;
     228      $config{perpage}          = $1 if /^perpage\s*=\s*(\d+)/i;
    227229    }
    228230    close CFG;
Note: See TracChangeset for help on using the changeset viewer.