This should work:

function isAdmin()
{
  global $pun_user;

  if ($pun_user['g_id'] == PUN_ADMIN)
    return True;
  else
    return False;
}
lament wrote:

connor..

is there a "preview" mode or when I hit "Go" will it automatically delete with my specifications?

i just kinda want to see how many people haven't logged in in x amount of days or have only posted once. but from your verbiage, i think that when i hit "Go" it will delete them without confirmation. true?

User61 wrote:

Wouldn't it be nice if before the actual pruning, a list of users that are going to be pruned will be presented first (along with their stats and stuffs)?

I thought so, too, so I've hacked it a bit, and added a preview mode. There are some cosmetic things that could probably be done better, and I've just borrowed most of the code for showing users from userlist.php, so you might want to add other things to display about the users, but it seems to work. smile

You can find a patch to the plugin here: http://www.cinematicsight.co.uk/misc/AP … ment.patch

3

(1 replies, posted in PunBB 1.2 show off)

I've just upgraded a site I maintain, which used to use phpBB for the forums / user management. I am very impressed by how easy it was to integrate punBB into the site, and how well thought out the forum is in general. Even the styling is pretty easy, when you get the hang of it! Thankyou, Rickard and everyone else who's worked on punBB!

Anyway, enough rambling - here's the site: http://www.cinematicsight.co.uk