web-base/core/constants.php

15 lines
364 B
PHP
Raw Normal View History

2020-02-09 23:02:19 +01:00
<?php
const USER_GROUP_DEFAULT = 1;
2020-04-03 18:09:01 +02:00
const USER_GROUP_DEFAULT_NAME = "Default";
2020-02-09 23:02:19 +01:00
const USER_GROUP_ADMIN = 2;
2020-04-03 18:09:01 +02:00
const USER_GROUP_ADMIN_NAME = "Administrator";
function GroupName($index) {
$groupNames = array(
USER_GROUP_DEFAULT => USER_GROUP_DEFAULT_NAME,
USER_GROUP_ADMIN => USER_GROUP_ADMIN_NAME,
);
return ($groupNames[$index] ?? "Unknown Group");
}