Adds banned ip functions

Adds function to get banned ip's and adds the values to the template variables