Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
you are right, but if i can find the concrete issue, maybe i can make it compatible to all versions of mysql and mariadb
I think it will work fine if you change the type datetime to timestamp
CREATE TABLE IF NOT EXISTS `/*TABLE_PREFIX*/t_spam_protection_ban_log` ( ... `dt_date_banned` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
all they are using MariaDB Version < 10.0.1 and facing this issue should change datetime to timestamp, i don't want to change it generally, to do not add other possible errors thereQuote from: ../assets/create_table.sqlCREATE TABLE IF NOT EXISTS `/*TABLE_PREFIX*/t_spam_protection_ban_log` ( ... `dt_date_banned` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
Add a feature in your plugin to check email addresses and website urls in subject and message on this form.
if (!osc_is_admin_user_logged_in() && !OC_ADMIN && spam_prot::newInstance()->_get('sp_contact_activate') == '1') { $trusted = spam_prot::newInstance()->_isBadOrTrusted(osc_logged_user_id(), 'contacts', 'trusted'); $bad = spam_prot::newInstance()->_isBadOrTrusted(osc_logged_user_id(), 'contacts', 'bad'); if ($bad) { osc_add_hook('item_contact_form', 'sp_block_baduser_contact'); } elseif (!$trusted) { if (spam_prot::newInstance()->_get('sp_contact_honeypot') == '1') { osc_add_hook('item_contact_form', 'sp_contact_form'); } osc_add_hook('hook_email_item_inquiry', 'sp_check_contact_item', 1); osc_add_hook('hook_email_contact_user', 'sp_check_contact_user', 1); }}
if (!osc_is_admin_user_logged_in() && !OC_ADMIN && spam_prot::newInstance()->_get('sp_contact_activate') == '1') { $trusted = spam_prot::newInstance()->_isBadOrTrusted(osc_logged_user_id(), 'contacts', 'trusted'); $bad = spam_prot::newInstance()->_isBadOrTrusted(osc_logged_user_id(), 'contacts', 'bad'); if ($bad) { osc_add_hook('contact_form', 'sp_block_baduser_contact'); osc_add_hook('item_contact_form', 'sp_block_baduser_contact'); } elseif (!$trusted) { if (spam_prot::newInstance()->_get('sp_contact_honeypot') == '1') { osc_add_hook('contact_form', 'sp_contact_form'); osc_add_hook('item_contact_form', 'sp_contact_form'); } osc_add_hook('hook_email_item_inquiry', 'sp_check_contact_item', 1); osc_add_hook('hook_email_contact_user', 'sp_check_contact_user', 1); osc_add_hook('post_item_send_friend_post', 'sp_check_contact_item', 1); }}
it's pretty easy
sorry did not finish readingalready dismantled the problem, but what is fraught with TIMESTAMP insteadDATETIME?
got ithttps://mariadb.com/kb/en/library/datetime/
thank you for this report, it is already fixed in my version
The last times i see ads marked as Spam in the listing list.But there is no check spam.If i check the ad there are no stopwords.But it is a true spamad with links to other websites.Is this the plugin who does it or is some extra power help me