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'); ?>
|
||||
@@ -1,11 +1,11 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
require_once('./templates/overall_header.tpl.php');
|
||||
?>
|
||||
|
||||
<form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div id="content">
|
||||
<br>
|
||||
<div class="forum_table">
|
||||
@@ -15,7 +15,7 @@ else
|
||||
|
||||
<div class="row">
|
||||
<div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px">
|
||||
<?= $this->TPL['message']; ?>
|
||||
<?php echo $this->TPL['message']; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -31,4 +31,4 @@ else
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? 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
|
||||
@@ -26,12 +26,12 @@ function checkForm()
|
||||
</script>
|
||||
|
||||
<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" onsubmit="return checkForm();" enctype="multipart/form-data">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();" enctype="multipart/form-data">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Basic informations</div>
|
||||
@@ -43,15 +43,15 @@ function checkForm()
|
||||
Nick:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<? if ($this->TPL['is_admin']) {?>
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
<? } else { ?>
|
||||
<span style="font-weight: bold"><?= $this->TPL['nick']; ?></span>
|
||||
<input type="hidden" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>">
|
||||
<? } ?>
|
||||
<?php if ($this->TPL['is_admin']) {?>
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>" required pattern=".{3,}" required title="3 characters minimum">
|
||||
<?php } else { ?>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['nick']; ?></span>
|
||||
<input type="hidden" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>">
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<? if (!$this->TPL['is_admin']) {?>
|
||||
<?php if (!$this->TPL['is_admin']) {?>
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
Old password:
|
||||
@@ -60,7 +60,7 @@ function checkForm()
|
||||
<input type="password" name="passwd_old" id="passwd_old" value=""> (type only if you want to change password or email.)
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
New password:
|
||||
@@ -82,7 +82,7 @@ function checkForm()
|
||||
Email address:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="email" name="email" id="email" value="<?= $this->TPL['email']; ?>" required>
|
||||
<input type="email" name="email" id="email" value="<?php echo $this->TPL['email']; ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -106,7 +106,7 @@ function checkForm()
|
||||
Location:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="40" name="location" id="location" value="<?= $this->TPL['location']; ?>">
|
||||
<input type="text" maxlength="40" name="location" id="location" value="<?php echo $this->TPL['location']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -114,7 +114,7 @@ function checkForm()
|
||||
Signature:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<textarea name="signature" id="signature" maxlength="300"><?= $this->TPL['signature']; ?></textarea>
|
||||
<textarea name="signature" id="signature" maxlength="300"><?php echo $this->TPL['signature']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -123,8 +123,8 @@ function checkForm()
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
Current avatar:<br>
|
||||
<img src="<? if ($this->TPL['avatar'] == null) echo 'templates/images/no_av.gif'; else echo $this->TPL['avatar']; ?>" alt="user avatar"><br>
|
||||
<? if ($this->TPL['avatar'] != null) { ?> <input type="checkbox" name="delete_avatar" value="Delete avatar" /> Delete avatar<br> <? } ?>
|
||||
<img src="<?php if ($this->TPL['avatar'] == null) echo 'templates/images/no_av.gif'; else echo $this->TPL['avatar']; ?>" alt="user avatar"><br>
|
||||
<?php if ($this->TPL['avatar'] != null) { ?> <input type="checkbox" name="delete_avatar" value="Delete avatar" /> Delete avatar<br> <?php } ?>
|
||||
|
||||
<input type="file" name="avatar" id="avatar" value="">
|
||||
</div>
|
||||
@@ -138,7 +138,7 @@ function checkForm()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? if ($this->TPL['is_admin']) {?>
|
||||
<?php if ($this->TPL['is_admin']) {?>
|
||||
<br>
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
@@ -150,11 +150,11 @@ function checkForm()
|
||||
User rank:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="radio" name="user_rank" value="0" <?= $this->TPL['user_selected']; ?> >
|
||||
<input type="radio" name="user_rank" value="0" <?php echo $this->TPL['user_selected']; ?> >
|
||||
User
|
||||
<input type="radio" name="user_rank" value="1" <?= $this->TPL['mod_selected']; ?>>
|
||||
<input type="radio" name="user_rank" value="1" <?php echo $this->TPL['mod_selected']; ?>>
|
||||
<span class="fmod">Mod</span>
|
||||
<input type="radio" name="user_rank" value="2" <?= $this->TPL['admin_selected']; ?>>
|
||||
<input type="radio" name="user_rank" value="2" <?php echo $this->TPL['admin_selected']; ?>>
|
||||
<span class="fadmin">Admin</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,9 +167,9 @@ function checkForm()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,13 +1,13 @@
|
||||
<?
|
||||
<?php
|
||||
if ($_GET['mode'] == 'admin')
|
||||
require_once('./templates/admin/overall_header.tpl.php');
|
||||
else
|
||||
require_once('./templates/overall_header.tpl.php');
|
||||
?>
|
||||
|
||||
<? if ($this->TPL['url'] != '') { ?>
|
||||
<meta http-equiv="refresh" content="<?= $this->TPL['timeout']; ?>; url=<?= $this->TPL['url']; ?>">
|
||||
<? } ?>
|
||||
<?php if ($this->TPL['url'] != '') { ?>
|
||||
<meta http-equiv="refresh" content="<?php echo $this->TPL['timeout']; ?>; url=<?php echo $this->TPL['url']; ?>">
|
||||
<?php } ?>
|
||||
|
||||
<div id="content">
|
||||
<br>
|
||||
@@ -18,11 +18,11 @@ else
|
||||
|
||||
<div class="row">
|
||||
<div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px">
|
||||
<?= $this->TPL['message']; ?>
|
||||
<?php echo $this->TPL['message']; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<script type="text/javascript" src="templates/scripts/chkcookie.js">
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
create_cookie("checkcookie", "testvalue", 0);
|
||||
</script>
|
||||
<p id="js_msg" style="color: red; font-weight: bold">You must enable cookies if you want log in</p>
|
||||
<? 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">Log in</div>
|
||||
@@ -24,7 +24,7 @@
|
||||
Nick:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>" required>
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -51,4 +51,4 @@
|
||||
erase_cookie("checkcookie");
|
||||
|
||||
</script>
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -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&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&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&rank=admin"><span class="fadmin">Admin</span></a> • <a href="index.php?mode=userlist&rank=mod"><span class="fmod">Mod</span></a> • 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'); ?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_header.tpl.php'); ?>
|
||||
|
||||
<form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<div id="content">
|
||||
<br>
|
||||
<div class="forum_table">
|
||||
@@ -14,7 +14,7 @@
|
||||
Topic title:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['topic_info']['topic_title']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['topic_info']['topic_title']; ?></span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
Topic is in forum:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<span style="font-weight: bold"><?= $this->TPL['topic_info']['forum_name']; ?></span>
|
||||
<span style="font-weight: bold"><?php echo $this->TPL['topic_info']['forum_name']; ?></span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<select name="forum_id">
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['forums_list']); $i++)
|
||||
{
|
||||
$sel = ($this->TPL['forums_list'][$i]['forum_id'] == $this->TPL['topic_info']['forum_id']) ? 'selected="selected"' : '';
|
||||
@@ -64,4 +64,4 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? 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" />
|
||||
@@ -13,38 +13,38 @@
|
||||
<div id="top">
|
||||
<div style="width: 30%; float:left"><img src="templates/images/uf_logo.svg" height="130" alt="µF logo"></div>
|
||||
<div style="width: 70%; float: left">
|
||||
<h1><?= $this->TPL['forum_name']; ?></h1>
|
||||
<h2><?= $this->TPL['forum_desc']; ?></h2>
|
||||
<h1><?php echo $this->TPL['forum_name']; ?></h1>
|
||||
<h2><?php echo $this->TPL['forum_desc']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a href="index.php">Main Page</a></li>
|
||||
<li><a href="index.php?mode=userlist">Userlist</a></li>
|
||||
<? if ( $this->TPL['is_logged']) { ?>
|
||||
<?php if ( $this->TPL['is_logged']) { ?>
|
||||
<li><a href="index.php?mode=myprofile">Profile</a></li>
|
||||
<li><a href="index.php?mode=logout">Log out</a></li>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<li><a href="index.php?mode=register">Register</a></li>
|
||||
<li><a href="index.php?mode=login">Log in</a></li>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</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>
|
||||
<? IF ($this->TPL['my_rank'] == RANK_ADMIN ) { ?>
|
||||
<?php } ?><br>
|
||||
Actual time: <span style="font-weight: bold"><?php echo $this->TPL['actual_time']; ?></span><br>
|
||||
<?php IF ($this->TPL['my_rank'] == RANK_ADMIN ) { ?>
|
||||
<a href="index.php?mode=admin" style="font-weight: bold">Go to ACP »</a>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</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,14 +1,14 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<script type="text/javascript" src="templates/scripts/posting.js">
|
||||
</script>
|
||||
<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>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<? if (isset($this->TPL['preview'])) { ?>
|
||||
<?php if (isset($this->TPL['preview'])) { ?>
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1 hc4">Post preview</div>
|
||||
@@ -16,16 +16,16 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="tc1 post_content tc4" style="height: 150px">
|
||||
<?= BBCode($this->TPL['post']); ?>
|
||||
<?php echo BBCode($this->TPL['post']); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<? if (isset($this->TPL['topic'])) { ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
|
||||
<?php if (isset($this->TPL['topic'])) { ?>
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Topic information</div>
|
||||
@@ -37,13 +37,13 @@
|
||||
Title:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="100" name="topic" id="topic" value="<?= $this->TPL['topic']; ?>" required pattern=".{3,}" required title="3 characters minimum" style="width: 490px">
|
||||
<input type="text" maxlength="100" name="topic" id="topic" value="<?php echo $this->TPL['topic']; ?>" required pattern=".{3,}" required title="3 characters minimum" style="width: 490px">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Post information</div>
|
||||
@@ -101,7 +101,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<textarea name="post" id="post" maxlength="5000" required title="3 characters minimum"><?= $this->TPL['post']; ?></textarea>
|
||||
<textarea name="post" id="post" maxlength="5000" required title="3 characters minimum"><?php echo $this->TPL['post']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -123,4 +123,4 @@
|
||||
document.getElementById('bbcode_buttons').style.display = 'block';
|
||||
document.getElementById('emoticons_buttons').style.display = 'block';
|
||||
</script>
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -1,4 +1,4 @@
|
||||
<? 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>
|
||||
<script type="text/javascript">
|
||||
function checkForm()
|
||||
@@ -22,12 +22,12 @@ function checkForm()
|
||||
</script>
|
||||
|
||||
<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" onsubmit="return checkForm();">
|
||||
<?php } ?>
|
||||
<br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Register</div>
|
||||
@@ -39,7 +39,7 @@ function checkForm()
|
||||
Nick:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>" required pattern=".{3,}" title="3 characters minimum" onblur="checkNick()">
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>" required pattern=".{3,}" title="3 characters minimum" onblur="checkNick()">
|
||||
<span id="nick-inuse" style="display: none; color: red; font-weight: bold">Nick is in use. Type another one.</span>
|
||||
<span id="nick-free" style="display: none; color: green; font-weight: bold">Nick is free.</span>
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@ function checkForm()
|
||||
Email address:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="email" name="email" id="email" value="<?= $this->TPL['email']; ?>" required>
|
||||
<input type="email" name="email" id="email" value="<?php echo $this->TPL['email']; ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,4 +80,4 @@ function checkForm()
|
||||
</div></form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -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>
|
||||
|
||||
<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=userlist&rank=admin"><?= $this->getRankLevel(RANK_ADMIN); ?></a> •
|
||||
<a href="index.php?mode=userlist&rank=mod"><?= $this->getRankLevel(RANK_MOD); ?></a> •
|
||||
<a href="index.php?mode=userlist&rank=user"><?= $this->getRankLevel(RANK_USER); ?></a></div>
|
||||
<a href="index.php?mode=userlist&rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> •
|
||||
<a href="index.php?mode=userlist&rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> •
|
||||
<a href="index.php?mode=userlist&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'); ?>
|
||||
@@ -1,16 +1,16 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<? if ($this->TPL['forum_info']['locked'] == false) { ?>
|
||||
<a href="index.php?mode=newtopic&id=<?= $_GET['id']; ?>" class="btn">New Topic</a>
|
||||
<? } else { ?>
|
||||
<?php if ($this->TPL['forum_info']['locked'] == false) { ?>
|
||||
<a href="index.php?mode=newtopic&id=<?php echo $_GET['id']; ?>" class="btn">New Topic</a>
|
||||
<?php } else { ?>
|
||||
<div class="btn">
|
||||
Locked
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<br />
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1"><?= $this->TPL['f_name']; ?></div>
|
||||
<div class="hc1"><?php echo $this->TPL['f_name']; ?></div>
|
||||
<div class="hc2" style="width: 150px"> </div>
|
||||
<div class="hc3" style="width: 80px"> </div>
|
||||
<div class="hc4"> </div>
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="tc3 tab_desc" style="width: 80px">Replies</div>
|
||||
<div class="tc4 tab_desc">Last Post</div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($this->TPL['topics_list']); $i++)
|
||||
{
|
||||
echo '<div class="row">'."\n";
|
||||
@@ -55,7 +55,7 @@
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
<?php
|
||||
if (count($this->TPL['topics_list']) == 0)
|
||||
{
|
||||
echo '<div class="rcol">No topics in this forum.</div>';
|
||||
@@ -63,13 +63,13 @@
|
||||
?>
|
||||
</div>
|
||||
<br>
|
||||
<? if ($this->TPL['forum_info']['locked'] == false) { ?>
|
||||
<a href="index.php?mode=newtopic&id=<?= $_GET['id']; ?>" class="btn">New Topic</a>
|
||||
<? } else { ?>
|
||||
<?php if ($this->TPL['forum_info']['locked'] == false) { ?>
|
||||
<a href="index.php?mode=newtopic&id=<?php echo $_GET['id']; ?>" class="btn">New Topic</a>
|
||||
<?php } else { ?>
|
||||
<div class="btn">
|
||||
Locked
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
@@ -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 »</a>
|
||||
<? } else { ?> <? } ?>
|
||||
<?php } else { ?> <?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'); ?>
|
||||
@@ -1,12 +1,12 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<div id="content">
|
||||
<? if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
|
||||
<a href="index.php?mode=reply&id=<?= $_GET['id']; ?>" class="btn">Reply</a>
|
||||
<? } else { ?>
|
||||
<?php if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
|
||||
<a href="index.php?mode=reply&id=<?php echo $_GET['id']; ?>" class="btn">Reply</a>
|
||||
<?php } else { ?>
|
||||
<div class="btn">
|
||||
Locked
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<br />
|
||||
|
||||
<?php
|
||||
@@ -93,38 +93,38 @@
|
||||
}
|
||||
?>
|
||||
|
||||
<? if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
|
||||
<a href="index.php?mode=reply&id=<?= $_GET['id']; ?>" class="btn">Reply</a>
|
||||
<? } else { ?>
|
||||
<?php if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
|
||||
<a href="index.php?mode=reply&id=<?php echo $_GET['id']; ?>" class="btn">Reply</a>
|
||||
<?php } else { ?>
|
||||
<div class="btn">
|
||||
Locked
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
|
||||
<? if ($this->TPL['my_rank'] >= RANK_MOD) { ?>
|
||||
<?php if ($this->TPL['my_rank'] >= RANK_MOD) { ?>
|
||||
<div class="forum_table topic_mod" style="">
|
||||
<div class="row">
|
||||
<div class="hc1 hc4 hcpost" style="padding: 0px; text-align: center">Actions</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tc1 tc4">
|
||||
<a href="index.php?mode=moderate&submode=sticktopic&id=<?= $_GET['id']; ?>">
|
||||
<img src="templates/images/<? if ($this->TPL['topic_info']['topic_sticky']) echo 'un'; ?>stick.gif" alt="stick">
|
||||
<a href="index.php?mode=moderate&submode=sticktopic&id=<?php echo $_GET['id']; ?>">
|
||||
<img src="templates/images/<?php if ($this->TPL['topic_info']['topic_sticky']) echo 'un'; ?>stick.gif" alt="stick">
|
||||
</a>
|
||||
<a href="index.php?mode=moderate&submode=deletetopic&id=<?= $_GET['id']; ?>">
|
||||
<a href="index.php?mode=moderate&submode=deletetopic&id=<?php echo $_GET['id']; ?>">
|
||||
<img src="templates/images/delete.gif" alt="delete">
|
||||
</a>
|
||||
<a href="index.php?mode=moderate&submode=locktopic&id=<?= $_GET['id']; ?>">
|
||||
<img src="templates/images/<? if ($this->TPL['topic_info']['topic_locked']) echo 'un'; ?>lock.gif" alt="lock">
|
||||
<a href="index.php?mode=moderate&submode=locktopic&id=<?php echo $_GET['id']; ?>">
|
||||
<img src="templates/images/<?php if ($this->TPL['topic_info']['topic_locked']) echo 'un'; ?>lock.gif" alt="lock">
|
||||
</a>
|
||||
<a href="index.php?mode=moderate&submode=movetopic&id=<?= $_GET['id']; ?>">
|
||||
<a href="index.php?mode=moderate&submode=movetopic&id=<?php echo $_GET['id']; ?>">
|
||||
<img src="templates/images/move.gif" alt="move">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<div style="clear: both"> </div>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
Reference in New Issue
Block a user