Ignore:
Timestamp:
Jun 11, 2011, 3:01:45 PM (13 years ago)
Author:
mistic100
Message:

activate captcha on comment form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/admin.php

    r10837 r11316  
    33
    44load_language('plugin.lang', CRYPTO_PATH);
     5$conf['cryptographp_theme'] = explode(',', $conf['cryptographp_theme']);
    56
    67if ( isset($_POST['submit']))
    78{
    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']));
    1714  array_push($page['infos'], l10n('Information data registered in database'));
    1815}
     
    2118
    2219$template->assign(array(
    23   'cryptographp_theme' => $conf['cryptographp_theme'],
     20  'cryptographp_theme' => $conf['cryptographp_theme'][0],
     21  'comments_action' => $conf['cryptographp_theme'][1],
    2422  'available_themes' => array('cryptographp', 'bluenoise', 'gray', 'pencil', 'xcolor'),
    2523  'CRYPTO_PATH' => CRYPTO_PATH,
     
    2725);
    2826
    29 $template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
     27$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    3028
    3129?>
Note: See TracChangeset for help on using the changeset viewer.