Changeset 201


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

Location:
trunk
Files:
4 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;
  • trunk/Makefile

    r199 r201  
    3535        \
    3636        images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
    37         images/rev.png images/DESC.png images/ASC.png \
     37        images/rev.png images/DESC.png images/ASC.png images/tree_open.png images/tree_closed.png \
    3838        \
    3939        templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \
  • trunk/dns.cgi

    r198 r201  
    156156# pagination
    157157my $perpage = 15;
     158$perpage = $config{perpage} if $config{perpage};
    158159my $offset = ($webvar{offset} ? $webvar{offset} : 0);
    159160
  • trunk/templates/newdomain.tmpl

    r133 r201  
    1111<input type="hidden" name="page" value="adddomain" />
    1212<input type="hidden" name="newdomain" value="yes" />
     13<input type="hidden" name="makeactive" value="0" />
    1314
    1415<table class="container" width="450">
Note: See TracChangeset for help on using the changeset viewer.