diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-09-16 09:52:00 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-09-16 09:52:00 +0000 |
| commit | 22f4d3346c2e82d401830ab61165d6a0305f976d (patch) | |
| tree | 9618bd4430b8b96af343fc43daae5802df53459b /admin/admin_liberty_inc.php | |
| parent | ee1b1270fd9c71bb376fdd98288e5eae87d0d971 (diff) | |
| download | liberty-22f4d3346c2e82d401830ab61165d6a0305f976d.tar.gz liberty-22f4d3346c2e82d401830ab61165d6a0305f976d.tar.bz2 liberty-22f4d3346c2e82d401830ab61165d6a0305f976d.zip | |
massive captcha cleanup, centralised captcha verification, added option to use freecap (settings in liberty admin screen), only one captcha verification needed per session
Diffstat (limited to 'admin/admin_liberty_inc.php')
| -rw-r--r-- | admin/admin_liberty_inc.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/admin/admin_liberty_inc.php b/admin/admin_liberty_inc.php index fe15b74..39de0b6 100644 --- a/admin/admin_liberty_inc.php +++ b/admin/admin_liberty_inc.php @@ -8,16 +8,32 @@ $formLibertyFeatures = array( 'label' => 'External image cache', 'note' => 'Enabling this will download and cache external images that are included.', ), + "liberty_cache_images" => array( + 'label' => 'External image cache', + 'note' => 'Enabling this will download and cache external images that are included.', + ), ); + if( $gBitSystem->isPackageActive( 'quota' ) ) { $formLibertyFeatures['liberty_quota'] = array( 'label' => 'Quota Usage System', 'note' => 'Limit users\' disk usage.', - 'page' => '', ); } $gBitSmarty->assign( 'formLibertyFeatures', $formLibertyFeatures ); +$formCaptcha = array( + "liberty_use_captcha_freecap" => array( + 'label' => 'Use Freecap', + 'note' => 'Use the Freecap captcha library to create the captcha. This produces nicer and better images than the bitweaver internal captcha method.', + ), + "freecap_use_dict" => array( + 'label' => 'Use Dictionary', + 'note' => 'Freecap can use real words or use random letters. Random letters are more difficult to decipher for humans as well as for bots.', + ), +); +$gBitSmarty->assign( 'formCaptcha', $formCaptcha ); + $formImageFeatures = array( "liberty_jpeg_originals" => array( 'label' => 'JPEG Originals', @@ -31,7 +47,7 @@ $formValues = array( 'image_processor', 'liberty_attachment_link_format', 'comme if( !empty( $_REQUEST['change_prefs'] ) ) { $errors = array(); - $formFeatures = array_merge( $formLibertyFeatures, $formImageFeatures ); + $formFeatures = array_merge( $formLibertyFeatures, $formImageFeatures, $formCaptcha ); foreach( $formFeatures as $item => $data ) { simple_set_toggle( $item, LIBERTY_PKG_NAME ); } |
