mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-03 00:47:19 +00:00
Fix msg in admin panel
Fix msg in admin panel
This commit is contained in:
@@ -17,11 +17,12 @@
|
|||||||
## Copyright : TravianZ (c) 2010-2025. All rights reserved. ##
|
## Copyright : TravianZ (c) 2010-2025. All rights reserved. ##
|
||||||
## --------------------------------------------------------------------------- ##
|
## --------------------------------------------------------------------------- ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
if($_SESSION['access'] < MULTIHUNTER) die("Access Denied!");
|
if($_SESSION['access'] < MULTIHUNTER) die("Access Denied!");
|
||||||
include_once("../GameEngine/Generator.php");
|
include_once("../GameEngine/Generator.php");
|
||||||
include_once("../GameEngine/Technology.php");
|
include_once("../GameEngine/Technology.php");
|
||||||
include_once("../GameEngine/Message.php");
|
include_once("../GameEngine/Message.php");
|
||||||
include_once("../GameEngine/BBCode.php");
|
// ATENTIE: am scos BBCode de aici, il incarcam doar cand avem nevoie
|
||||||
|
|
||||||
$nid = isset($_GET['nid'])? (int)$_GET['nid'] : 0;
|
$nid = isset($_GET['nid'])? (int)$_GET['nid'] : 0;
|
||||||
$search = isset($_GET['q'])? $database->escape($_GET['q']) : '';
|
$search = isset($_GET['q'])? $database->escape($_GET['q']) : '';
|
||||||
@@ -34,7 +35,7 @@ $offset = ($page-1)*$limit;
|
|||||||
if($nid > 0){
|
if($nid > 0){
|
||||||
$msg = $database->getMessage($nid, 3);
|
$msg = $database->getMessage($nid, 3);
|
||||||
if(empty($msg)) die("Message ID $nid doesn't exist!");
|
if(empty($msg)) die("Message ID $nid doesn't exist!");
|
||||||
?>
|
?>
|
||||||
<link href="../<?php echo GP_LOCATE;?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css">
|
<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;?>lang/en/compact.css?f4b7i" rel="stylesheet" type="text/css">
|
||||||
<link href="../<?php echo GP_LOCATE;?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
<link href="../<?php echo GP_LOCATE;?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||||
@@ -63,8 +64,9 @@ if($nid > 0){
|
|||||||
$player = $msg[0]['player'];
|
$player = $msg[0]['player'];
|
||||||
$coor = $msg[0]['coor'];
|
$coor = $msg[0]['coor'];
|
||||||
$report = $msg[0]['report'];
|
$report = $msg[0]['report'];
|
||||||
|
include("../GameEngine/BBCode.php"); // <-- AICI trebuie, dupa ce setam variabilele
|
||||||
echo stripslashes(nl2br($bbcoded));
|
echo stripslashes(nl2br($bbcoded));
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="read_foot" class="msg_foot"></div>
|
<div id="read_foot" class="msg_foot"></div>
|
||||||
@@ -139,7 +141,7 @@ $msgs = $database->query("SELECT * FROM ".TB_PREFIX."mdata WHERE $where ORDER BY
|
|||||||
$preview = strip_tags($m['message']);
|
$preview = strip_tags($m['message']);
|
||||||
$preview = mb_substr($preview,0,90);
|
$preview = mb_substr($preview,0,90);
|
||||||
$cls = $m['owner']==0? 'system' : 'player';
|
$cls = $m['owner']==0? 'system' : 'player';
|
||||||
?>
|
?>
|
||||||
<a href="?p=msg&nid=<?php echo $m['id'];?>" style="text-decoration:none;color:inherit">
|
<a href="?p=msg&nid=<?php echo $m['id'];?>" style="text-decoration:none;color:inherit">
|
||||||
<div class="msg-card <?php echo $cls;?>">
|
<div class="msg-card <?php echo $cls;?>">
|
||||||
<div class="msg-top">
|
<div class="msg-top">
|
||||||
|
|||||||
+5
-6
@@ -527,11 +527,11 @@ body.app #lleft{box-shadow:none !important}
|
|||||||
<div class="tz-user">
|
<div class="tz-user">
|
||||||
<?php if($funct->CheckLogin()){ ?>
|
<?php if($funct->CheckLogin()){ ?>
|
||||||
<?php
|
<?php
|
||||||
$adminName = $database->getUserField($_SESSION['id'], 'username', 0);
|
$adminName = $database->getUserField($_SESSION['id'], 'username', 0);
|
||||||
$adminAccess = $database->getUserField($_SESSION['id'], 'access', 0);
|
$adminAccess = $database->getUserField($_SESSION['id'], 'access', 0);
|
||||||
$rank = $adminAccess == 9 ? 'Admin' : ($adminAccess == 8 ? 'MH' : 'User');
|
$rank = $adminAccess == 9 ? 'Admin' : ($adminAccess == 8 ? 'MH' : 'User');
|
||||||
?>
|
?>
|
||||||
Logged: <b><?=$adminName?></b> <span style="color:#999;font-size:11px">(<?=$rank?>)</span>
|
Logged: <b><?=$adminName?></b> <span style="color:#999;font-size:11px">(<?=$rank?>)</span>
|
||||||
<a href="?action=logout" class="tz-logout">Logout</a>
|
<a href="?action=logout" class="tz-logout">Logout</a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
Not Logged in
|
Not Logged in
|
||||||
@@ -585,7 +585,6 @@ Logged: <b><?=$adminName?></b> <span style="color:#999;font-size:11px">(<?=$rank
|
|||||||
</li>
|
</li>
|
||||||
<li class="sub"><a href="#">Messages</a>
|
<li class="sub"><a href="#">Messages</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?php echo rtrim(SERVER, '/'); ?>/nachrichten.php">Read In-Game Messages</a></li>
|
|
||||||
<li><a href="admin.php?p=massmessage">Create Mass Message</a></li>
|
<li><a href="admin.php?p=massmessage">Create Mass Message</a></li>
|
||||||
<li><a href="admin.php?p=sysmessage">Create System Message</a></li>
|
<li><a href="admin.php?p=sysmessage">Create System Message</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user