mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-20 02:00:58 +00:00
General fixes
+Completely coded "Players report" in the admin panel, now you can see any report you want +Added "Players message", you can now see every message of any player +Fully coded "IMG/Reports" section, it now works properly +Fully CSSed reports, they'll now look like in game +Centered the whole admin panel (because we're in 2018, lul)
This commit is contained in:
+31
-11
@@ -8,10 +8,33 @@
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
include_once("../GameEngine/Generator.php");
|
||||
include_once("../GameEngine/Technology.php");
|
||||
include_once("../GameEngine/Message.php");
|
||||
|
||||
$msg = $database->getMessage($_GET['nid'],3);
|
||||
if($msg)
|
||||
{ ?>
|
||||
if(isset($_GET['nid']) && is_numeric($_GET['nid'])) $msg = $database->getMessage($_GET['nid'], 3);
|
||||
else
|
||||
{
|
||||
$sql = "SELECT * FROM " . TB_PREFIX . "mdata ORDER BY time DESC ";
|
||||
$result = mysqli_query($GLOBALS["link"], $sql);
|
||||
$allMessages = $database->mysqli_fetch_all($result);
|
||||
}
|
||||
|
||||
if(!empty($allMessages)){
|
||||
?>
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7i" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<h1>Players Messages</h1>
|
||||
<div id="content" class="messages" style="padding: 0;">
|
||||
<?php
|
||||
include("Message/inbox.tpl");
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif(!empty($msg)){
|
||||
?>
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7i" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
@@ -20,10 +43,10 @@ if($msg)
|
||||
|
||||
<br />
|
||||
|
||||
<span class="b">Send To</span>: <?php echo $database->getUserField($msg[0]['target'],'username',0);?><br />
|
||||
<span class="b">Sent to</span>: <?php echo $database->getUserField($msg[0]['target'],'username',0);?>
|
||||
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<div style="padding: 43px 0 0;" id="content" class="messages">
|
||||
<h1>Message</h1>
|
||||
<div id="read_head" class="msg_head"></div>
|
||||
<div id="read_content" class="msg_content">
|
||||
<img src="../img/x.gif" id="label" class="read" alt="">
|
||||
@@ -45,15 +68,12 @@ $player = $msg[0]['player'];
|
||||
$coor = $msg[0]['coor'];
|
||||
$report = $msg[0]['report'];
|
||||
include("../GameEngine/BBCode.php");
|
||||
echo stripslashes(nl2br($bbcoded));
|
||||
echo stripslashes(nl2br($bbcoded));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="read_foot" class="msg_foot"></div>
|
||||
</div><?php
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Message ID ".$_GET['nid']." doesn't exist!";
|
||||
}
|
||||
else echo "Message ID ".$_GET['nid']." doesn't exist!";
|
||||
?>
|
||||
Reference in New Issue
Block a user