Thanks to Jako, there are some corrections done.
In addition I’ve added the IP of the potential attacker to the MODx log. I wanted to store it in the source field, but this field is only varchar(50) and therefore, it is to short.
The IP is added to the text at the first line.
There where also some printf where it should be sprintf, that is corrected now.
The new beta is available at
modx.phpids.0.6.1.1c.BETA3.zip
Btw: Is there a way to change the version number? I’ve done a copy and paste failure, the version should have been named 0.6.1.1 instead of 6.1.1. With editing the plugin I was not able to do it. My problem now is, if I use the correct version number, all new versions will be shown as a previous version, because 0.6.1.1 is smaller than 6.1.1.