simple:
Code:
chdir('../');
require_once('global.php');
//permissions check
if (!( $permissions['adminpermissions'] & ISMODERATOR))
{
print_no_permission();
}
problem with this suggestion is that it will close the chat for non admin, so you can't chat with them. i may come with a suggestion later, where admins and mods are listed, but no other... users are not listed but can chat with shown persons...