Skip to content

Commit

Permalink
Captcha Control 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Colinax committed May 29, 2021
1 parent 55ca6d0 commit 780e31a
Show file tree
Hide file tree
Showing 18 changed files with 461 additions and 644 deletions.
3 changes: 2 additions & 1 deletion wbce/modules/captcha_control/index.php
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<?php header("Location: ../index.php",TRUE,301);
<?php
header("Location: ../index.php", true, 301);
28 changes: 15 additions & 13 deletions wbce/modules/captcha_control/info.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?php
/**
* @category modules
* @package captcha_control
* @author WBCE Project
* @copyright Thorn, Luise Hahne, Norbert Heimsath
* @license GPLv2 or any later
* WBCE CMS
* Way Better Content Editing.
* Visit https://wbce.org to learn more and to join the community.
*
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/

$module_directory = 'captcha_control';
$module_name = 'Captcha and Advanced-Spam-Protection (ASP) Control';
$module_function = 'tool';
$module_version = '2.0.3';
$module_version = '2.0.4';
$module_platform = '1.4.0';
$module_author = 'Thorn, Luise Hahne, Norbert Heimsath';
$module_license = 'WTFPL';
Expand All @@ -20,15 +23,14 @@

/**
* Version history
*
* 2.0.4 - cs fixed files
*
* 2.0.3
* - Add module_level core status
* - Update module_platform
* 2.0.3 - Add module_level core status
* - Update module_platform
*
* 2.0.2
* - Add Admintool Icon
* 2.0.2 - Add Admintool Icon
*
* 2.0.1
* - Add module_name translation
* 2.0.1 - Add module_name translation
*
**/
33 changes: 17 additions & 16 deletions wbce/modules/captcha_control/install.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php
/**
* WBCE CMS
* Way Better Content Editing.
* Visit https://wbce.org to learn more and to join the community.
*
* @category modules
* @package captcha_control
* @author WBCE Project
* @copyright Thorn, Luise Hahne, Norbert Heimsath
* @license GPLv2 or any later
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/

//no direct file access
if(count(get_included_files())==1) header("Location: ../index.php",TRUE,301);
if (count(get_included_files())==1) {
header("Location: ../index.php", true, 301);
}

// Default settings
Settings::Set ("enabled_captcha", true);
Settings::Set ("enabled_asp", true);
Settings::Set ("captcha_type", "calc_text");
Settings::Set ("asp_session_min_age", "20");
Settings::Set ("asp_view_min_age", "10");
Settings::Set ("asp_input_min_age", "5");
Settings::Set ("ct_text", "");



Settings::Set("enabled_captcha", true);
Settings::Set("enabled_asp", true);
Settings::Set("captcha_type", "calc_text");
Settings::Set("asp_session_min_age", "20");
Settings::Set("asp_view_min_age", "10");
Settings::Set("asp_input_min_age", "5");
Settings::Set("ct_text", "");
38 changes: 11 additions & 27 deletions wbce/modules/captcha_control/languages/DA.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<?php

// $Id: DA.php 1097 2009-07-27 06:58:07Z Ruebenwurzel $

/*
Website Baker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2009, Ryan Djurovich
Website Baker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Website Baker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Website Baker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-----------------------------------------------------------------------------------------
DANISH LANGUAGE FILE FOR THE CAPTCHA-CONTROL ADMIN TOOL
-----------------------------------------------------------------------------------------
*/
/**
* WBCE CMS
* Way Better Content Editing.
* Visit https://wbce.org to learn more and to join the community.
*
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/

// Headings and text outputs
$MOD_CAPTCHA_CONTROL['HEADING'] = 'Captcha og ASP styring';
Expand Down Expand Up @@ -56,4 +40,4 @@
$MOD_CAPTCHA['VERIFICATION_INFO_RES'] = 'Inds&Atilde;&brvbar;t resultat';
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Inds&Atilde;&brvbar;t tekst';
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Besvar sp&Atilde;¸rgsm&Atilde;&yen;l';
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Verificering mislykkedes';
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Verificering mislykkedes';
90 changes: 36 additions & 54 deletions wbce/modules/captcha_control/languages/DE.php
Original file line number Diff line number Diff line change
@@ -1,64 +1,46 @@
<?php

// $Id: DE.php 1179 2009-11-24 18:15:00Z Luisehahne $

/*
Website Baker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2009, Ryan Djurovich
Website Baker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Website Baker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Website Baker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-----------------------------------------------------------------------------------------
DEUTSCHE SPRACHDATEI FUER DAS CAPTCHA-CONTROL ADMINISTRATIONS TOOL
-----------------------------------------------------------------------------------------
*/

