source: extensions/CryptograPHP/admin.php @ 11375

Last change on this file since 11375 was 11316, checked in by mistic100, 9 years ago

activate captcha on comment form

File size: 920 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4load_language('plugin.lang', CRYPTO_PATH);
5$conf['cryptographp_theme'] = explode(',', $conf['cryptographp_theme']);
6
7if ( isset($_POST['submit']))
8{
9  $conf['cryptographp_theme'] = array(
10    $_POST['cryptographp_theme'],
11    $_POST['comments_action'],
12    );
13  conf_update_param('cryptographp_theme', implode(',', $conf['cryptographp_theme']));
14  array_push($page['infos'], l10n('Information data registered in database'));
15}
16
17$template->set_filename('plugin_admin_content', dirname(__FILE__).'/admin.tpl');
18
19$template->assign(array(
20  'cryptographp_theme' => $conf['cryptographp_theme'][0],
21  'comments_action' => $conf['cryptographp_theme'][1],
22  'available_themes' => array('cryptographp', 'bluenoise', 'gray', 'pencil', 'xcolor'),
23  'CRYPTO_PATH' => CRYPTO_PATH,
24  )
25);
26
27$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
28
29?>
Note: See TracBrowser for help on using the repository browser.