2017-12-22, 07:39:10
In general, there are 2 kinds of changes:
- legal changes (like post a comment by user, install a plugin by admin, etc.)
- illegal changes (like code injection).
Most likely legal changes can trigger plugin's action, but illegal changes can use not-standard methods avoiding any triggers. So, you have to call the plugin directly to detect these changes.
I think the only way to implement a reliable changes notification is to call the plugin periodically (e.g. each day or each hour) using a cron job or Windows Scheduler task. I can add a script checking the changes and sending the emails as you want. You can call it from cron using wget or curl command. For example:
wget http://yoursite.com/plugins/files-warden/check.php
What do you think about this approach?
Sincerely,
Sergey Zyryanov
- legal changes (like post a comment by user, install a plugin by admin, etc.)
- illegal changes (like code injection).
Most likely legal changes can trigger plugin's action, but illegal changes can use not-standard methods avoiding any triggers. So, you have to call the plugin directly to detect these changes.
I think the only way to implement a reliable changes notification is to call the plugin periodically (e.g. each day or each hour) using a cron job or Windows Scheduler task. I can add a script checking the changes and sending the emails as you want. You can call it from cron using wget or curl command. For example:
wget http://yoursite.com/plugins/files-warden/check.php
What do you think about this approach?
Sincerely,
Sergey Zyryanov