source: extensions/CryptograPHP/admin.php @ 11316

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

activate captcha on comment form

File size: 920 bytes
RevLine 
[10837]1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4load_language('plugin.lang', CRYPTO_PATH);
[11316]5$conf['cryptographp_theme'] = explode(',', $conf['cryptographp_theme']);
[10837]6
7if ( isset($_POST['submit']))
8{
[11316]9  $conf['cryptographp_theme'] = array(
10    $_POST['cryptographp_theme'],
11    $_POST['comments_action'],
12    );
13  conf_update_param('cryptographp_theme', implode(',', $conf['cryptographp_theme']));
[10837]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(
[11316]20  'cryptographp_theme' => $conf['cryptographp_theme'][0],
21  'comments_action' => $conf['cryptographp_theme'][1],
[10837]22  'available_themes' => array('cryptographp', 'bluenoise', 'gray', 'pencil', 'xcolor'),
23  'CRYPTO_PATH' => CRYPTO_PATH,
24  )
25);
26
[11316]27$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
[10837]28
29?>
Note: See TracBrowser for help on using the repository browser.