Last change
on this file since 27586 was
26072,
checked in by mistic100, 11 years ago
|
try to simplify integration of captchas
|
File size:
593 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('CRYPTO_ID') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template; |
---|
5 | |
---|
6 | if (isset($conf['cryptographp_button_color'])) |
---|
7 | { |
---|
8 | $conf['cryptographp']['button_color'] = $conf['cryptographp_button_color']; |
---|
9 | } |
---|
10 | |
---|
11 | load_language('plugin.lang', CRYPTO_PATH); |
---|
12 | |
---|
13 | $template->assign(array( |
---|
14 | 'CRYPTO' => $conf['cryptographp'], |
---|
15 | 'CRYPTO_PATH' => get_absolute_root_url().CRYPTO_PATH, |
---|
16 | )); |
---|
17 | |
---|
18 | $template->set_filename('cryptographp', realpath(CRYPTO_PATH.'template/'.$conf['cryptographp']['template'].'.tpl')); |
---|
19 | $template->append('CRYPTO', array('parsed_content' => $template->parse('cryptographp', true)), true); |
---|
Note: See
TracBrowser
for help on using the repository browser.