Changeset 28838


Ignore:
Timestamp:
Jun 29, 2014, 4:20:24 PM (10 years ago)
Author:
mistic100
Message:

use new maintain class

Location:
extensions/CryptograPHP
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/admin.php

    r28344 r28838  
    4848    );
    4949 
    50   conf_update_param('cryptographp', serialize($conf['cryptographp']));
     50  conf_update_param('cryptographp', $conf['cryptographp']);
    5151  $page['infos'][] = l10n('Information data registered in database');
    5252}
  • extensions/CryptograPHP/main.inc.php

    r28344 r28838  
    99*/
    1010
    11 /*
    12 Author note :
    13 Le plugin était appellé à l'origine CryptograPHP et utilisait la librairie CryptograPHP
    14 Puis il a été renommé Crypto Captcha pour plus de clareté
    15 La version actuelle s'appelle toujours Crypto Captcha mais utilise la librairie Securimage
    16 */
     11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    1712
    18 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    19 
     13// TODO : captcha on mobile
    2014if (mobile_theme())
    2115{
     
    2620define('CRYPTO_PATH' ,    PHPWG_PLUGINS_PATH . CRYPTO_ID . '/');
    2721define('CRYPTO_ADMIN',    get_root_url() . 'admin.php?page=plugin-' . CRYPTO_ID);
    28 define('CRYPTO_VERSION',  'auto');
    2922
    3023
     
    4639{
    4740  global $conf;
    48  
    49   include_once(CRYPTO_PATH . 'maintain.inc.php');
    50   $maintain = new CryptograPHP_maintain(CRYPTO_ID);
    51   $maintain->autoUpdate(CRYPTO_VERSION, 'install');
     41  $conf['cryptographp'] = safe_unserialize($conf['cryptographp']);
    5242 
    5343  load_language('plugin.lang', CRYPTO_PATH);
    54   $conf['cryptographp'] = unserialize($conf['cryptographp']);
    5544}
    5645
Note: See TracChangeset for help on using the changeset viewer.