Project

General

Profile

« Previous | Next » 

Revision 251

Added by ryan almost 19 years ago

Added captcha verification option to settings page

View differences:

trunk/wb/admin/settings/index.php
313 313
	$template->set_var('SMART_LOGIN_DISABLED', ' checked');
314 314
}
315 315

  
316
// Work-out if captcha verification feature is enabled
317
if(defined('CAPTCHA_VERIFICATION') AND CAPTCHA_VERIFICATION == true) {
318
	$template->set_var('CAPTCHA_VERIFICATION_ENABLED', ' checked');
319
} else {
320
	$template->set_var('CAPTCHA_VERIFICATION_DISABLED', ' checked');
321
}
322

  
316 323
// Work-out if section blocks feature is enabled
317 324
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) {
318 325
	$template->set_var('SECTION_BLOCKS_ENABLED', ' checked');
......
545 552
								'TEXT_WRITE' => $TEXT['WRITE'],
546 553
								'TEXT_EXECUTE' => $TEXT['EXECUTE'],
547 554
								'TEXT_SMART_LOGIN' => $TEXT['SMART_LOGIN'],
555
								'TEXT_CAPTCHA_VERIFICATION' => $TEXT['CAPTCHA_VERIFICATION'],
548 556
								'TEXT_MULTIPLE_MENUS' => $TEXT['MULTIPLE_MENUS'],
549 557
								'TEXT_HOMEPAGE_REDIRECTION' => $TEXT['HOMEPAGE_REDIRECTION'],
550 558
								'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
trunk/wb/admin/settings/template.html
176 176
		<label for="smart_login_false">{TEXT_DISABLED}</label>
177 177
	</td>
178 178
</tr>
179
<tr class="advanced">
180
	<td class="setting_name">{TEXT_CAPTCHA_VERIFICATION}:</td>
181
	<td class="setting_value" colspan="2">
182
		<input type="radio" name="captcha_verification" id="captcha_verification_true" style="width: 14px; height: 14px;" value="true"{CAPTCHA_VERIFICATION_ENABLED} />
183
		<label for="captcha_verification_true">{TEXT_ENABLED}</label>
184
		<input type="radio" name="captcha_verification" id="captcha_verification_false" style="width: 14px; height: 14px;" value="false"{CAPTCHA_VERIFICATION_DISABLED} />
185
		<label for="captcha_verification_false">{TEXT_DISABLED}</label>
186
	</td>
187
</tr>
179 188
<tr>
180 189
	<td class="setting_name">{TEXT_LOGIN}:</td>
181 190
	<td class="setting_value" colspan="2">

Also available in: Unified diff