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'); ?>
<div id="content">
<br />
<div class="forum_table">
@@ -14,7 +14,7 @@
<div class="tc3 tab_desc" style="width: 180px">Last visit</div>
<div class="tc4 tab_desc" style="width: 100px">Posts</div>
</div>
<?
<?php
for ($i=0; $i<count($this->TPL['users_list']); $i++)
{
echo '<div class="row">'."\n";
@@ -39,27 +39,27 @@
</div>
<div class="row">
<div class="tc1 tc4">
<form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
Sort users by:
<select name="sort_type">
<option value="regdate" <?= $this->TPL['regdate_selected']; ?>>Registration date</option>
<option value="lastvisit" <?= $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
<option value="nick" <?= $this->TPL['username_selected']; ?>>Username</option>
<option value="post_count" <?= $this->TPL['posts_selected']; ?>>Posts count</option>
<option value="regdate" <?php echo $this->TPL['regdate_selected']; ?>>Registration date</option>
<option value="lastvisit" <?php echo $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
<option value="nick" <?php echo $this->TPL['username_selected']; ?>>Username</option>
<option value="post_count" <?php echo $this->TPL['posts_selected']; ?>>Posts count</option>
</select>
&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="sort_desc" value="Delete avatar" <?= $this->TPL['desc_checked']; ?> />Descending
<input type="checkbox" name="sort_desc" value="Delete avatar" <?php echo $this->TPL['desc_checked']; ?> />Descending
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Sort">
</form>
</div>
</div>
<div class="row">
<div class="tc1 tc4">Select only users with rank:
<a href="index.php?mode=userlist&amp;rank=admin"><?= $this->getRankLevel(RANK_ADMIN); ?></a> &bull;
<a href="index.php?mode=userlist&amp;rank=mod"><?= $this->getRankLevel(RANK_MOD); ?></a> &bull;
<a href="index.php?mode=userlist&amp;rank=user"><?= $this->getRankLevel(RANK_USER); ?></a></div>
<a href="index.php?mode=userlist&amp;rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> &bull;
<a href="index.php?mode=userlist&amp;rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> &bull;
<a href="index.php?mode=userlist&amp;rank=user"><?php echo $this->getRankLevel(RANK_USER); ?></a></div>
</div>
</div>
</div>
<? require_once('./templates/overall_footer.tpl.php'); ?>
<?php require_once('./templates/overall_footer.tpl.php'); ?>