Skip to content

Commit

Permalink
Merge pull request #497 from Groruk/qol-patch
Browse files Browse the repository at this point in the history
QOL Patch | Address GDPR concerns
  • Loading branch information
Groruk authored Jul 27, 2018
2 parents c157383 + b8f6014 commit 62ea5e6
Showing 59 changed files with 811 additions and 1,677 deletions.
3 changes: 0 additions & 3 deletions web/config.php.template
Original file line number Diff line number Diff line change
@@ -41,6 +41,3 @@ define('STEAMAPIKEY', ''); // Steam API Key for Shizz
define('SB_WP_URL', ''); //URL of SourceBans Site
define('SB_EMAIL', '');
define('SB_NEW_SALT', '$5$'); //Salt for passwords

//define('DEVELOPER_MODE', true); // Use if you want to show debugmessages
//define('SB_MEM', '128M'); // Override php memory limit, if isn't enough
106 changes: 106 additions & 0 deletions web/configs/permissions/sourcemod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"SM_RESERVED_SLOT": {
"value": "a",
"display": "Reserved Slot"
},

"SM_GENERIC": {
"value": "b",
"display": "Generic Admin"
},

"SM_KICK": {
"value": "c",
"display": "Kick"
},

"SM_BAN": {
"value": "d",
"display": "Ban"
},

"SM_UNBAN": {
"value": "e",
"display": "Unban"
},

"SM_SLAY": {
"value": "f",
"display": "Slay"
},

"SM_MAP": {
"value": "g",
"display": "Map Change"
},

"SM_CVAR": {
"value": "h",
"display": "Change ConVars"
},

"SM_CONFIG": {
"value": "i",
"display": "Run Configs"
},

"SM_CHAT": {
"value": "j",
"display": "Admin Chat"
},

"SM_VOTE": {
"value": "k",
"display": "Start Votes"
},

"SM_PASSWORD": {
"value": "l",
"display": "Password Server"
},

"SM_RCON": {
"value": "m",
"display": "RCON"
},

"SM_CHEATS": {
"value": "n",
"display": "Enable Cheats"
},

"SM_ROOT": {
"value": "z",
"display": "Full Admin"
},

"SM_CUSTOM1": {
"value": "o",
"display": "Custom Flag 1"
},

"SM_CUSTOM2": {
"value": "p",
"display": "Custom Flag 2"
},

"SM_CUSTOM3": {
"value": "q",
"display": "Custom Flag 3"
},

"SM_CUSTOM4": {
"value": "r",
"display": "Custom flag 4"
},

"SM_CUSTOM5": {
"value": "s",
"display": "Custom Flag 5"
},

"SM_CUSTOM6": {
"value": "t",
"display": "Custom Flag 6"
}
}
161 changes: 161 additions & 0 deletions web/configs/permissions/web.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"ADMIN_LIST_ADMINS": {
"value": 1,
"display": "View Admins"
},

"ADMIN_ADD_ADMINS": {
"value": 2,
"display": "Add Admins"
},

"ADMIN_EDIT_ADMINS": {
"value": 4,
"display": "Edit Admins"
},

"ADMIN_DELETE_ADMINS": {
"value": 8,
"display": "Delete Admins"
},

"ADMIN_LIST_SERVERS": {
"value": 16,
"display": "View Servers"
},

"ADMIN_ADD_SERVER": {
"value": 32,
"display": "Add Servers"
},

"ADMIN_EDIT_SERVERS": {
"value": 64,
"display": "Edit Servers"
},

"ADMIN_DELETE_SERVERS": {
"value": 128,
"display": "Delete Servers"
},

"ADMIN_ADD_BAN": {
"value": 256,
"display": "Add Bans"
},

"ADMIN_EDIT_OWN_BANS": {
"value": 1024,
"display": "Edit Own Bans"
},

"ADMIN_EDIT_GROUP_BANS": {
"value": 2048,
"display": "Edit Group Bans"
},

"ADMIN_EDIT_ALL_BANS": {
"value": 4096,
"display": "Edit All Bans"
},

"ADMIN_BAN_PROTESTS": {
"value": 8192,
"display": "Ban Appeals"
},

"ADMIN_BAN_SUBMISSIONS": {
"value": 16384,
"display": "Ban Reports"
},

"ADMIN_DELETE_BAN": {
"value": 33554432,
"display": "Delete All Bans"
},

"ADMIN_UNBAN": {
"value": 67108864,
"display": "Unban All Bans"
},

"ADMIN_BAN_IMPORT": {
"value": 134217728,
"display": "Import Bans"
},

"ADMIN_UNBAN_OWN_BANS": {
"value": 1073741824,
"display": "Unban Own Bans"
},

"ADMIN_UNBAN_GROUP_BANS": {
"value": 2147483648,
"display": "Unban Group Bans"
},

"ADMIN_LIST_GROUPS": {
"value": 32768,
"display": "View Groups"
},

"ADMIN_ADD_GROUP": {
"value": 65536,
"display": "Add Groups"
},

"ADMIN_EDIT_GROUPS": {
"value": 131072,
"display": "Edit Groups"
},

"ADMIN_DELETE_GROUPS": {
"value": 262144,
"display": "Delete Groups"
},

"ADMIN_WEB_SETTINGS": {
"value": 524288,
"display": "Web Settings"
},

"ADMIN_LIST_MODS": {
"value": 1048576,
"display": "View Mods"
},

"ADMIN_ADD_MODS": {
"value": 2097152,
"display": "Add Mods"
},

"ADMIN_EDIT_MODS": {
"value": 4194304,
"display": "Edit Mods"
},

"ADMIN_DELETE_MODS": {
"value": 8388608,
"display": "Delete Mods"
},

"ADMIN_NOTIFY_SUB": {
"value": 268435456,
"display": "Ban Report Email Notifications"
},

"ADMIN_NOTIFY_PROTEST": {
"value": 536870912,
"display": "Ban Appeal Email Notifications"
},

"ADMIN_OWNER": {
"value": 16777216,
"display": "Owner"
},

"ALL_WEB": {
"value": 4294966783,
"display": "All Web Permissions"
}
}
Loading

0 comments on commit 62ea5e6

Please sign in to comment.