Use %lmt and %ofs instead of LIMIT for dibi queries

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Rework DateTime handling in class.sqlLogDriver.php

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Add PostgreSQL database support

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Do not use mysql escaping (`), use dibi one ([])

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Use COUNT(*) instead of counting the returned number of login

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Do no reinvent dibi (use %in)

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Delete from [ajxp_user_rights] only for the current user (add [login] in where clause)
Also use more dibi (use %in)

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>