A good hook to check authorization and redirect?

I’m guessing the built-in template_redirect action is the best for this… 😀

http://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)