Nice.
Though bear in mind that in posts like this, it's often a good idea to specifically outline the changes made. Given that there are severe security implications of using a PHP file in your install that someone else has made, for the sake of trust a few quick notes are worthwhile

Good job though!
PS.
These changes look nice and clean, i always encourage use of addons rather than hacks, but if this one is necessary for you - go for it!