mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 06:11:00 +00:00
feat: Admins can see Support messages if set in config
This commit is contained in:
@@ -271,6 +271,9 @@ define("ADMIN_EMAIL", "%AEMAIL%");
|
||||
// ***** Admin Name
|
||||
define("ADMIN_NAME", "%ANAME%");
|
||||
|
||||
// ***** Show Support Messages in Admin
|
||||
define("ADMIN_RECEIVE_SUPPORT_MESSAGES", %ASUPPMSGS%);
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////
|
||||
|
||||
@@ -65,6 +65,7 @@ class Process {
|
||||
$text = preg_replace("'%CONNECTT%'", $_POST['connectt'], $text);
|
||||
$text = preg_replace("'%AEMAIL%'", $_POST['aemail'], $text);
|
||||
$text = preg_replace("'%ANAME%'", $_POST['aname'], $text);
|
||||
$text = preg_replace("'%ASUPPMSGS%'", ($_POST['admin_support_msgs'] == 'True' ? 'true' : 'false'), $text);
|
||||
//$text = preg_replace("'%SUBDOM%'", $_POST['subdom'], $text);
|
||||
$text = preg_replace("'%LOGBUILD%'", $_POST['log_build'], $text);
|
||||
$text = preg_replace("'%LOGTECH%'", $_POST['log_tech'], $text);
|
||||
|
||||
@@ -251,6 +251,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
|
||||
<td><span class="f9 c6">Admin email:</span></td>
|
||||
<td><input type="text" name="aemail" id="aemail" value=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Show admin in stats:</span></td>
|
||||
<td>
|
||||
<select name="admin_rank">
|
||||
@@ -259,7 +260,15 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Include Support Messages in Admin Mailbox:</span></td>
|
||||
<td>
|
||||
<select name="admin_support_msgs">
|
||||
<option value="True" selected="selected">True</option>
|
||||
<option value="False">False</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user