Hello, I'd like to receive an email when a client checkbox "Locked (disables all webs etc.)" is checked/unchecked. At least this information should be logged in /var/log/ispconfig/ispconfig.log when the debuglevel of the server is Debug. Can you help me and point me where to to this modification ? Thank you. Alexandre
if/when you make this modification, consider contributing it via a pull request at https://git.ispconfig.org/ispconfig/ispconfig3/
The admin and client get already notified by email when you activate the notification under system > server config > web. See ispconfig/server/lib/classes/cron.d/300-quota_notify.inc.php
All checkbox "Send .... notification|warning to admin" are already checked under system > server config > web (I've done that on my master ISPconfig server). But no email is sent, when I tick "Locked (disables all webs etc.)" on a client. I noticed that no email was sent by looking at my mail server logs.
Ok, so what I need is a notification (or something written in ispconfig.log) when I lock a client manually.
You can use a plugin in interface/lib/plugins and register this to client-changes: $app->plugin->registerEvent('client:clientn_after_update', 'ticket_plugin', 'client_update');