Changeset 28838
- Timestamp:
- Jun 29, 2014, 4:20:24 PM (10 years ago)
- Location:
- extensions/CryptograPHP
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/admin.php
r28344 r28838 48 48 ); 49 49 50 conf_update_param('cryptographp', serialize($conf['cryptographp']));50 conf_update_param('cryptographp', $conf['cryptographp']); 51 51 $page['infos'][] = l10n('Information data registered in database'); 52 52 } -
extensions/CryptograPHP/main.inc.php
r28344 r28838 9 9 */ 10 10 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 */ 11 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 17 12 18 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 19 13 // TODO : captcha on mobile 20 14 if (mobile_theme()) 21 15 { … … 26 20 define('CRYPTO_PATH' , PHPWG_PLUGINS_PATH . CRYPTO_ID . '/'); 27 21 define('CRYPTO_ADMIN', get_root_url() . 'admin.php?page=plugin-' . CRYPTO_ID); 28 define('CRYPTO_VERSION', 'auto');29 22 30 23 … … 46 39 { 47 40 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']); 52 42 53 43 load_language('plugin.lang', CRYPTO_PATH); 54 $conf['cryptographp'] = unserialize($conf['cryptographp']);55 44 } 56 45
Note: See TracChangeset
for help on using the changeset viewer.