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,4 +1,4 @@
<? require_once('./templates/overall_header.tpl.php'); ?>
<?php require_once('./templates/overall_header.tpl.php'); ?>
<script type="text/javascript">
function confirm_action(c_name, url)
{
@@ -10,7 +10,7 @@ function confirm_action(c_name, url)
</script>
<div id="content">
<?
<?php
$items = 0;
for ($i=0; $i<count($this->TPL['forums_list']); $i++)
{
@@ -97,12 +97,12 @@ function confirm_action(c_name, url)
</div>
<div class="row">
<div class="tc1 tc4" style="text-align: left">
Our users have written <span style="font-weight: bold"><?= $this->TPL['posts_count']; ?></span> posts.<br>
We have <span style="font-weight: bold"><?= $this->TPL['users_count']; ?></span> unique users.<br>
Last registered user: <a href="index.php?mode=viewprofile&amp;id=<?= $this->TPL['last_user']['user_id']; ?>" style="font-weight: bold"><?= $this->TPL['last_user']['nick']; ?></a><br>
Our users have written <span style="font-weight: bold"><?php echo $this->TPL['posts_count']; ?></span> posts.<br>
We have <span style="font-weight: bold"><?php echo $this->TPL['users_count']; ?></span> unique users.<br>
Last registered user: <a href="index.php?mode=viewprofile&amp;id=<?php echo $this->TPL['last_user']['user_id']; ?>" style="font-weight: bold"><?php echo $this->TPL['last_user']['nick']; ?></a><br>
Users ranks: <a href="index.php?mode=userlist&amp;rank=admin"><span class="fadmin">Admin</span></a> &bull; <a href="index.php?mode=userlist&amp;rank=mod"><span class="fmod">Mod</span></a> &bull; User<br>
This forum is browsing by <span style="font-weight: bold"><?= $this->TPL['logged_users_count']; ?></span> logged users(list):<br>
<?
This forum is browsing by <span style="font-weight: bold"><?php echo $this->TPL['logged_users_count']; ?></span> logged users(list):<br>
<?php
if ($this->TPL['logged_users_count'] == 0) echo 'none.';
else
for ($i=0; $i<count($this->TPL['logged_users']); $i++)
@@ -120,4 +120,4 @@ function confirm_action(c_name, url)
</div>
</div>
<? require_once('./templates/overall_footer.tpl.php'); ?>
<?php require_once('./templates/overall_footer.tpl.php'); ?>