Ignore:
Timestamp:
Feb 26, 2016, 11:26:37 AM (8 years ago)
Author:
ddtddt
Message:

[extensions] - AntiAspi - update admin config page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AntiAspi/maintain.class.php

    r29307 r31370  
    4343  function update($old_version, $new_version, &$errors=array())
    4444  {
     45        global $conf; 
     46         
     47        if (!isset($conf['antiaspi']))
     48      {
     49                $conf['antiaspi'] = array(
     50                  'diff' => '20 pages in 00:00:10' ,
     51                  'same' => '15 pages in 00:00:30' ,
     52                  'banned during' => '23:59:59' ,
     53                  'only guest' => true ,
     54                  'only picture' => false ,
     55                  'allowed ip' => array('123.123.123.123','122.122.122.122'),
     56                );
     57                conf_update_param('antiaspi', $conf['antiaspi']);
     58      } 
     59         
    4560    $this->install($new_version, $errors);
    4661  }
Note: See TracChangeset for help on using the changeset viewer.