reorganize get_real_ip function, and use filter_vars.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8797 3d254a34-79dc-0310-9e5f-be208747d8a0
fixes to get_real_ip function.


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