New format compatible with CI 2.1.3

Old version of the file is *not* compatible with the current
code Igniter version, I had to rewrite it to be fully compatible.