PHP 7.0 compatibility (short tags replaced by normal)

This commit is contained in:
2018-02-04 13:36:19 +01:00
parent 2a335e9c6c
commit 75e3e43a5f
26 changed files with 225 additions and 225 deletions

View File

@@ -1,20 +1,20 @@
<? require_once('./templates/overall_header.tpl.php'); ?>
<?php require_once('./templates/overall_header.tpl.php'); ?>
<script src="templates/scripts/nick.js" type="text/javascript"></script>
<div id="content">
<br>
<div class="forum_table">
<div class="row">
<div class="hc1"><?= $this->TPL['user_info']['nick']; ?></div>
<div class="hc1"><?php echo $this->TPL['user_info']['nick']; ?></div>
<div class="hc4 hcpost f_hc4">
<? if ($_GET['id'] == $this->TPL['logged_id']) {?>
<?php if ($_GET['id'] == $this->TPL['logged_id']) {?>
<a href="index.php?mode=editprofile">Edit my profile &raquo;</a>
<? } else { ?> &nbsp; <? } ?>
<?php } else { ?> &nbsp; <?php } ?>
</div>
</div>
<div class="row">
<div class="tc1 tc2">
<?
<?php
if ($this->TPL['user_info']['avatar'] != null)
echo '<img src="'.$this->TPL['user_info']['avatar'].'" alt="user avatar">';
else
@@ -23,19 +23,19 @@
</div>
<div class="tc4 rc">
Joined: <span style="font-weight: bold"><?= $this->TPL['user_info']['regdate']; ?></span><br>
Last visit: <span style="font-weight: bold"><?= (($this->TPL['user_info']['lastvisit']!= null) ? $this->TPL['user_info']['lastvisit'] : 'Never') ?></span><br>
Posts: <span style="font-weight: bold"><?= $this->TPL['user_info']['post_count']; ?></span>; <span style="font-weight: bold"><?= $this->TPL['post_ratio']; ?>%</span> of total.<br>
Location: <span style="font-weight: bold"><?= $this->TPL['user_info']['location']; ?></span><br>
Joined: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['regdate']; ?></span><br>
Last visit: <span style="font-weight: bold"><?php echo (($this->TPL['user_info']['lastvisit']!= null) ? $this->TPL['user_info']['lastvisit'] : 'Never') ?></span><br>
Posts: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['post_count']; ?></span>; <span style="font-weight: bold"><?php echo $this->TPL['post_ratio']; ?>%</span> of total.<br>
Location: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['location']; ?></span><br>
</div>
</div>
<div class="row">
<div class="tc1 lc">
<a href="mailto:<?= $this->TPL['user_info']['email']; ?>" class="btn_small">Email</a>
<a href="mailto:<?php echo $this->TPL['user_info']['email']; ?>" class="btn_small">Email</a>
</div>
<div class="tc4 rc">
Status: <img src="templates/images/<? echo (($this->TPL['user_info']['user_IP']) ? 'online' : 'offline'); ?>.gif" alt="user status"><br>
Rank: <span style="font-weight: bold"><?= $this->getRankLevel($this->TPL['user_info']['rank']); ?>
Status: <img src="templates/images/<?php echo (($this->TPL['user_info']['user_IP']) ? 'online' : 'offline'); ?>.gif" alt="user status"><br>
Rank: <span style="font-weight: bold"><?php echo $this->getRankLevel($this->TPL['user_info']['rank']); ?>
</div>
</div>
@@ -43,23 +43,23 @@ Location: <span style="font-weight: bold"><?= $this->TPL['user_info']['location'
</div>
<br>
<? if ($this->TPL['user_info']['signature'] != null) { ?>
<?php if ($this->TPL['user_info']['signature'] != null) { ?>
<div class="forum_table">
<div class="row">
<div class="hc1 hc4"><?= $this->TPL['user_info']['nick']; ?>'s signature</div>
<div class="hc1 hc4"><?php echo $this->TPL['user_info']['nick']; ?>'s signature</div>
</div>
<div class="row">
<div class="tc1 tc4" style="text-align: left; max-width: 870px">
<span class="fsmall"><?= BBCode($this->TPL['user_info']['signature']); ?></span>
<span class="fsmall"><?php echo BBCode($this->TPL['user_info']['signature']); ?></span>
</div>
</div>
</div>
<? } ?>
<?php } ?>
</div>
<? require_once('./templates/overall_footer.tpl.php'); ?>
<?php require_once('./templates/overall_footer.tpl.php'); ?>