Admin panel config

I don't think you should indiscriminately cast to int here, we could very well have configuration vars that are string.

If you want to shorthand this you can have a get_config_int or something, but i don't think that's needed.