Coder Social home page Coder Social logo

cleantalk / smf-antispam Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 6.0 522 KB

Anti-spam MOD for Simple Machine Forum

License: GNU General Public License v3.0

PHP 97.43% HTML 2.57%
smf smf-modifications simplemachines spambot php protection mod cleantalk-mod spam-protection

smf-antispam's Issues

cleantalk.org

cleantalk.org подымите - апач рухнул.И уже приличное время лежит ниже плинтуса.
Вы там вообще следите за своими серверами?

__() function conflict

Cleantalk conflicts with other mods using __() function as a wrapper for translation (for example very popular Light-Portal SMF mod).
https://github.com/CleanTalk/smf-antispam/search?q=__%28

This leads to:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to __() must be of the type array, string given, called in /var/www/html/Sources/cleantalk/lib/Cleantalk/Common/Firewall/FirewallModule.php on line 220

And this = forum down.

Cleantalk spams into logs

Sources/cleantalk/cleantalkMod.php Line 785
Undefined index: cleantalk_automod

This warning from cleantalk source fills error logs with useless information.
Code:



777: | if($ct_result->errno != 0 && !cleantalk_is_valid_js()){
-- | --
778: | cleantalk_log('deny post (errno !=0, invalid js test)' . strip_tags($ct_result->comment));
779: | fatal_error($ct_answer_text, false);
780: |  
781: | return;
782: | }
783: | if ($ct_result->allow == 0){
784: | $msgOptions['cleantalk_check_message_result'] = $ct_result->comment;
==>785: | if ($modSettings['cleantalk_automod']){
786: | if ($ct_result->stop_queue == 1){
787: | cleantalk_log('spam message "' . $ct_result->comment . '"');
788: | cleantalk_after_create_topic('Spam message blocked. Reason: ' . strip_tags($ct_result->comment).'. <br/>Username: '. $ct_request->sender_nickname.'<br/>E-mail'.$ct_request->sender_email.'<br/>Message: '.$ct_request->message);
789: | fatal_error($ct_answer_text, false);
790: | }else{

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.