Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | load_language('plugin.lang', CRYPTO_PATH); |
---|
5 | |
---|
6 | if ( isset($_POST['submit'])) |
---|
7 | { |
---|
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 | |
---|
17 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
18 | } |
---|
19 | |
---|
20 | $template->set_filename('plugin_admin_content', dirname(__FILE__).'/admin.tpl'); |
---|
21 | |
---|
22 | $template->assign(array( |
---|
23 | 'cryptographp_theme' => $conf['cryptographp_theme'], |
---|
24 | 'available_themes' => array('cryptographp', 'bluenoise', 'gray', 'pencil', 'xcolor'), |
---|
25 | 'CRYPTO_PATH' => CRYPTO_PATH, |
---|
26 | ) |
---|
27 | ); |
---|
28 | |
---|
29 | $template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content'); |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.