Ignore:
Timestamp:
11/27/18 16:55:02 (13 months ago)
Author:
plg
Message:

cleaner configuration manager on install/update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AntiAspi/initadmin.php

    r31362 r31952  
    1212}  
    1313  
     14function antiaspi_check_old_conf() 
     15{ 
     16  global $page; 
     17 
     18  $conf = array(); 
     19 
     20  $local_conf_filpath = PHPWG_ROOT_PATH. 'local/config/config.inc.php'; 
     21  if (file_exists($local_conf_filpath)) 
     22  { 
     23    @include($local_conf_filpath); 
     24  } 
     25 
     26  if (isset($conf['antiaspi'])) 
     27  { 
     28    $page['errors'][] = 'we have found some antiaspi settings in your local configuration, please remove it, no longer in use.'; 
     29  } 
     30} 
Note: See TracChangeset for help on using the changeset viewer.