Changeset 14527 for extensions/CryptograPHP/maintain.inc.php
- Timestamp:
- Apr 29, 2012, 5:04:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/maintain.inc.php
r12617 r14527 1 1 <?php 2 define(' default_config', serialize(array(2 define('crypto_default_config', serialize(array( 3 3 'comments_action' => 'reject', 4 4 'theme' => 'gray', … … 24 24 if (!isset($conf['cryptographp'])) 25 25 { 26 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''. default_config.'\',"CryptograPHP config");');26 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.crypto_default_config.'\',"CryptograPHP config");'); 27 27 } 28 28 } … … 34 34 if (isset($conf['cryptograph_theme'])) 35 35 { 36 pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp_theme" LIMIT 1 ');36 pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp_theme" LIMIT 1;'); 37 37 } 38 38 39 if (!isset($conf['cryptograph ']))39 if (!isset($conf['cryptographp'])) 40 40 { 41 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''. default_config.'\',"CryptograPHP config");');41 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.crypto_default_config.'\',"CryptograPHP config");'); 42 42 } 43 43 } 44 44 45 function plugin_uninstall() 45 46 {
Note: See TracChangeset
for help on using the changeset viewer.