2020-02-09 23:02:19 +01:00
|
|
|
<?php
|
|
|
|
|
2020-06-23 15:31:09 +02:00
|
|
|
const USER_GROUP_MODERATOR = 1;
|
|
|
|
const USER_GROUP_MODERATOR_NAME = "Moderator";
|
|
|
|
const USER_GROUP_SUPPORT = 2;
|
|
|
|
const USER_GROUP_SUPPORT_NAME = "Support";
|
|
|
|
const USER_GROUP_ADMIN = 3;
|
2020-04-03 18:09:01 +02:00
|
|
|
const USER_GROUP_ADMIN_NAME = "Administrator";
|
|
|
|
|
|
|
|
function GroupName($index) {
|
|
|
|
$groupNames = array(
|
2020-06-23 15:31:09 +02:00
|
|
|
USER_GROUP_MODERATOR => USER_GROUP_MODERATOR_NAME,
|
|
|
|
USER_GROUP_SUPPORT => USER_GROUP_SUPPORT_NAME,
|
2020-04-03 18:09:01 +02:00
|
|
|
USER_GROUP_ADMIN => USER_GROUP_ADMIN_NAME,
|
|
|
|
);
|
|
|
|
|
|
|
|
return ($groupNames[$index] ?? "Unknown Group");
|
|
|
|
}
|