Changeset 11316 for extensions/CryptograPHP/admin.php
- Timestamp:
- Jun 11, 2011, 3:01:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/admin.php
r10837 r11316 3 3 4 4 load_language('plugin.lang', CRYPTO_PATH); 5 $conf['cryptographp_theme'] = explode(',', $conf['cryptographp_theme']); 5 6 6 7 if ( isset($_POST['submit'])) 7 8 { 8 $conf['cryptographp_theme'] = trim($_POST['cryptographp_theme']); 9 10 $query = ' 11 UPDATE '.CONFIG_TABLE.' 12 SET value="'.$conf['cryptographp_theme'].'" 13 WHERE param="cryptographp_theme" 14 LIMIT 1'; 15 pwg_query($query); 16 9 $conf['cryptographp_theme'] = array( 10 $_POST['cryptographp_theme'], 11 $_POST['comments_action'], 12 ); 13 conf_update_param('cryptographp_theme', implode(',', $conf['cryptographp_theme'])); 17 14 array_push($page['infos'], l10n('Information data registered in database')); 18 15 } … … 21 18 22 19 $template->assign(array( 23 'cryptographp_theme' => $conf['cryptographp_theme'], 20 'cryptographp_theme' => $conf['cryptographp_theme'][0], 21 'comments_action' => $conf['cryptographp_theme'][1], 24 22 'available_themes' => array('cryptographp', 'bluenoise', 'gray', 'pencil', 'xcolor'), 25 23 'CRYPTO_PATH' => CRYPTO_PATH, … … 27 25 ); 28 26 29 $template->assign_var_from_handle( 27 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 30 28 31 29 ?>
Note: See TracChangeset
for help on using the changeset viewer.