Originaly created plugin by Vincent DEBOUT, ported with some modifications to the new Mantis plugin system