Skip to content

Commit

Permalink
Merge pull request #469 from LubricantJam/patch-1
Browse files Browse the repository at this point in the history
Updated Language
  • Loading branch information
rumblefrog authored May 18, 2018
2 parents 536d306 + 89739d0 commit ed9e99d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 67 deletions.
112 changes: 56 additions & 56 deletions web/includes/system-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function AddTab($title, $url, $desc, $active=false)
$tab_arr[1] = "Servers";
$tab_arr[2] = " Bans ";
$tab_arr[3] = "Comms";
$tab_arr[4] = "Report Player";
$tab_arr[5] = "Appeal Ban";
$tab_arr[4] = "Report a Player";
$tab_arr[5] = "Appeal a Ban";
$tabs = array();
$tabs['title'] = $title;
$tabs['url'] = $url;
Expand Down Expand Up @@ -115,10 +115,10 @@ function BuildPageTabs()
AddTab("Comms", "index.php?p=commslist", "All of the communication bans (such as chat gags and voice mutes) in the database can be viewed from here.");
}
if ($GLOBALS['config']['config.enablesubmit']=="1") {
AddTab("Report Player", "index.php?p=submit", "You can submit a demo or screenshot of a suspected cheater here. It will then be up for review by one of the admins");
AddTab("Report a Player", "index.php?p=submit", "You can submit a demo or screenshot of a suspected cheater here. It will then be up for review by one of the admins");
}
if ($GLOBALS['config']['config.enableprotest']=="1") {
AddTab("Appeal Ban", "index.php?p=protest", "Here you can appeal your ban. And prove your case as to why you should be unbanned.");
AddTab("Appeal a Ban", "index.php?p=protest", "Here you can appeal your ban. And prove your case as to why you should be unbanned.");
}
if ($userbank->is_admin()) {
AddTab(" Admin Panel ", "index.php?p=admin", "This is the control panel for SourceBans where you can setup new admins, add new server, etc.");
Expand Down Expand Up @@ -163,25 +163,25 @@ function BuildBreadcrumbs()
if (isset($_GET['c'])) {
switch ($_GET['c']) {
case "admins":
$cat = "Admin management";
$cat = "Admin Management";
break;
case "servers":
$cat = "Server management";
$cat = "Server Management";
break;
case "bans":
$cat = "Ban management";
$cat = "Ban Management";
break;
case "comms":
$cat = "Communication blocks management";
$cat = "Communication Blocks Management";
break;
case "groups":
$cat = "Group management";
$cat = "Group Management";
break;
case "settings":
$cat = "SourceBans settings";
$cat = "SourceBans Settings";
break;
case "mods":
$cat = "Mod management";
$cat = "Mod Management";
break;
default:
unset($_GET['c']);
Expand Down Expand Up @@ -310,101 +310,101 @@ function BitToString($mask, $masktype=0, $head=true)
return $string;
}
if (($mask & ADMIN_LIST_ADMINS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; View admins<br />";
$string .= "&bull; View Admins<br />";
}
if (($mask & ADMIN_ADD_ADMINS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Add admins<br />";
$string .= "&bull; Add Admins<br />";
}
if (($mask & ADMIN_EDIT_ADMINS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Edit admins<br />";
$string .= "&bull; Edit Admins<br />";
}
if (($mask & ADMIN_DELETE_ADMINS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Delete admins<br />";
$string .= "&bull; Delete Admins<br />";
}

if (($mask & ADMIN_LIST_SERVERS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; View servers<br />";
$string .= "&bull; View Servers<br />";
}
if (($mask & ADMIN_ADD_SERVER) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Add servers<br />";
$string .= "&bull; Add Servers<br />";
}
if (($mask & ADMIN_EDIT_SERVERS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Edit servers<br />";
$string .= "&bull; Edit Servers<br />";
}
if (($mask & ADMIN_DELETE_SERVERS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Delete servers<br />";
$string .= "&bull; Delete Servers<br />";
}

if (($mask & ADMIN_ADD_BAN) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Add bans<br />";
$string .= "&bull; Add Bans<br />";
}
if (($mask & ADMIN_EDIT_OWN_BANS) !=0 && ($mask & ADMIN_EDIT_ALL_BANS) ==0) {
$string .="&bull; Edit own bans<br />";
$string .="&bull; Edit Own Bans<br />";
}
if (($mask & ADMIN_EDIT_GROUP_BANS) !=0 && ($mask & ADMIN_EDIT_ALL_BANS) ==0) {
$string .= "&bull; Edit groups bans<br />";
$string .= "&bull; Edit Group Bans<br />";
}
if (($mask & ADMIN_EDIT_ALL_BANS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Edit all bans<br />";
$string .= "&bull; Edit All Bans<br />";
}
if (($mask & ADMIN_BAN_PROTESTS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Ban protests<br />";
$string .= "&bull; Ban Appeals<br />";
}
if (($mask & ADMIN_BAN_SUBMISSIONS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Ban submissions<br />";
$string .= "&bull; Ban Reports<br />";
}

if (($mask & ADMIN_UNBAN_OWN_BANS) !=0 && ($mask & ADMIN_UNBAN) ==0) {
$string .= "&bull; Unban own bans<br />";
$string .= "&bull; Unban Own Bans<br />";
}
if (($mask & ADMIN_UNBAN_GROUP_BANS) !=0 && ($mask & ADMIN_UNBAN) ==0) {
$string .= "&bull; Unban group bans<br />";
$string .= "&bull; Unban Group Bans<br />";
}
if (($mask & ADMIN_UNBAN) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Unban all bans<br />";
$string .= "&bull; Unban All Bans<br />";
}
if (($mask & ADMIN_DELETE_BAN) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Delete All bans<br />";
$string .= "&bull; Delete All Bans<br />";
}
if (($mask & ADMIN_BAN_IMPORT) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Import bans<br />";
$string .= "&bull; Import Bans<br />";
}

if (($mask & ADMIN_LIST_GROUPS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; View groups<br />";
$string .= "&bull; View Groups<br />";
}
if (($mask & ADMIN_ADD_GROUP) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Add groups<br />";
$string .= "&bull; Add Groups<br />";
}
if (($mask & ADMIN_EDIT_GROUPS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Edit groups<br />";
$string .= "&bull; Edit Groups<br />";
}
if (($mask & ADMIN_DELETE_GROUPS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Delete groups<br />";
$string .= "&bull; Delete Groups<br />";
}

if (($mask & ADMIN_NOTIFY_SUB) !=0 || ($mask & ADMIN_NOTIFY_SUB) !=0) {
$string .= "&bull; Submission email notifying<br />";
$string .= "&bull; Ban Report Email Notifications<br />";
}
if (($mask & ADMIN_NOTIFY_PROTEST) !=0 || ($mask & ADMIN_NOTIFY_PROTEST) !=0) {
$string .= "&bull; Protest email notifying<br />";
$string .= "&bull; Ban Appeal Email Notifications<br />";
}

if (($mask & ADMIN_WEB_SETTINGS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Web settings<br />";
$string .= "&bull; Web Settings<br />";
}

if (($mask & ADMIN_LIST_MODS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; View mods<br />";
$string .= "&bull; View Mods<br />";
}
if (($mask & ADMIN_ADD_MODS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Add mods<br />";
$string .= "&bull; Add Mods<br />";
}
if (($mask & ADMIN_EDIT_MODS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Edit mods<br />";
$string .= "&bull; Edit Mods<br />";
}
if (($mask & ADMIN_DELETE_MODS) !=0 || ($mask & ADMIN_OWNER) !=0) {
$string .= "&bull; Delete mods<br />";
$string .= "&bull; Delete Mods<br />";
}

if (($mask & ADMIN_OWNER) !=0) {
Expand All @@ -426,10 +426,10 @@ function SmFlagsToSb($flagstring, $head=true)
return $string;
}
if ((strstr($flagstring, "a") || strstr($flagstring, "z"))) {
$string .= "&bull; Reserved slot<br />";
$string .= "&bull; Reserved Slot<br />";
}
if ((strstr($flagstring, "b") || strstr($flagstring, "z"))) {
$string .= "&bull; Generic admin<br />";
$string .= "&bull; Generic Admin<br />";
}
if ((strstr($flagstring, "c") || strstr($flagstring, "z"))) {
$string .= "&bull; Kick<br />";
Expand All @@ -444,22 +444,22 @@ function SmFlagsToSb($flagstring, $head=true)
$string .= "&bull; Slay<br />";
}
if ((strstr($flagstring, "g") || strstr($flagstring, "z"))) {
$string .= "&bull; Map change<br />";
$string .= "&bull; Map Change<br />";
}
if ((strstr($flagstring, "h") || strstr($flagstring, "z"))) {
$string .= "&bull; Change cvars<br />";
$string .= "&bull; Change CVars<br />";
}
if ((strstr($flagstring, "i") || strstr($flagstring, "z"))) {
$string .= "&bull; Run configs<br />";
$string .= "&bull; Run Configs<br />";
}
if ((strstr($flagstring, "j") || strstr($flagstring, "z"))) {
$string .= "&bull; Admin chat<br />";
$string .= "&bull; Admin Chat<br />";
}
if ((strstr($flagstring, "k") || strstr($flagstring, "z"))) {
$string .="&bull; Start votes<br />";
$string .="&bull; Start Votes<br />";
}
if ((strstr($flagstring, "l") || strstr($flagstring, "z"))) {
$string .="&bull; Password server<br />";
$string .="&bull; Password Server<br />";
}
if ((strstr($flagstring, "m") || strstr($flagstring, "z"))) {
$string .="&bull; RCON<br />";
Expand All @@ -472,32 +472,32 @@ function SmFlagsToSb($flagstring, $head=true)
}

if ((strstr($flagstring, "o") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 1<br />";
$string .="&bull; Custom Flag 1<br />";
}
if ((strstr($flagstring, "p") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 2<br />";
$string .="&bull; Custom Flag 2<br />";
}
if ((strstr($flagstring, "q") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 3<br />";
$string .="&bull; Custom Flag 3<br />";
}
if ((strstr($flagstring, "r") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 4<br />";
}
if ((strstr($flagstring, "s") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 5<br />";
$string .="&bull; Custom Flag 5<br />";
}
if ((strstr($flagstring, "t") || strstr($flagstring, "z"))) {
$string .="&bull; Custom flag 6<br />";
$string .="&bull; Custom Flag 6<br />";
}


//if(($mask & SM_DEF_IMMUNITY) != 0)
//{
// $flagstring .="&bull; Default immunity<br />";
// $flagstring .="&bull; Default Immunity<br />";
//}
//if(($mask & SM_GLOBAL_IMMUNITY) != 0)
//{
// $flagstring .="&bull; Global immunity<br />";
// $flagstring .="&bull; Global Immunity<br />";
//}
return $string;
}
Expand Down
12 changes: 6 additions & 6 deletions web/themes/default/page_protestban.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<table style="width: 101%; margin: 0 0 -2px -2px;">
<tr>
<td colspan="3" class="listtable_top"><b>Protest a ban</b></td>
<td colspan="3" class="listtable_top"><b>Appeal a Ban</b></td>
</tr>
</table>
<div id="submit-main">
Before you proceed make sure you first check our banlist and search it by clicking <a href="index.php?p=banlist">here</a> if you are listed and for what reason.<br />
If you do find yourself listed on the banlist and find the reason for this to be untrue you can write a protest.<br /><br />
In order to appeal a ban, you must make sure you are banned via clicking <a href="index.php?p=banlist">here</a> to see if you are banned and for what reason.<br />
If you are indeed on our ban list and you feel it is unjust or any other circumstances, please fill out the appeal format below.<br /><br />
<form action="index.php?p=protest" method="post">
<input type="hidden" name="subprotest" value="1">
<table cellspacing='10' width='100%' align='center'>
Expand Down Expand Up @@ -62,7 +62,7 @@ If you do find yourself listed on the banlist and find the reason for this to be
</tr>
</table>
</form>
<b>What happens after you posted your protest?</b><br />
The admins will get notified of your protest. They will then review if the ban is conclusive. After reviewing you will get a reply, which usally means within 24 hours.<br /><br />
<b>Note:</b> Sending emails with threats to our admins, scolding or shouting will not get you unbanned and in fact we will delete your protest right away!
<br /><b>What happens after I post my appeal?</b><br />
The staff team will be notified of your appeal. They will then review if the ban is conclusive. After reviewing you will get a reply, which usally means within 24 hours.<br />
<b>Note:</b> Sending emails with threats to our admins, scolding or shouting will not get you unbanned and you will be permanently denied from using any of our services.
</div>
12 changes: 7 additions & 5 deletions web/themes/default/page_submitban.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<table style="width: 101%; margin: 0 0 -2px -2px;">
<tr>
<td colspan="3" class="listtable_top"><b>Submit a player</b></td>
<td colspan="3" class="listtable_top"><b>Submit a Report</b></td>
</tr>
</table>
<div id="submit-main">
Here you will be able to submit a ban for a player who is breaking the rules of the gameserver. When submitting a ban we request you to fill out all the fields to be as descriptive as possible in your comments. This will ensure that your ban submission is processed much faster.<br /><br />
For a short explination on how to create a demo, click <a href="javascript:void(0)" onclick="ShowBox('How To Record A Demo', 'While you are spectating the offending player, press the ` key on your keyboard. Then type record [demoname] and hit enter. Also type sb_status for extra information in SteamBans servers. The file will be in your mod folder.', 'blue', '', true);">here</a><br /><br />
In order to keep our servers running smoothly, offenders of our rules should be punished and we can't always be on call to help.<br />
When submitting a player report, we ask you to fill out the report as detailed as possible to help ban the offender as this will help us process your report quickly.<br />
If you are unsure on how to record evidence within in-game, please click
<a href="javascript:void(0)" onclick="ShowBox('How To Record Evidence', 'The best way to record evidence on someone breaking the rules would be to use Shadow Play or Plays.TV. Both pieces of software will record your game 24/7 with little to no impact on your game and you simply press a keybind to record the last X amount of minutes of gameplay which is perfect for catching rule breakers.<br /><br /> Alternatively, you can use the old method of using demos. While you are spectating the offending player, press the ` key on your keyboard to show the Developers Console. If this does not show, you will need to go into your Game Settings and enable this. Then type `record [demoname]` and hit enter, the file will then be in your mod folder of your game directory.', 'blue', '', true);">here</a> for an explanation.<br /><br />
<form action="index.php?p=submit" method="post" enctype="multipart/form-data">
<input type="hidden" name="subban" value="1">
<table cellspacing='10' width='100%' align='center'>
Expand All @@ -29,7 +31,7 @@
</tr>
<tr>
<td width="20%">
Players Nick Name<span class="mandatory">*</span>:</td>
Players Nickname<span class="mandatory">*</span>:</td>
<td>
<input type="text" size="40" maxlength="70" name="PlayerName" value="{$player_name}" class="textbox" style="width: 250px;" /></td>
</tr>
Expand Down Expand Up @@ -82,5 +84,5 @@
</table>
</form>
<b>What happens if someone gets banned?</b><br />
If someone gets banned, the specific STEAMID or IP will be included in this SourceBans database and everytime this player tries to connect to one of our servers he/she will be blocked and will receive a message that they are blocked by SourceBans.
If someone you reported gets banned, the SteamID or IP will be included onto the ban on the main bans list and everytime they try to connect to any server they will be blocked from joining and it will be logged into our database.
</div>

0 comments on commit ed9e99d

Please sign in to comment.