source: extensions/AntiAspi/initadmin.php

Last change on this file was 32689, checked in by plg, 2 years ago

compatibility Piwigo 12

File size: 406 bytes
Line 
1<?php
2function antiaspi_check_old_conf()
3{
4  global $page;
5
6  $conf = array();
7
8  $local_conf_filpath = PHPWG_ROOT_PATH. 'local/config/config.inc.php';
9  if (file_exists($local_conf_filpath))
10  {
11    @include($local_conf_filpath);
12  }
13
14  if (isset($conf['antiaspi']))
15  {
16    $page['errors'][] = 'we have found some antiaspi settings in your local configuration, please remove it, no longer in use.';
17  }
18}
Note: See TracBrowser for help on using the repository browser.