feat: Support can join game and see messages

This commit is contained in:
Martin Ambrus
2017-10-22 11:19:38 +02:00
parent 4d6b18de4c
commit 8c61c6ec63
4 changed files with 81 additions and 40 deletions
+10 -5
View File
@@ -12,8 +12,8 @@
<div id="header">
<div id="mtop">
<a href="dorf1.php" id="n1" accesskey="1"><img src="img/x.gif" title="Village overview" alt="Village overview" /></a>
<a href="dorf2.php" id="n2" accesskey="2"><img src="img/x.gif" title="Village centre" alt="Village centre" /></a>
<a href="<?php echo ($_SESSION['id_user'] != 1 ? 'dorf1.php' : '#'); ?>" id="n1" accesskey="1"><img src="img/x.gif" title="Village overview" alt="Village overview" /></a>
<a href="<?php echo ($_SESSION['id_user'] != 1 ? 'dorf2.php' : '#'); ?>" id="n2" accesskey="2"><img src="img/x.gif" title="Village centre" alt="Village centre" /></a>
<a href="karte.php" id="n3" accesskey="3"><img src="img/x.gif" title="Map" alt="Map" /></a>
<a href="statistiken.php" id="n4" accesskey="4"><img src="img/x.gif" title="Statistics" alt="Statistics" /></a>
<?php
@@ -31,11 +31,14 @@
}
?>
<div id="n5" class="<?php echo $class ?>">
<a href="berichte.php" accesskey="5"><img src="img/x.gif" class="l" title="Reports" alt="Reports"/></a>
<a href="<?php echo ($_SESSION['id_user'] != 1 ? 'berichte.php' : '#'); ?>" accesskey="5"><img src="img/x.gif" class="l" title="Reports" alt="Reports"/></a>
<a href="nachrichten.php" accesskey="6"><img src="img/x.gif" class="r" title="Messages" alt="Messages" /></a>
</div>
<?php
// no PLUS needed for Support
if ($_SESSION['id_user'] != 1) {
?>
<a href="plus.php" id="plus">
<span class="plus_text">
<span class="plus_g">P</span>
@@ -43,7 +46,9 @@
<span class="plus_g">u</span>
<span class="plus_o">s</span>
</span><img src="img/x.gif" id="btn_plus" class="<?php echo ($session->plus == 1 && strtotime("NOW") <= $session->userinfo['plus'])? 'active' : 'inactive';?>" title="Plus menu" alt="Plus menu" /></a>
<?php
}
?>
<style>
.day_image {
+16 -2
View File
@@ -45,12 +45,26 @@ div.c1 {text-align: center}
echo "<a href=\"sysmsg.php\">".SYSTEM_MESSAGE."</a>";
echo "<a href=\"create_account.php\">Create Natars</a>";
} ?> <a href="logout.php"><?php echo LOGOUT;?></a></p>
<?php
// no PLUS needed for Support
if ($_SESSION['id_user'] != 1) {
?>
<p>
<a href="plus.php?id=3"><?php echo SERVER_NAME; ?> <b><span class="plus_g">P</span><span class="plus_o">l</span><span class="plus_g">u</span><span class="plus_o">s</span></b></a>
</p>
<?php
}
?>
<p>
<a href="rules.php"><b><?php echo GAME_RULES;?></b></a>
<a href="support.php"><b><?php echo SUPPORT;?></b></a>
<a href="rules.php"><b><?php echo GAME_RULES;?></b></a>
<?php
// no support for support :-D
if ($_SESSION['id_user'] != 1) {
?>
<a href="support.php"><b><?php echo SUPPORT;?></b></a>
<?php
}
?>
<br></p>
<?php
$timestamp = $database->isDeleting($session->uid);
+1 -1
View File
@@ -11,7 +11,7 @@
## ##
#################################################################################
$_SESSION['qtyp'] = QTYPE;
if (($_SESSION['qst'] < 38 && QTYPE == 37 && QUEST == true) || ($_SESSION['qst'] < 31 && QTYPE == 25 && QUEST == true) || ($_SESSION['qst'] >= 90 && QTYPE == 25 && QUEST == true)) {?>
if ($_SESSION['id_user'] != 1 && (($_SESSION['qst'] < 38 && QTYPE == 37 && QUEST == true) || ($_SESSION['qst'] < 31 && QTYPE == 25 && QUEST == true) || ($_SESSION['qst'] >= 90 && QTYPE == 25 && QUEST == true))) {?>
<div id="anm" style="width:120px; height:140px; visibility:hidden;"></div>
<div id="qge">
<?php if ($_SESSION['qst'] == 0 or (isset($_SESSION['qstnew']) && $_SESSION['qstnew']==1)){ ?>