feat: Admins can see Support messages if set in config

This commit is contained in:
Martin Ambrus
2017-10-22 14:47:27 +02:00
parent e4d470693b
commit 965ba37f67
17 changed files with 65 additions and 14 deletions
+4
View File
@@ -394,6 +394,10 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
<td>Include Admin in Rank</td>
<td><?php if(INCLUDE_ADMIN == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(INCLUDE_ADMIN == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Include Support Messages in Admin Mailbox</td>
<td><?php if(ADMIN_RECEIVE_SUPPORT_MESSAGES == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(ADMIN_RECEIVE_SUPPORT_MESSAGES == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
</table>
<?php
+8
View File
@@ -41,6 +41,14 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
</select>
</td>
</tr>
<td>Include Support Messages in Admin Mailbox:</td>
<td>
<select name="admin_support_msgs">
<option value="True" <?php if (ADMIN_RECEIVE_SUPPORT_MESSAGES==true) echo "selected";?>>True</option>
<option value="False" <?php if (ADMIN_RECEIVE_SUPPORT_MESSAGES==false) echo "selected";?>>False</option>
</select>
</td>
</tr>
</tbody>
</table>
<br />
+1 -1
View File
@@ -9,7 +9,7 @@
## ##
#################################################################################
$msg = $database->getMessage($_GET['nid'],3);;
$msg = $database->getMessage($_GET['nid'],3);
if($msg)
{ ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css">