// Deutsche Modulbeschreibung
$module_name = 'CAPTCHA und Advanced Spam Protection (Fortgeschrittener Spam-Schutz)';
/**
* WBCE CMS
* Way Better Content Editing.
* Visit https://wbce.org to learn more and to join the community.
*
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/

// Modulbeschreibung
$module_name = 'CAPTCHA und Advanced Spam Protection (Fortgeschrittener Spam-Schutz)';
$module_description = 'Admin-Tool um das Verhalten von CAPTCHA und ASP zu konfigurieren.';

// Ueberschriften und Textausgaben
$MOD_CAPTCHA_CONTROL['HEADING'] = 'Captcha- und ASP Steuerung';
$MOD_CAPTCHA_CONTROL['HOWTO'] = 'Hiermit kann das Verhalten von "CAPTCHA" und "Advanced Spam Protection" (ASP) konfiguriert werden. Damit ASP in einem Modul wirken kann, muss das verwendete Modul entsprechend angepasst sein.';
$MOD_CAPTCHA_CONTROL['HEADING'] = 'Captcha- und ASP Steuerung';
$MOD_CAPTCHA_CONTROL['HOWTO'] = 'Hiermit kann das Verhalten von "CAPTCHA" und "Advanced Spam Protection" (ASP) konfiguriert werden. Damit ASP in einem Modul wirken kann, muss das verwendete Modul entsprechend angepasst sein.';

// Text and captions of form elements
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'] = 'CAPTCHA-Einstellungen';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'] = 'CAPTCHA-Typ';
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'] = 'Die CAPTCHA-Einstellungen f&uuml;r die Module befinden sich in den jeweiligen Modul-Optionen';
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'CAPTCHA f&uuml;r Registrierung aktivieren';
$MOD_CAPTCHA_CONTROL['ENABLED'] = 'Aktiviert';
$MOD_CAPTCHA_CONTROL['DISABLED'] = 'Ausgeschaltet';
$MOD_CAPTCHA_CONTROL['ASP_CONF'] = 'Erweiterter-Spam-Schutz (ASP) Einstellungen';
$MOD_CAPTCHA_CONTROL['ASP_TEXT'] = 'ASP benutzen (wenn im Modul vorhanden)';
$MOD_CAPTCHA_CONTROL['ASP_EXP'] = 'ASP versucht anhand der verschiedenen Verhaltensweisen zu erkennen, ob eine Formular-Eingabe von einem Menschen oder einem Spam-Bot kommt.';
$MOD_CAPTCHA_CONTROL['CALC_TEXT'] = 'Rechnung als Text';
$MOD_CAPTCHA_CONTROL['CALC_IMAGE'] = 'Rechnung als Bild';
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE'] = 'Rechnung als Bild mit wechselnden Schriften und Hintergr&uuml;nden';
$MOD_CAPTCHA_CONTROL['TTF_IMAGE'] = 'Bild mit wechselnden Schriften und Hintergr&uuml;nden';
$MOD_CAPTCHA_CONTROL['OLD_IMAGE'] = 'Alter Stil (nicht empfohlen)';
$MOD_CAPTCHA_CONTROL['TEXT'] = 'Text-CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Fragen und Antworten';
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'] = 'CAPTCHA-Einstellungen';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'] = 'CAPTCHA-Typ';
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'] = 'Die CAPTCHA-Einstellungen f&uuml;r die Module befinden sich in den jeweiligen Modul-Optionen';
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA'] = 'CAPTCHA f&uuml;r Registrierung aktivieren';
$MOD_CAPTCHA_CONTROL['ENABLED'] = 'Aktiviert';
$MOD_CAPTCHA_CONTROL['DISABLED'] = 'Ausgeschaltet';
$MOD_CAPTCHA_CONTROL['ASP_CONF'] = 'Erweiterter-Spam-Schutz (ASP) Einstellungen';
$MOD_CAPTCHA_CONTROL['ASP_TEXT'] = 'ASP benutzen (wenn im Modul vorhanden)';
$MOD_CAPTCHA_CONTROL['ASP_EXP'] = 'ASP versucht anhand der verschiedenen Verhaltensweisen zu erkennen, ob eine Formular-Eingabe von einem Menschen oder einem Spam-Bot kommt.';
$MOD_CAPTCHA_CONTROL['CALC_TEXT'] = 'Rechnung als Text';
$MOD_CAPTCHA_CONTROL['CALC_IMAGE'] = 'Rechnung als Bild';
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE'] = 'Rechnung als Bild mit wechselnden Schriften und Hintergr&uuml;nden';
$MOD_CAPTCHA_CONTROL['TTF_IMAGE'] = 'Bild mit wechselnden Schriften und Hintergr&uuml;nden';
$MOD_CAPTCHA_CONTROL['OLD_IMAGE'] = 'Alter Stil (nicht empfohlen)';
$MOD_CAPTCHA_CONTROL['TEXT'] = 'Text-CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT'] = 'Fragen und Antworten';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Bitte hier alles l&ouml;schen'."\n".'sonst werden Ihre &Auml;nderungen nicht gespeichert!'."\n".'### Beispiel ###'."\n".'Hier k&ouml;nnen sie Fragen und Antworten eingeben.'."\n".'Entweder:'."\n".'?Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".'?Frage 2'."\n".'!Antwort 2'."\n".' ... '."\n".'wenn nur eine Sprache benutzt wird.'."\n".''."\n".'Oder, wenn die Sprache relevant ist:'."\n".'?EN:What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### Beispiel ###'."\n".'';
$MOD_CAPTCHA['VERIFICATION'] = 'Pr&uuml;fziffer';
$MOD_CAPTCHA['ADDITION'] = 'plus';
$MOD_CAPTCHA['SUBTRAKTION'] = 'minus';
$MOD_CAPTCHA['MULTIPLIKATION'] = 'mal';
$MOD_CAPTCHA['VERIFICATION_INFO_RES'] = 'Bitte Ergebnis eintragen';
$MOD_CAPTCHA['VERIFICATION'] = 'Pr&uuml;fziffer';
$MOD_CAPTCHA['ADDITION'] = 'plus';
$MOD_CAPTCHA['SUBTRAKTION'] = 'minus';
$MOD_CAPTCHA['MULTIPLIKATION'] = 'mal';
$MOD_CAPTCHA['VERIFICATION_INFO_RES'] = 'Bitte Ergebnis eintragen';
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Bitte Text eintragen';
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Bitte Frage beantworten';
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Das Ergebnis ist falsch. Bitte tragen Sie es erneut ein';

?>
84 changes: 33 additions & 51 deletions wbce/modules/captcha_control/languages/EN.php
Original file line number Diff line number Diff line change
@@ -1,61 +1,43 @@
<?php

// $Id: EN.php 1179 2009-11-24 18:15:00Z Luisehahne $

/*
Website Baker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2009, Ryan Djurovich
Website Baker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Website Baker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Website Baker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-----------------------------------------------------------------------------------------
ENGLISH LANGUAGE FILE FOR THE CAPTCHA-CONTROL ADMIN TOOL
-----------------------------------------------------------------------------------------
*/
/**
* WBCE CMS
* Way Better Content Editing.
* Visit https://wbce.org to learn more and to join the community.
*
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/

// Headings and text outputs
$MOD_CAPTCHA_CONTROL['HEADING'] = 'Captcha and ASP control';
$MOD_CAPTCHA_CONTROL['HOWTO'] = 'Here you can control the behavior of "CAPTCHA" and "Advanced Spam Protection" (ASP). To get ASP work with a given module, this special module has to be adapted to make use of ASP.';
$MOD_CAPTCHA_CONTROL['HEADING'] = 'Captcha and ASP control';
$MOD_CAPTCHA_CONTROL['HOWTO'] = 'Here you can control the behavior of "CAPTCHA" and "Advanced Spam Protection" (ASP). To get ASP work with a given module, this special module has to be adapted to make use of ASP.';

// Text and captions of form elements
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'] = 'CAPTCHA Configuration';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'] = 'Type of CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'] = 'CAPTCHA settings for modules are located in the respective module settings';
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'Activate CAPTCHA for signup';
$MOD_CAPTCHA_CONTROL['ENABLED'] = 'Enabled';
$MOD_CAPTCHA_CONTROL['DISABLED'] = 'Disabled';
$MOD_CAPTCHA_CONTROL['ASP_CONF'] = 'Advanced Spam Protection Configuration';
$MOD_CAPTCHA_CONTROL['ASP_TEXT'] = 'Activate ASP (if available)';
$MOD_CAPTCHA_CONTROL['ASP_EXP'] = 'ASP tries to determine if a form-input was originated from a human or a spam-bot.';
$MOD_CAPTCHA_CONTROL['CALC_TEXT'] = 'Calculation as text';
$MOD_CAPTCHA_CONTROL['CALC_IMAGE'] = 'Calculation as image';
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE'] = 'Calculation as image with varying fonts and backgrounds';
$MOD_CAPTCHA_CONTROL['TTF_IMAGE'] = 'Image with varying fonts and backgrounds';
$MOD_CAPTCHA_CONTROL['OLD_IMAGE'] = 'Old style (not recommended)';
$MOD_CAPTCHA_CONTROL['TEXT'] = 'Text-CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Questions and Answers';
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'] = 'CAPTCHA Configuration';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'] = 'Type of CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'] = 'CAPTCHA settings for modules are located in the respective module settings';
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA'] = 'Activate CAPTCHA for signup';
$MOD_CAPTCHA_CONTROL['ENABLED'] = 'Enabled';
$MOD_CAPTCHA_CONTROL['DISABLED'] = 'Disabled';
$MOD_CAPTCHA_CONTROL['ASP_CONF'] = 'Advanced Spam Protection Configuration';
$MOD_CAPTCHA_CONTROL['ASP_TEXT'] = 'Activate ASP (if available)';
$MOD_CAPTCHA_CONTROL['ASP_EXP'] = 'ASP tries to determine if a form-input was originated from a human or a spam-bot.';
$MOD_CAPTCHA_CONTROL['CALC_TEXT'] = 'Calculation as text';
$MOD_CAPTCHA_CONTROL['CALC_IMAGE'] = 'Calculation as image';
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE'] = 'Calculation as image with varying fonts and backgrounds';
$MOD_CAPTCHA_CONTROL['TTF_IMAGE'] = 'Image with varying fonts and backgrounds';
$MOD_CAPTCHA_CONTROL['OLD_IMAGE'] = 'Old style (not recommended)';
$MOD_CAPTCHA_CONTROL['TEXT'] = 'Text-CAPTCHA';
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT'] = 'Questions and Answers';
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Delete this all to add your own entries'."\n".'or your changes won\'t be saved!'."\n".'### example ###'."\n".'Here you can enter Questions and Answers.'."\n".'Use:'."\n".'?What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?Question 2'."\n".'!Answer 2'."\n".''."\n".'if language doesn\'t matter.'."\n".' ... '."\n".'Or, if language do matter, use:'."\n".'?EN:What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### example ###'."\n".'';

$MOD_CAPTCHA['VERIFICATION'] = 'Verification';
$MOD_CAPTCHA['ADDITION'] = 'add';
$MOD_CAPTCHA['SUBTRAKTION'] = 'subtract';
$MOD_CAPTCHA['MULTIPLIKATION'] = 'multiply';
$MOD_CAPTCHA['VERIFICATION_INFO_RES'] = 'Fill in the result';
$MOD_CAPTCHA['VERIFICATION'] = 'Verification';
$MOD_CAPTCHA['ADDITION'] = 'add';
$MOD_CAPTCHA['SUBTRAKTION'] = 'subtract';
$MOD_CAPTCHA['MULTIPLIKATION'] = 'multiply';
$MOD_CAPTCHA['VERIFICATION_INFO_RES'] = 'Fill in the result';
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Fill in the text';
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Answer the question';
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Verification failed';

?>
Loading

0 comments on commit 780e31a

Please sign in to comment.