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

Last change on this file since 20189 was 20189, checked in by mistic100, 11 years ago

fix for new guestbook template + code cleaning

File size: 572 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) 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->assign_var_from_handle('CRYPTOGRAPHP', 'cryptographp');
20
21?>
Note: See TracBrowser for help on using the repository browser.