Fixes BR#9269. Now it actually validates if output of get_real_ip() is actual IP address. Added another validation to login.php. Thanks to blokaas for reporting this.

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8790 3d254a34-79dc-0310-9e5f-be208747d8a0
Changelog...

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8791 3d254a34-79dc-0310-9e5f-be208747d8a0
Applying BR#9269 patch to 2.0 development.

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8792 3d254a34-79dc-0310-9e5f-be208747d8a0