-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (32 loc) · 1.02 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Simple config file for jCode Lab
*
*
* Released under the MIT license
*
* @copyright 2012 jCode
* @category config
* @version $Id$
* @author Jason Millward <[email protected]>
* @license http://opensource.org/licenses/MIT
* @package jCode Lab
*/
require_once( dirname( __FILE__ ) . '/../config.php' );
require_once( COMMON_PHP . '/jCode_Custom/recaptchalib.php');
require_once( COMMON_PHP . '/jCode_Custom/jTPL.php');
try {
// New jTPL class
$smarty = new jTPL( TEMPLATE_DIR );
$footers = array( '<script src="../assets/js/contactForm-submit.js"></script>' );
$smarty->assign('footers', $footers);
$smarty->assign('host', $_SERVER['HTTP_HOST']);
$smarty->assign('recaptcha', recaptcha_get_html(RECAPTCHA_PUBLIC, $error) );
// Display the page
$smarty->display('header.tpl');
$smarty->display('contactForm/contact.tpl');
$smarty->display('footer.tpl');
} catch ( exception $e ) {
die( $e->getMessage() );
}
?>