Last active
January 2, 2016 09:08
-
-
Save dirtyhenry/8280797 to your computer and use it in GitHub Desktop.
Spam identification for SPIP 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT auteur, email_auteur, LEFT(texte, 50) | |
FROM spip_forum | |
WHERE LEFT(texte, 20) LIKE '%http%' | |
AND statut <> 'spam' | |
ORDER BY maj DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE spip_forum | |
SET statut='spam' | |
WHERE LEFT(texte, 20) LIKE '%http%' | |
AND statut <> 'spam'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment