Is user banned forever? Query help!

Started by Matthew K., January 16, 2010, 09:57:41 AM

Previous topic - Next topic

Matthew K.

Hey everyone,

What would the proper query be to figure out if the user is banned forever? (Currently working with 1.1.11)
Obviously a query to {db_prefix}ban_groups, but I've not done a lot of querying before.

Thanks!

Matthew K.

Resolved. Code: if($_SESSION['ban']['expire_time'] == NULL)

Matthew K.

($_SESSION['ban']['expire_time'] == NULL) only works for 1.1.11 (not 2.0).

In 2.0 my code redirects EVERYONE not just users banned forever, works in 1.1.11. I also confirmed expire_time is still valid and obviously NULL = 0 in this case meaning forever.

Suggestions on what changes here?

Advertisement: