source: extensions/CryptograPHP/include/common.inc.php @ 27153

Last change on this file since 27153 was 26072, checked in by mistic100, 10 years ago

try to simplify integration of captchas

File size: 593 bytes
Line 
1<?php
2defined('CRYPTO_ID') or die('Hacking attempt!');
3
4global $template;
5
6if (isset($conf['cryptographp_button_color']))
7{
8  $conf['cryptographp']['button_color'] = $conf['cryptographp_button_color'];
9}
10
11load_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.