* You will need to create a re-captcha account for your site * Disabled by default to keep backwards compatability Fixes #179
18 lines
598 B
PHP
18 lines
598 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
|
|
if (!$config['website']['registration']) {
|
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Account registration is currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
|
$smarty->assign("CONTENT", "disabled.tpl");
|
|
} else {
|
|
if ($config['recaptcha']['enabled']) {
|
|
require_once(INCLUDE_DIR . '/recaptchalib.php');
|
|
$smarty->assign("RECAPTCHA", recaptcha_get_html($config['recaptcha']['public_key']));
|
|
}
|
|
// Tempalte specifics
|
|
$smarty->assign("CONTENT", "default.tpl");
|
|
}
|
|
?>
|