Changeset 24234
- Timestamp:
- Aug 25, 2013, 12:36:50 PM (11 years ago)
- Location:
- extensions/EasyCaptcha
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EasyCaptcha/admin.php
r24233 r24234 12 12 if ($loaded['cryptocaptcha']) 13 13 { 14 $page['warnings'][] = l10n(' easycaptcha_cryptocaptcha');14 $page['warnings'][] = l10n('We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'); 15 15 } 16 16 -
extensions/EasyCaptcha/language/en_UK/plugin.lang.php
r24215 r24234 30 30 $lang['Tic-tac-toe minigame'] = 'Tic-tac-toe minigame'; 31 31 $lang['Tic-tac-toe options'] = 'Tic-tac-toe options'; 32 $lang[' easycaptcha_drag_%s'] = 'To verify you are a human, please place the <b>%s</b> in the most right box bellow.';33 $lang[' easycaptcha_tictac'] = 'You are player X, click on the right case to complete the line.';34 $lang[' easycaptcha_javascript_public'] = 'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.';35 $lang[' easycaptcha_javascript_admin'] = 'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.';36 $lang[' easycaptcha_cryptocaptcha'] = 'We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.';32 $lang['To verify you are a human, please place the <b>%s</b> in the most right box bellow.'] = 'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'; 33 $lang['You are player X, click on the right case to complete the line.'] = 'You are player X, click on the right case to complete the line.'; 34 $lang['You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'] = 'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'; 35 $lang['This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'] = 'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'; 36 $lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'; 37 37 ?> -
extensions/EasyCaptcha/language/fr_FR/plugin.lang.php
r24226 r24234 30 30 $lang['Tic-tac-toe minigame'] = 'Minijeu morpion'; 31 31 $lang['Tic-tac-toe options'] = 'Options morpion'; 32 $lang[' easycaptcha_drag_%s'] = 'Pour vérifier que vous êtez un humain, veuillez placer le <b>%s</b> dans le cadre de droite.';33 $lang[' easycaptcha_tictac'] = 'Vous êtez le joueur X, cliquez dans la bonne case pour former une ligne complète.';34 $lang[' easycaptcha_javascript_public'] = 'Vous devez activer JavaScript pour pouvoir ajouter un commentaire, désolé du dérangement.';35 $lang[' easycaptcha_javascript_admin'] = 'Ce test requiert que JavaScript soit activé sur le navigateur du visteur. Environ 1% des utilisateurs d\'Internet ont JavaScript désactivé.';36 $lang[' easycaptcha_cryptocaptcha'] = 'Nous avons détecté que Crypto Captcha est activé sur votre galerie. Les deux plugins peuvent fonctionner en même temps, mais ous aucun prétexte il ne doivent être activés sur les mêmes pages.';32 $lang['To verify you are a human, please place the <b>%s</b> in the most right box bellow.'] = 'Pour vérifier que vous êtez un humain, veuillez placer le <b>%s</b> dans le cadre de droite.'; 33 $lang['You are player X, click on the right case to complete the line.'] = 'Vous êtez le joueur X, cliquez dans la bonne case pour former une ligne complète.'; 34 $lang['You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'] = 'Vous devez activer JavaScript pour pouvoir ajouter un commentaire, désolé du dérangement.'; 35 $lang['This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'] = 'Ce test requiert que JavaScript soit activé sur le navigateur du visteur. Environ 1% des utilisateurs d\'Internet ont JavaScript désactivé.'; 36 $lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'Nous avons détecté que Crypto Captcha est activé sur votre galerie. Les deux plugins peuvent fonctionner en même temps, mais ous aucun prétexte il ne doivent être activés sur les mêmes pages.'; 37 37 ?> -
extensions/EasyCaptcha/main.inc.php
r24233 r24234 31 31 else 32 32 { 33 add_event_handler('init', 'easycaptcha_document_init'); 34 add_event_handler('loc_end_section_init', 'easycaptcha_section_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 33 add_event_handler('loc_end_section_init', 'easycaptcha_document_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 35 34 } 36 35 … … 67 66 68 67 69 // modules : picture comment & register68 // modules 70 69 function easycaptcha_document_init() 71 70 { 72 global $conf, $ user;71 global $conf, $pwg_loaded_plugins, $page; 73 72 74 73 if (!is_a_guest()) return; … … 84 83 include(EASYCAPTCHA_PATH . 'include/picture.inc.php'); 85 84 } 86 87 } 88 89 // modules : album comment & contact & guestbook 90 function easycaptcha_section_init() 91 { 92 global $conf, $pwg_loaded_plugins, $page; 93 94 if (!is_a_guest() || !isset($page['section'])) return; 95 96 if ( 97 script_basename() == 'index' && 98 $page['section'] == 'categories' && isset($page['category']) && 99 isset($pwg_loaded_plugins['Comments_on_Albums']) && 100 $conf['EasyCaptcha']['activate_on']['category'] 101 ) 85 else if (isset($page['section'])) 102 86 { 103 $conf['EasyCaptcha']['template'] = 'comment'; 104 include(EASYCAPTCHA_PATH . 'include/category.inc.php'); 105 } 106 else if ( $page['section'] == 'contact' && $conf['EasyCaptcha']['activate_on']['contactform'] ) 107 { 108 $conf['EasyCaptcha']['template'] = 'contactform'; 109 include(EASYCAPTCHA_PATH . 'include/contactform.inc.php'); 110 } 111 else if ( $page['section'] == 'guestbook' && $conf['EasyCaptcha']['activate_on']['guestbook'] ) 112 { 113 $conf['EasyCaptcha']['template'] = 'guestbook'; 114 include(EASYCAPTCHA_PATH . 'include/guestbook.inc.php'); 87 if ( 88 script_basename() == 'index' && 89 $page['section'] == 'categories' && isset($page['category']) && 90 isset($pwg_loaded_plugins['Comments_on_Albums']) && 91 $conf['EasyCaptcha']['activate_on']['category'] 92 ) 93 { 94 $conf['EasyCaptcha']['template'] = 'comment'; 95 include(EASYCAPTCHA_PATH . 'include/category.inc.php'); 96 } 97 else if ( $page['section'] == 'contact' && $conf['EasyCaptcha']['activate_on']['contactform'] ) 98 { 99 $conf['EasyCaptcha']['template'] = 'contactform'; 100 include(EASYCAPTCHA_PATH . 'include/contactform.inc.php'); 101 } 102 else if ( $page['section'] == 'guestbook' && $conf['EasyCaptcha']['activate_on']['guestbook'] ) 103 { 104 $conf['EasyCaptcha']['template'] = 'guestbook'; 105 include(EASYCAPTCHA_PATH . 'include/guestbook.inc.php'); 106 } 115 107 } 116 108 } -
extensions/EasyCaptcha/template/admin.tpl
r24226 r24234 183 183 184 184 <div class="warnings my-warnings"> 185 <ul><li>{' easycaptcha_javascript_admin'|translate}</li></ul>185 <ul><li>{'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'|translate}</li></ul> 186 186 </div> 187 187 -
extensions/EasyCaptcha/template/comment.tpl
r24215 r24234 3 3 {* <!-- DRAG & DROP --> *} 4 4 {if $EASYCAPTCHA_CHALLENGE == 'drag'} 5 <p><label>{' easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></p>5 <p><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></p> 6 6 7 7 {* <!-- TIC TAC TOE --> *} 8 8 {else if $EASYCAPTCHA_CHALLENGE == 'tictac'} 9 <p><label>{' easycaptcha_tictac'|translate}</label></p>9 <p><label>{'You are player X, click on the right case to complete the line.'|translate}</label></p> 10 10 11 11 {/if} -
extensions/EasyCaptcha/template/common.inc.tpl
r24215 r24234 71 71 {capture name=easycaptcha} 72 72 <noscript id="easycaptcha_noscript"> 73 {' easycaptcha_javascript_public'|translate}73 {'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'|translate} 74 74 </noscript> 75 75 -
extensions/EasyCaptcha/template/contactform.tpl
r24215 r24234 5 5 {* <!-- DRAG & DROP --> *} 6 6 {if $EASYCAPTCHA_CHALLENGE == 'drag'} 7 <td class="title">{' easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</td>7 <td class="title">{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</td> 8 8 9 9 {footer_script} … … 14 14 {* <!-- TIC TAC TOE --> *} 15 15 {else if $EASYCAPTCHA_CHALLENGE == 'tictac'} 16 <td class="title">{' easycaptcha_tictac'|translate}</td>16 <td class="title">{'You are player X, click on the right case to complete the line.'|translate}</td> 17 17 18 18 {footer_script} -
extensions/EasyCaptcha/template/guestbook.tpl
r24215 r24234 4 4 {* <!-- DRAG & DROP --> *} 5 5 {if $EASYCAPTCHA_CHALLENGE == 'drag'} 6 <td colspan=2><label>{' easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></td>6 <td colspan=2><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></td> 7 7 8 8 {footer_script} … … 13 13 {* <!-- TIC TAC TOE --> *} 14 14 {else if $EASYCAPTCHA_CHALLENGE == 'tictac'} 15 <td colspan=2><label>{' easycaptcha_tictac'|translate}</label></td>15 <td colspan=2><label>{'You are player X, click on the right case to complete the line.'|translate}</label></td> 16 16 17 17 {footer_script} -
extensions/EasyCaptcha/template/register.tpl
r24215 r24234 5 5 {* <!-- DRAG & DROP --> *} 6 6 {if $EASYCAPTCHA_CHALLENGE == 'drag'} 7 <span class="property"><label>{' easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></span>7 <span class="property"><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></span> 8 8 9 9 {* <!-- TIC TAC TOE --> *} 10 10 {else if $EASYCAPTCHA_CHALLENGE == 'tictac'} 11 <span class="property"><label>{' easycaptcha_tictac'|translate}</label></span>11 <span class="property"><label>{'You are player X, click on the right case to complete the line.'|translate}</label></span> 12 12 13 13 {/if}
Note: See TracChangeset
for help on using the changeset viewer.