Changeset 11316 for extensions/CryptograPHP/maintain.inc.php
- Timestamp:
- 06/11/11 15:01:45 (2 years ago)
- Files:
-
- 1 modified
-
extensions/CryptograPHP/maintain.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/maintain.inc.php
r10841 r11316 6 6 if (!isset($conf['cryptographp_theme'])) 7 7 { 8 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp_theme","cryptographp ","CryptograPHP theme");');8 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp_theme","cryptographp,reject","CryptograPHP config");'); 9 9 } 10 10 } 11 11 12 function plugin_activate() 13 { 14 global $conf; 15 $conf['cryptographp_theme'] = explode(',', $conf['cryptographp_theme']); 16 17 if(count($conf['cryptographp_theme']) == 1) 18 { 19 pwg_query('UPDATE '.CONFIG_TABLE.' SET value = "'.$conf['cryptographp_theme'][0].',reject" WHERE param = "cryptographp_theme";'); 20 } 21 } 12 22 function plugin_uninstall() 13 23 {
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)