AdminPanel updates - changelog

-Admin menu updates
-Moved getchangelogtype/where to functions file and added to twig
-Added changelog editor to admin panel and updated changelog page
-Renamed the changelog md reader to clmd and edited the version file.
This commit is contained in:
Lee
2021-01-04 12:23:36 +00:00
parent 6c6af59b22
commit bb3602073c
11 changed files with 477 additions and 50 deletions

View File

@@ -1299,6 +1299,33 @@ function getBanType($typeId)
return "Unknown Type";
}
function getChangelogType($v)
{
switch($v) {
case 1:
return 'added';
case 2:
return 'removed';
case 3:
return 'changed';
case 4:
return 'fixed';
}
return 'unknown';
}
function getChangelogWhere($v)
{
switch($v) {
case 1:
return 'server';
case 2:
return 'website';
}
return 'unknown';
}
function getPlayerNameByAccount($id)
{
global $vowels, $ots, $db;