PHP 7.0 compatibility (short tags replaced by normal)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
@@ -6,15 +6,15 @@ else
|
||||
?>
|
||||
|
||||
<div id="content">
|
||||
<? if ($this->TPL['error_msg'] != '') { ?>
|
||||
<?php if ($this->TPL['error_msg'] != '') { ?>
|
||||
<div class="error_form">
|
||||
<?= $this->TPL['error_msg']; ?>
|
||||
<?php echo $this->TPL['error_msg']; ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1"><?= $this->TPL['forum_form_name']; ?></div>
|
||||
<div class="hc1"><?php echo $this->TPL['forum_form_name']; ?></div>
|
||||
<div class="hc4"> </div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -38,7 +38,7 @@ else
|
||||
Reason:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<textarea id="signature" name="reason" id="reason" maxlength="150"><?= $this->TPL['reason']; ?></textarea>
|
||||
<textarea id="signature" name="reason" id="reason" maxlength="150"><?php echo $this->TPL['reason']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -53,4 +53,4 @@ else
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<? require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<a href="index.php?mode=admin&submode=addban" class="btn">Add ban</a>
|
||||
<br />
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="tc2 tab_desc">Reason</div>
|
||||
<div class="tc4 tab_desc" style="width: 70px"></div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['bans_list']); $i++)
|
||||
{
|
||||
echo '<div class="row">'."\n";
|
||||
@@ -33,4 +33,4 @@
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
@@ -6,15 +6,15 @@ else
|
||||
?>
|
||||
|
||||
<div id="content">
|
||||
<? if ($this->TPL['error_msg'] != '') { ?>
|
||||
<?php if ($this->TPL['error_msg'] != '') { ?>
|
||||
<div class="error_form">
|
||||
<?= $this->TPL['error_msg']; ?>
|
||||
<?php echo $this->TPL['error_msg']; ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1"><?= $this->TPL['cat_form_name']; ?></div>
|
||||
<div class="hc1"><?php echo $this->TPL['cat_form_name']; ?></div>
|
||||
<div class="hc4"> </div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ else
|
||||
Category name:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="30" name="name" id="name" value="<?= $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
<input type="text" maxlength="30" name="name" id="name" value="<?php echo $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -38,4 +38,4 @@ else
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
@@ -6,12 +6,12 @@ else
|
||||
?>
|
||||
|
||||
<div id="content">
|
||||
<? if ($this->TPL['error_msg'] != '') { ?>
|
||||
<?php if ($this->TPL['error_msg'] != '') { ?>
|
||||
<div class="error_form">
|
||||
<?= $this->TPL['error_msg']; ?>
|
||||
<?php echo $this->TPL['error_msg']; ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Overall configuration</div>
|
||||
@@ -23,7 +23,7 @@ else
|
||||
Forum name:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="30" name="forum_name" id="forum_name" value="<?= $this->TPL['forum_name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
<input type="text" maxlength="30" name="forum_name" id="forum_name" value="<?php echo $this->TPL['forum_name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -31,7 +31,7 @@ else
|
||||
Forum description:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="50" name="forum_desc" id="forum_desc" value="<?= $this->TPL['forum_desc']; ?>">
|
||||
<input type="text" maxlength="50" name="forum_desc" id="forum_desc" value="<?php echo $this->TPL['forum_desc']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -46,4 +46,4 @@ else
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
@@ -6,15 +6,15 @@ else
|
||||
?>
|
||||
|
||||
<div id="content">
|
||||
<? if ($this->TPL['error_msg'] != '') { ?>
|
||||
<?php if ($this->TPL['error_msg'] != '') { ?>
|
||||
<div class="error_form">
|
||||
<?= $this->TPL['error_msg']; ?>
|
||||
<?php echo $this->TPL['error_msg']; ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1"><?= $this->TPL['forum_form_name']; ?></div>
|
||||
<div class="hc1"><?php echo $this->TPL['forum_form_name']; ?></div>
|
||||
<div class="hc4"> </div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ else
|
||||
Forum name:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="50" name="name" id="name" value="<?= $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
<input type="text" maxlength="50" name="name" id="name" value="<?php echo $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -31,7 +31,7 @@ else
|
||||
Forum description:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="150" name="desc" id="desc" value="<?= $this->TPL['desc']; ?>" style="width: 400px">
|
||||
<input type="text" maxlength="150" name="desc" id="desc" value="<?php echo $this->TPL['desc']; ?>" style="width: 400px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -55,9 +55,9 @@ else
|
||||
Forum locked:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="radio" name="locked" value="1" <?= $this->TPL['lock_selected']; ?>>
|
||||
<input type="radio" name="locked" value="1" <?php echo $this->TPL['lock_selected']; ?>>
|
||||
Yes
|
||||
<input type="radio" name="locked" value="0" <?= $this->TPL['unlock_selected']; ?>>
|
||||
<input type="radio" name="locked" value="0" <?php echo $this->TPL['unlock_selected']; ?>>
|
||||
No
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,4 +73,4 @@ else
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,10 +1,10 @@
|
||||
<? require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<br>
|
||||
<a href="index.php?mode=admin&submode=addcat" class="btn" style="width: 130px; float: left">New Category</a>
|
||||
<a href="index.php?mode=admin&submode=addforum" class="btn" style="width: 130px; float: right">New Forum</a>
|
||||
<div style="clear: both"> </div>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['forums_list']); $i++)
|
||||
{
|
||||
if ($i > 0)
|
||||
@@ -62,8 +62,8 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
<? if (count($this->TPL['forums_list']) > 0) echo '</div>'; ?>
|
||||
<?php if (count($this->TPL['forums_list']) > 0) echo '</div>'; ?>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<? require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<script type="text/javascript">
|
||||
function confirm_action(c_name, url)
|
||||
{
|
||||
@@ -23,7 +23,7 @@ function confirm_action(c_name, url)
|
||||
Installation date:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['installation_date']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['installation_date']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -31,7 +31,7 @@ function confirm_action(c_name, url)
|
||||
Topics total:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['topics_total']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['topics_total']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@ function confirm_action(c_name, url)
|
||||
Posts total:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['posts_total']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['posts_total']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -49,7 +49,7 @@ function confirm_action(c_name, url)
|
||||
Users total:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['users_total']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['users_total']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -58,7 +58,7 @@ function confirm_action(c_name, url)
|
||||
Logged users total (last 5 min):
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['logged_users_total']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['logged_users_total']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,7 @@ function confirm_action(c_name, url)
|
||||
Script version:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['script_version']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['script_version']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,7 +92,7 @@ function confirm_action(c_name, url)
|
||||
<div class="tc3 tab_desc">Rank</div>
|
||||
<div class="tc4 tab_desc">IP</div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i < count($this->TPL['logged_users']); $i++)
|
||||
{
|
||||
echo '
|
||||
@@ -109,4 +109,4 @@ function confirm_action(c_name, url)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title><?= $this->TPL['meta_title']; ?></title>
|
||||
<title><?php echo $this->TPL['meta_title']; ?></title>
|
||||
<meta name="author" content="Piotr Dergun" />
|
||||
<meta name="generator" content="medit/1.2.0" />
|
||||
<link rel="stylesheet" href="templates/styles.css" type="text/css" />
|
||||
@@ -25,16 +25,16 @@
|
||||
</div>
|
||||
<br>
|
||||
<div id="userpanel">
|
||||
<? if ( $this->TPL['is_logged']) { ?>
|
||||
You are logged as: <span style="font-weight: bold"><?= $this->TPL['my_nick'] ?></span>
|
||||
<? } else { ?>
|
||||
<?php if ( $this->TPL['is_logged']) { ?>
|
||||
You are logged as: <span style="font-weight: bold"><?php echo $this->TPL['my_nick'] ?></span>
|
||||
<?php } else { ?>
|
||||
Welcome Guest! You are not logged.
|
||||
<? } ?><br>
|
||||
Actual time: <span style="font-weight: bold"><?= $this->TPL['actual_time']; ?></span><br>
|
||||
<?php } ?><br>
|
||||
Actual time: <span style="font-weight: bold"><?php echo $this->TPL['actual_time']; ?></span><br>
|
||||
</div>
|
||||
<br>
|
||||
<div id="navi_bar">
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['nav']); $i++)
|
||||
{
|
||||
echo '<a href="'.$this->TPL['nav'][$i]['url'].'" class="navigation">'.$this->TPL['nav'][$i]['name'].'</a>';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<? require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<br />
|
||||
<div class="forum_table">
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="tc3 tab_desc" style="width: 70px"></div>
|
||||
<div class="tc4 tab_desc" style="width: 70px"></div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['users_list']); $i++)
|
||||
{
|
||||
echo '<div class="row">'."\n";
|
||||
@@ -47,27 +47,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>
|
||||
|
||||
<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
|
||||
<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=admin&submode=users&rank=admin"><?= $this->getRankLevel(RANK_ADMIN); ?></a> •
|
||||
<a href="index.php?mode=admin&submode=users&rank=mod"><?= $this->getRankLevel(RANK_MOD); ?></a> •
|
||||
<a href="index.php?mode=admin&submode=users&rank=user"><?= $this->getRankLevel(RANK_USER); ?></a></div>
|
||||
<a href="index.php?mode=admin&submode=users&rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> •
|
||||
<a href="index.php?mode=admin&submode=users&rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> •
|
||||
<a href="index.php?mode=admin&submode=users&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'); ?>
|
||||
Reference in New Issue
Block a user