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
+1 -1
View File
@@ -6,7 +6,7 @@
ini_set('display_errors', '1'); ini_set('display_errors', '1');
define('DB_HOST','localhost'); define('DB_HOST','localhost');
define('DB_USER','root'); define('DB_USER','root');
define('DB_PASSWD',''); define('DB_PASSWD','qwerty');
define('DB_NAME','uf2'); define('DB_NAME','uf2');
define('DB_PREFIX','uf_'); define('DB_PREFIX','uf_');
define('VERSION','2.0.0'); define('VERSION','2.0.0');
+1 -1
View File
@@ -26,7 +26,7 @@ class AdminController extends Controller
$this->getView('MainView')->putExistingModel('ConfigModel', $this->getModel('ConfigModel')); $this->getView('MainView')->putExistingModel('ConfigModel', $this->getModel('ConfigModel'));
if ($_SERVER['REQUEST_SCHEME'] == 'http') if ($_SERVER['REQUEST_SCHEME'] == 'http')
$this->forward(buildURL($_SERVER['REQUEST_URI'])); $this->forward(buildURL($_SERVER['REQUEST_URI'], true));
if (!$this->getModel('SessionModel')->isLogged()) if (!$this->getModel('SessionModel')->isLogged())
{ {
+1 -1
View File
@@ -50,7 +50,7 @@ function input_clean(&$input, &$dbobj, $opts = null)
$input = $dbobj->real_escape_string($input); $input = $dbobj->real_escape_string($input);
} }
function post_clean($key, &$dbobj, $opts) function post_clean($key, &$dbobj, $opts = null)
{ {
input_clean($_POST[$key], $dbobj, $opts); input_clean($_POST[$key], $dbobj, $opts);
} }
+2 -2
View File
@@ -35,7 +35,7 @@ class UsersModel extends Model
return array(); return array();
} }
public function getUserInformation($user_id, $passwd = false) public function getUserInformation($user, $passwd = false)
{ {
if ($this->user_info == null) if ($this->user_info == null)
{ {
@@ -50,7 +50,7 @@ class UsersModel extends Model
LEFT JOIN '.USERS_INFO_TABLE.' ui on ui.user_id = u.user_id LEFT JOIN '.USERS_INFO_TABLE.' ui on ui.user_id = u.user_id
LEFT JOIN '.USERS_PC_VIEW.' pc on pc.user_id = u.user_id LEFT JOIN '.USERS_PC_VIEW.' pc on pc.user_id = u.user_id
LEFT JOIN '.LOGGED_USERS_VIEW.' lu on lu.user_id = u.user_id LEFT JOIN '.LOGGED_USERS_VIEW.' lu on lu.user_id = u.user_id
WHERE u.user_id = \''.$user_id.'\''; WHERE u.user_id = \''.$user.'\' OR u.nick = \''.$user.'\'';
$out = $this->select_query($query); $out = $this->select_query($query);
if (count($out) > 0) if (count($out) > 0)
+8 -8
View File
@@ -1,4 +1,4 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
@@ -6,15 +6,15 @@ else
?> ?>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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">&nbsp;</div> <div class="hc4">&nbsp;</div>
</div> </div>
<div class="row"> <div class="row">
@@ -38,7 +38,7 @@ else
Reason: Reason:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -53,4 +53,4 @@ else
</form> </form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+3 -3
View File
@@ -1,4 +1,4 @@
<? require_once('./templates/admin/overall_header.tpl.php'); ?> <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<a href="index.php?mode=admin&amp;submode=addban" class="btn">Add ban</a> <a href="index.php?mode=admin&amp;submode=addban" class="btn">Add ban</a>
<br /> <br />
@@ -13,7 +13,7 @@
<div class="tc2 tab_desc">Reason</div> <div class="tc2 tab_desc">Reason</div>
<div class="tc4 tab_desc" style="width: 70px"></div> <div class="tc4 tab_desc" style="width: 70px"></div>
</div> </div>
<? <?php
for ($i=0; $i<count($this->TPL['bans_list']); $i++) for ($i=0; $i<count($this->TPL['bans_list']); $i++)
{ {
echo '<div class="row">'."\n"; echo '<div class="row">'."\n";
@@ -33,4 +33,4 @@
<br> <br>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+8 -8
View File
@@ -1,4 +1,4 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
@@ -6,15 +6,15 @@ else
?> ?>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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">&nbsp;</div> <div class="hc4">&nbsp;</div>
</div> </div>
@@ -23,7 +23,7 @@ else
Category name: Category name:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -38,4 +38,4 @@ else
</form> </form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+8 -8
View File
@@ -1,4 +1,4 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
@@ -6,12 +6,12 @@ else
?> ?>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Overall configuration</div> <div class="hc1">Overall configuration</div>
@@ -23,7 +23,7 @@ else
Forum name: Forum name:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -31,7 +31,7 @@ else
Forum description: Forum description:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -46,4 +46,4 @@ else
</form> </form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+11 -11
View File
@@ -1,4 +1,4 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
@@ -6,15 +6,15 @@ else
?> ?>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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">&nbsp;</div> <div class="hc4">&nbsp;</div>
</div> </div>
@@ -23,7 +23,7 @@ else
Forum name: Forum name:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -31,7 +31,7 @@ else
Forum description: Forum description:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -55,9 +55,9 @@ else
Forum locked: Forum locked:
</div> </div>
<div class="tc4 rc"> <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&nbsp;&nbsp; Yes&nbsp;&nbsp;
<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 No
</div> </div>
</div> </div>
@@ -73,4 +73,4 @@ else
</form> </form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+4 -4
View File
@@ -1,10 +1,10 @@
<? require_once('./templates/admin/overall_header.tpl.php'); ?> <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<br> <br>
<a href="index.php?mode=admin&amp;submode=addcat" class="btn" style="width: 130px; float: left">New Category</a> <a href="index.php?mode=admin&amp;submode=addcat" class="btn" style="width: 130px; float: left">New Category</a>
<a href="index.php?mode=admin&amp;submode=addforum" class="btn" style="width: 130px; float: right">New Forum</a> <a href="index.php?mode=admin&amp;submode=addforum" class="btn" style="width: 130px; float: right">New Forum</a>
<div style="clear: both">&nbsp;</div> <div style="clear: both">&nbsp;</div>
<? <?php
for ($i=0; $i<count($this->TPL['forums_list']); $i++) for ($i=0; $i<count($this->TPL['forums_list']); $i++)
{ {
if ($i > 0) 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> <br>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+9 -9
View File
@@ -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"> <script type="text/javascript">
function confirm_action(c_name, url) function confirm_action(c_name, url)
{ {
@@ -23,7 +23,7 @@ function confirm_action(c_name, url)
Installation date: Installation date:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -31,7 +31,7 @@ function confirm_action(c_name, url)
Topics total: Topics total:
</div> </div>
<div class="tc4 rc"> <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>
</div> </div>
@@ -40,7 +40,7 @@ function confirm_action(c_name, url)
Posts total: Posts total:
</div> </div>
<div class="tc4 rc"> <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>
</div> </div>
@@ -49,7 +49,7 @@ function confirm_action(c_name, url)
Users total: Users total:
</div> </div>
<div class="tc4 rc"> <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>
</div> </div>
@@ -58,7 +58,7 @@ function confirm_action(c_name, url)
Logged users total (last 5 min): Logged users total (last 5 min):
</div> </div>
<div class="tc4 rc"> <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>
</div> </div>
@@ -67,7 +67,7 @@ function confirm_action(c_name, url)
Script version: Script version:
</div> </div>
<div class="tc4 rc"> <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>
</div> </div>
@@ -92,7 +92,7 @@ function confirm_action(c_name, url)
<div class="tc3 tab_desc">Rank</div> <div class="tc3 tab_desc">Rank</div>
<div class="tc4 tab_desc">IP</div> <div class="tc4 tab_desc">IP</div>
</div> </div>
<? <?php
for ($i=0; $i < count($this->TPL['logged_users']); $i++) for ($i=0; $i < count($this->TPL['logged_users']); $i++)
{ {
echo ' echo '
@@ -109,4 +109,4 @@ function confirm_action(c_name, url)
</div> </div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+7 -7
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <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="author" content="Piotr Dergun" />
<meta name="generator" content="medit/1.2.0" /> <meta name="generator" content="medit/1.2.0" />
<link rel="stylesheet" href="templates/styles.css" type="text/css" /> <link rel="stylesheet" href="templates/styles.css" type="text/css" />
@@ -25,16 +25,16 @@
</div> </div>
<br> <br>
<div id="userpanel"> <div id="userpanel">
<? if ( $this->TPL['is_logged']) { ?> <?php if ( $this->TPL['is_logged']) { ?>
You are logged as: <span style="font-weight: bold"><?= $this->TPL['my_nick'] ?></span> You are logged as: <span style="font-weight: bold"><?php echo $this->TPL['my_nick'] ?></span>
<? } else { ?> <?php } else { ?>
Welcome Guest! You are not logged. Welcome Guest! You are not logged.
<? } ?><br> <?php } ?><br>
Actual time: <span style="font-weight: bold"><?= $this->TPL['actual_time']; ?></span><br> Actual time: <span style="font-weight: bold"><?php echo $this->TPL['actual_time']; ?></span><br>
</div> </div>
<br> <br>
<div id="navi_bar"> <div id="navi_bar">
<? <?php
for ($i=0; $i<count($this->TPL['nav']); $i++) 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>'; echo '<a href="'.$this->TPL['nav'][$i]['url'].'" class="navigation">'.$this->TPL['nav'][$i]['name'].'</a>';
+12 -12
View File
@@ -1,4 +1,4 @@
<? require_once('./templates/admin/overall_header.tpl.php'); ?> <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<br /> <br />
<div class="forum_table"> <div class="forum_table">
@@ -18,7 +18,7 @@
<div class="tc3 tab_desc" style="width: 70px"></div> <div class="tc3 tab_desc" style="width: 70px"></div>
<div class="tc4 tab_desc" style="width: 70px"></div> <div class="tc4 tab_desc" style="width: 70px"></div>
</div> </div>
<? <?php
for ($i=0; $i<count($this->TPL['users_list']); $i++) for ($i=0; $i<count($this->TPL['users_list']); $i++)
{ {
echo '<div class="row">'."\n"; echo '<div class="row">'."\n";
@@ -47,27 +47,27 @@
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4"> <div class="tc1 tc4">
<form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
Sort users by: Sort users by:
<select name="sort_type"> <select name="sort_type">
<option value="regdate" <?= $this->TPL['regdate_selected']; ?>>Registration date</option> <option value="regdate" <?php echo $this->TPL['regdate_selected']; ?>>Registration date</option>
<option value="lastvisit" <?= $this->TPL['lastvisit_selected']; ?>>Lastvisit</option> <option value="lastvisit" <?php echo $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
<option value="nick" <?= $this->TPL['username_selected']; ?>>Username</option> <option value="nick" <?php echo $this->TPL['username_selected']; ?>>Username</option>
<option value="post_count" <?= $this->TPL['posts_selected']; ?>>Posts count</option> <option value="post_count" <?php echo $this->TPL['posts_selected']; ?>>Posts count</option>
</select> </select>
&nbsp;&nbsp;&nbsp; &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"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Sort">
</form> </form>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4">Select only users with rank: <div class="tc1 tc4">Select only users with rank:
<a href="index.php?mode=admin&amp;submode=users&amp;rank=admin"><?= $this->getRankLevel(RANK_ADMIN); ?></a> &bull; <a href="index.php?mode=admin&amp;submode=users&amp;rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> &bull;
<a href="index.php?mode=admin&amp;submode=users&amp;rank=mod"><?= $this->getRankLevel(RANK_MOD); ?></a> &bull; <a href="index.php?mode=admin&amp;submode=users&amp;rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> &bull;
<a href="index.php?mode=admin&amp;submode=users&amp;rank=user"><?= $this->getRankLevel(RANK_USER); ?></a></div> <a href="index.php?mode=admin&amp;submode=users&amp;rank=user"><?php echo $this->getRankLevel(RANK_USER); ?></a></div>
</div> </div>
</div> </div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+4 -4
View File
@@ -1,11 +1,11 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
require_once('./templates/overall_header.tpl.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"> <div id="content">
<br> <br>
<div class="forum_table"> <div class="forum_table">
@@ -15,7 +15,7 @@ else
<div class="row"> <div class="row">
<div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px"> <div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px">
<?= $this->TPL['message']; ?> <?php echo $this->TPL['message']; ?>
</div> </div>
</div> </div>
@@ -31,4 +31,4 @@ else
</div> </div>
</form> </form>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+24 -24
View File
@@ -1,4 +1,4 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
@@ -26,12 +26,12 @@ function checkForm()
</script> </script>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();" enctype="multipart/form-data"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();" enctype="multipart/form-data">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Basic informations</div> <div class="hc1">Basic informations</div>
@@ -43,15 +43,15 @@ function checkForm()
Nick: Nick:
</div> </div>
<div class="tc4 rc"> <div class="tc4 rc">
<? if ($this->TPL['is_admin']) {?> <?php 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"> <input type="text" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>" required pattern=".{3,}" required title="3 characters minimum">
<? } else { ?> <?php } else { ?>
<span style="font-weight: bold"><?= $this->TPL['nick']; ?></span> <span style="font-weight: bold"><?php echo $this->TPL['nick']; ?></span>
<input type="hidden" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>"> <input type="hidden" maxlength="30" name="nick" id="nick" value="<?php echo $this->TPL['nick']; ?>">
<? } ?> <?php } ?>
</div> </div>
</div> </div>
<? if (!$this->TPL['is_admin']) {?> <?php if (!$this->TPL['is_admin']) {?>
<div class="row"> <div class="row">
<div class="tc1 lc"> <div class="tc1 lc">
Old password: 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.) <input type="password" name="passwd_old" id="passwd_old" value=""> (type only if you want to change password or email.)
</div> </div>
</div> </div>
<? } ?> <?php } ?>
<div class="row"> <div class="row">
<div class="tc1 lc"> <div class="tc1 lc">
New password: New password:
@@ -82,7 +82,7 @@ function checkForm()
Email address: Email address:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -106,7 +106,7 @@ function checkForm()
Location: Location:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -114,7 +114,7 @@ function checkForm()
Signature: Signature:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -123,8 +123,8 @@ function checkForm()
</div> </div>
<div class="tc4 rc"> <div class="tc4 rc">
Current avatar:<br> 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> <img src="<?php 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> <? } ?> <?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=""> <input type="file" name="avatar" id="avatar" value="">
</div> </div>
@@ -138,7 +138,7 @@ function checkForm()
</div> </div>
</div> </div>
</div> </div>
<? if ($this->TPL['is_admin']) {?> <?php if ($this->TPL['is_admin']) {?>
<br> <br>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
@@ -150,11 +150,11 @@ function checkForm()
User rank: User rank:
</div> </div>
<div class="tc4 rc"> <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&nbsp;&nbsp; User&nbsp;&nbsp;
<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>&nbsp;&nbsp; <span class="fmod">Mod</span>&nbsp;&nbsp;
<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> <span class="fadmin">Admin</span>
</div> </div>
</div> </div>
@@ -167,9 +167,9 @@ function checkForm()
</div> </div>
</div> </div>
</div> </div>
<? } ?> <?php } ?>
</form> </form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+6 -6
View File
@@ -1,13 +1,13 @@
<? <?php
if ($_GET['mode'] == 'admin') if ($_GET['mode'] == 'admin')
require_once('./templates/admin/overall_header.tpl.php'); require_once('./templates/admin/overall_header.tpl.php');
else else
require_once('./templates/overall_header.tpl.php'); require_once('./templates/overall_header.tpl.php');
?> ?>
<? if ($this->TPL['url'] != '') { ?> <?php if ($this->TPL['url'] != '') { ?>
<meta http-equiv="refresh" content="<?= $this->TPL['timeout']; ?>; url=<?= $this->TPL['url']; ?>"> <meta http-equiv="refresh" content="<?php echo $this->TPL['timeout']; ?>; url=<?php echo $this->TPL['url']; ?>">
<? } ?> <?php } ?>
<div id="content"> <div id="content">
<br> <br>
@@ -18,11 +18,11 @@ else
<div class="row"> <div class="row">
<div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px"> <div class="tc1 tc4" style="padding-top: 20px; padding-bottom: 20px">
<?= $this->TPL['message']; ?> <?php echo $this->TPL['message']; ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+7 -7
View File
@@ -1,4 +1,4 @@
<? require_once('./templates/overall_header.tpl.php'); ?> <?php require_once('./templates/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<script type="text/javascript" src="templates/scripts/chkcookie.js"> <script type="text/javascript" src="templates/scripts/chkcookie.js">
@@ -7,12 +7,12 @@
create_cookie("checkcookie", "testvalue", 0); create_cookie("checkcookie", "testvalue", 0);
</script> </script>
<p id="js_msg" style="color: red; font-weight: bold">You must enable cookies if you want log in</p> <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"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Log in</div> <div class="hc1">Log in</div>
@@ -24,7 +24,7 @@
Nick: Nick:
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -51,4 +51,4 @@
erase_cookie("checkcookie"); erase_cookie("checkcookie");
</script> </script>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+8 -8
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"> <script type="text/javascript">
function confirm_action(c_name, url) function confirm_action(c_name, url)
{ {
@@ -10,7 +10,7 @@ function confirm_action(c_name, url)
</script> </script>
<div id="content"> <div id="content">
<? <?php
$items = 0; $items = 0;
for ($i=0; $i<count($this->TPL['forums_list']); $i++) for ($i=0; $i<count($this->TPL['forums_list']); $i++)
{ {
@@ -97,12 +97,12 @@ function confirm_action(c_name, url)
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4" style="text-align: left"> <div class="tc1 tc4" style="text-align: left">
Our users have written <span style="font-weight: bold"><?= $this->TPL['posts_count']; ?></span> posts.<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"><?= $this->TPL['users_count']; ?></span> unique users.<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=<?= $this->TPL['last_user']['user_id']; ?>" style="font-weight: bold"><?= $this->TPL['last_user']['nick']; ?></a><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> 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.'; if ($this->TPL['logged_users_count'] == 0) echo 'none.';
else else
for ($i=0; $i<count($this->TPL['logged_users']); $i++) for ($i=0; $i<count($this->TPL['logged_users']); $i++)
@@ -120,4 +120,4 @@ function confirm_action(c_name, url)
</div> </div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+6 -6
View File
@@ -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"> <div id="content">
<br> <br>
<div class="forum_table"> <div class="forum_table">
@@ -14,7 +14,7 @@
Topic title: Topic title:
</div> </div>
<div class="tc4 rc"> <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> </div>
@@ -25,7 +25,7 @@
Topic is in forum: Topic is in forum:
</div> </div>
<div class="tc4 rc"> <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> </div>
@@ -37,7 +37,7 @@
</div> </div>
<div class="tc4 rc"> <div class="tc4 rc">
<select name="forum_id"> <select name="forum_id">
<? <?php
for ($i=0; $i<count($this->TPL['forums_list']); $i++) 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"' : ''; $sel = ($this->TPL['forums_list'][$i]['forum_id'] == $this->TPL['topic_info']['forum_id']) ? 'selected="selected"' : '';
@@ -64,4 +64,4 @@
</div> </div>
</form> </form>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+14 -14
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <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="author" content="Piotr Dergun" />
<meta name="generator" content="medit/1.2.0" /> <meta name="generator" content="medit/1.2.0" />
<link rel="stylesheet" href="templates/styles.css" type="text/css" /> <link rel="stylesheet" href="templates/styles.css" type="text/css" />
@@ -13,38 +13,38 @@
<div id="top"> <div id="top">
<div style="width: 30%; float:left"><img src="templates/images/uf_logo.svg" height="130" alt="&micro;F logo"></div> <div style="width: 30%; float:left"><img src="templates/images/uf_logo.svg" height="130" alt="&micro;F logo"></div>
<div style="width: 70%; float: left"> <div style="width: 70%; float: left">
<h1><?= $this->TPL['forum_name']; ?></h1> <h1><?php echo $this->TPL['forum_name']; ?></h1>
<h2><?= $this->TPL['forum_desc']; ?></h2> <h2><?php echo $this->TPL['forum_desc']; ?></h2>
</div> </div>
</div> </div>
<div id="menu"> <div id="menu">
<ul> <ul>
<li><a href="index.php">Main Page</a></li> <li><a href="index.php">Main Page</a></li>
<li><a href="index.php?mode=userlist">Userlist</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=myprofile">Profile</a></li>
<li><a href="index.php?mode=logout">Log out</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=register">Register</a></li>
<li><a href="index.php?mode=login">Log in</a></li> <li><a href="index.php?mode=login">Log in</a></li>
<? } ?> <?php } ?>
</ul> </ul>
</div> </div>
<br> <br>
<div id="userpanel"> <div id="userpanel">
<? if ( $this->TPL['is_logged']) { ?> <?php if ( $this->TPL['is_logged']) { ?>
You are logged as: <span style="font-weight: bold"><?= $this->TPL['my_nick'] ?></span> You are logged as: <span style="font-weight: bold"><?php echo $this->TPL['my_nick'] ?></span>
<? } else { ?> <?php } else { ?>
Welcome Guest! You are not logged. Welcome Guest! You are not logged.
<? } ?><br> <?php } ?><br>
Actual time: <span style="font-weight: bold"><?= $this->TPL['actual_time']; ?></span><br> Actual time: <span style="font-weight: bold"><?php echo $this->TPL['actual_time']; ?></span><br>
<? IF ($this->TPL['my_rank'] == RANK_ADMIN ) { ?> <?php IF ($this->TPL['my_rank'] == RANK_ADMIN ) { ?>
<a href="index.php?mode=admin" style="font-weight: bold">Go to ACP &raquo;</a> <a href="index.php?mode=admin" style="font-weight: bold">Go to ACP &raquo;</a>
<? } ?> <?php } ?>
</div> </div>
<br> <br>
<div id="navi_bar"> <div id="navi_bar">
<? <?php
for ($i=0; $i<count($this->TPL['nav']); $i++) 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>'; echo '<a href="'.$this->TPL['nav'][$i]['url'].'" class="navigation">'.$this->TPL['nav'][$i]['name'].'</a>';
+13 -13
View File
@@ -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 type="text/javascript" src="templates/scripts/posting.js">
</script> </script>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<? if (isset($this->TPL['preview'])) { ?> <?php if (isset($this->TPL['preview'])) { ?>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1 hc4">Post preview</div> <div class="hc1 hc4">Post preview</div>
@@ -16,16 +16,16 @@
<div class="row"> <div class="row">
<div class="tc1 post_content tc4" style="height: 150px"> <div class="tc1 post_content tc4" style="height: 150px">
<?= BBCode($this->TPL['post']); ?> <?php echo BBCode($this->TPL['post']); ?>
</div> </div>
</div> </div>
</div> </div>
<br> <br>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<? if (isset($this->TPL['topic'])) { ?> <?php if (isset($this->TPL['topic'])) { ?>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Topic information</div> <div class="hc1">Topic information</div>
@@ -37,13 +37,13 @@
Title: Title:
</div> </div>
<div class="tc4 rc"> <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> </div>
</div> </div>
<br> <br>
<? } ?> <?php } ?>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Post information</div> <div class="hc1">Post information</div>
@@ -101,7 +101,7 @@
</div> </div>
</div> </div>
<div class="tc4 rc"> <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> </div>
<div class="row"> <div class="row">
@@ -123,4 +123,4 @@
document.getElementById('bbcode_buttons').style.display = 'block'; document.getElementById('bbcode_buttons').style.display = 'block';
document.getElementById('emoticons_buttons').style.display = 'block'; document.getElementById('emoticons_buttons').style.display = 'block';
</script> </script>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+8 -8
View File
@@ -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 src="templates/scripts/nick.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
function checkForm() function checkForm()
@@ -22,12 +22,12 @@ function checkForm()
</script> </script>
<div id="content"> <div id="content">
<? if ($this->TPL['error_msg'] != '') { ?> <?php if ($this->TPL['error_msg'] != '') { ?>
<div class="error_form"> <div class="error_form">
<?= $this->TPL['error_msg']; ?> <?php echo $this->TPL['error_msg']; ?>
</div> </div>
<? } ?> <?php } ?>
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();"> <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();">
<div class="forum_table"> <div class="forum_table">
<div class="row"> <div class="row">
<div class="hc1">Register</div> <div class="hc1">Register</div>
@@ -39,7 +39,7 @@ function checkForm()
Nick: Nick:
</div> </div>
<div class="tc4 rc"> <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-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> <span id="nick-free" style="display: none; color: green; font-weight: bold">Nick is free.</span>
</div> </div>
@@ -65,7 +65,7 @@ function checkForm()
Email address: Email address:
</div> </div>
<div class="tc4 rc"> <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> </div>
@@ -80,4 +80,4 @@ function checkForm()
</div></form> </div></form>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+12 -12
View File
@@ -1,4 +1,4 @@
<? require_once('./templates/overall_header.tpl.php'); ?> <?php require_once('./templates/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<br /> <br />
<div class="forum_table"> <div class="forum_table">
@@ -14,7 +14,7 @@
<div class="tc3 tab_desc" style="width: 180px">Last visit</div> <div class="tc3 tab_desc" style="width: 180px">Last visit</div>
<div class="tc4 tab_desc" style="width: 100px">Posts</div> <div class="tc4 tab_desc" style="width: 100px">Posts</div>
</div> </div>
<? <?php
for ($i=0; $i<count($this->TPL['users_list']); $i++) for ($i=0; $i<count($this->TPL['users_list']); $i++)
{ {
echo '<div class="row">'."\n"; echo '<div class="row">'."\n";
@@ -39,27 +39,27 @@
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4"> <div class="tc1 tc4">
<form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
Sort users by: Sort users by:
<select name="sort_type"> <select name="sort_type">
<option value="regdate" <?= $this->TPL['regdate_selected']; ?>>Registration date</option> <option value="regdate" <?php echo $this->TPL['regdate_selected']; ?>>Registration date</option>
<option value="lastvisit" <?= $this->TPL['lastvisit_selected']; ?>>Lastvisit</option> <option value="lastvisit" <?php echo $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
<option value="nick" <?= $this->TPL['username_selected']; ?>>Username</option> <option value="nick" <?php echo $this->TPL['username_selected']; ?>>Username</option>
<option value="post_count" <?= $this->TPL['posts_selected']; ?>>Posts count</option> <option value="post_count" <?php echo $this->TPL['posts_selected']; ?>>Posts count</option>
</select> </select>
&nbsp;&nbsp;&nbsp; &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"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Sort">
</form> </form>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4">Select only users with rank: <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=admin"><?php echo $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=mod"><?php echo $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=user"><?php echo $this->getRankLevel(RANK_USER); ?></a></div>
</div> </div>
</div> </div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+13 -13
View File
@@ -1,16 +1,16 @@
<? require_once('./templates/overall_header.tpl.php'); ?> <?php require_once('./templates/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<? if ($this->TPL['forum_info']['locked'] == false) { ?> <?php if ($this->TPL['forum_info']['locked'] == false) { ?>
<a href="index.php?mode=newtopic&amp;id=<?= $_GET['id']; ?>" class="btn">New Topic</a> <a href="index.php?mode=newtopic&amp;id=<?php echo $_GET['id']; ?>" class="btn">New Topic</a>
<? } else { ?> <?php } else { ?>
<div class="btn"> <div class="btn">
Locked Locked
</div> </div>
<? } ?> <?php } ?>
<br /> <br />
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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">&nbsp;</div> <div class="hc2" style="width: 150px">&nbsp;</div>
<div class="hc3" style="width: 80px">&nbsp;</div> <div class="hc3" style="width: 80px">&nbsp;</div>
<div class="hc4">&nbsp;</div> <div class="hc4">&nbsp;</div>
@@ -21,7 +21,7 @@
<div class="tc3 tab_desc" style="width: 80px">Replies</div> <div class="tc3 tab_desc" style="width: 80px">Replies</div>
<div class="tc4 tab_desc">Last Post</div> <div class="tc4 tab_desc">Last Post</div>
</div> </div>
<? <?php
for ($i=0; $i<count($this->TPL['topics_list']); $i++) for ($i=0; $i<count($this->TPL['topics_list']); $i++)
{ {
echo '<div class="row">'."\n"; echo '<div class="row">'."\n";
@@ -55,7 +55,7 @@
?> ?>
<? <?php
if (count($this->TPL['topics_list']) == 0) if (count($this->TPL['topics_list']) == 0)
{ {
echo '<div class="rcol">No topics in this forum.</div>'; echo '<div class="rcol">No topics in this forum.</div>';
@@ -63,13 +63,13 @@
?> ?>
</div> </div>
<br> <br>
<? if ($this->TPL['forum_info']['locked'] == false) { ?> <?php if ($this->TPL['forum_info']['locked'] == false) { ?>
<a href="index.php?mode=newtopic&amp;id=<?= $_GET['id']; ?>" class="btn">New Topic</a> <a href="index.php?mode=newtopic&amp;id=<?php echo $_GET['id']; ?>" class="btn">New Topic</a>
<? } else { ?> <?php } else { ?>
<div class="btn"> <div class="btn">
Locked Locked
</div> </div>
<? } ?> <?php } ?>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+17 -17
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> <script src="templates/scripts/nick.js" type="text/javascript"></script>
<div id="content"> <div id="content">
<br> <br>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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"> <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> <a href="index.php?mode=editprofile">Edit my profile &raquo;</a>
<? } else { ?> &nbsp; <? } ?> <?php } else { ?> &nbsp; <?php } ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc2"> <div class="tc1 tc2">
<? <?php
if ($this->TPL['user_info']['avatar'] != null) if ($this->TPL['user_info']['avatar'] != null)
echo '<img src="'.$this->TPL['user_info']['avatar'].'" alt="user avatar">'; echo '<img src="'.$this->TPL['user_info']['avatar'].'" alt="user avatar">';
else else
@@ -23,19 +23,19 @@
</div> </div>
<div class="tc4 rc"> <div class="tc4 rc">
Joined: <span style="font-weight: bold"><?= $this->TPL['user_info']['regdate']; ?></span><br> Joined: <span style="font-weight: bold"><?php echo $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> 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"><?= $this->TPL['user_info']['post_count']; ?></span>; <span style="font-weight: bold"><?= $this->TPL['post_ratio']; ?>%</span> of total.<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"><?= $this->TPL['user_info']['location']; ?></span><br> Location: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['location']; ?></span><br>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 lc"> <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>
<div class="tc4 rc"> <div class="tc4 rc">
Status: <img src="templates/images/<? echo (($this->TPL['user_info']['user_IP']) ? 'online' : 'offline'); ?>.gif" alt="user status"><br> 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"><?= $this->getRankLevel($this->TPL['user_info']['rank']); ?> Rank: <span style="font-weight: bold"><?php echo $this->getRankLevel($this->TPL['user_info']['rank']); ?>
</div> </div>
</div> </div>
@@ -43,23 +43,23 @@ Location: <span style="font-weight: bold"><?= $this->TPL['user_info']['location'
</div> </div>
<br> <br>
<? if ($this->TPL['user_info']['signature'] != null) { ?> <?php if ($this->TPL['user_info']['signature'] != null) { ?>
<div class="forum_table"> <div class="forum_table">
<div class="row"> <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>
<div class="row"> <div class="row">
<div class="tc1 tc4" style="text-align: left; max-width: 870px"> <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> </div>
</div> </div>
<? } ?> <?php } ?>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>
+18 -18
View File
@@ -1,12 +1,12 @@
<? require_once('./templates/overall_header.tpl.php'); ?> <?php require_once('./templates/overall_header.tpl.php'); ?>
<div id="content"> <div id="content">
<? if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?> <?php if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
<a href="index.php?mode=reply&amp;id=<?= $_GET['id']; ?>" class="btn">Reply</a> <a href="index.php?mode=reply&amp;id=<?php echo $_GET['id']; ?>" class="btn">Reply</a>
<? } else { ?> <?php } else { ?>
<div class="btn"> <div class="btn">
Locked Locked
</div> </div>
<? } ?> <?php } ?>
<br /> <br />
<?php <?php
@@ -93,38 +93,38 @@
} }
?> ?>
<? if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?> <?php if ($this->TPL['topic_info']['forum_locked'] == false && $this->TPL['topic_info']['topic_locked'] == false) { ?>
<a href="index.php?mode=reply&amp;id=<?= $_GET['id']; ?>" class="btn">Reply</a> <a href="index.php?mode=reply&amp;id=<?php echo $_GET['id']; ?>" class="btn">Reply</a>
<? } else { ?> <?php } else { ?>
<div class="btn"> <div class="btn">
Locked Locked
</div> </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="forum_table topic_mod" style="">
<div class="row"> <div class="row">
<div class="hc1 hc4 hcpost" style="padding: 0px; text-align: center">Actions</div> <div class="hc1 hc4 hcpost" style="padding: 0px; text-align: center">Actions</div>
</div> </div>
<div class="row"> <div class="row">
<div class="tc1 tc4"> <div class="tc1 tc4">
<a href="index.php?mode=moderate&amp;submode=sticktopic&amp;id=<?= $_GET['id']; ?>"> <a href="index.php?mode=moderate&amp;submode=sticktopic&amp;id=<?php echo $_GET['id']; ?>">
<img src="templates/images/<? if ($this->TPL['topic_info']['topic_sticky']) echo 'un'; ?>stick.gif" alt="stick"> <img src="templates/images/<?php if ($this->TPL['topic_info']['topic_sticky']) echo 'un'; ?>stick.gif" alt="stick">
</a> </a>
<a href="index.php?mode=moderate&amp;submode=deletetopic&amp;id=<?= $_GET['id']; ?>"> <a href="index.php?mode=moderate&amp;submode=deletetopic&amp;id=<?php echo $_GET['id']; ?>">
<img src="templates/images/delete.gif" alt="delete"> <img src="templates/images/delete.gif" alt="delete">
</a> </a>
<a href="index.php?mode=moderate&amp;submode=locktopic&amp;id=<?= $_GET['id']; ?>"> <a href="index.php?mode=moderate&amp;submode=locktopic&amp;id=<?php echo $_GET['id']; ?>">
<img src="templates/images/<? if ($this->TPL['topic_info']['topic_locked']) echo 'un'; ?>lock.gif" alt="lock"> <img src="templates/images/<?php if ($this->TPL['topic_info']['topic_locked']) echo 'un'; ?>lock.gif" alt="lock">
</a> </a>
<a href="index.php?mode=moderate&amp;submode=movetopic&amp;id=<?= $_GET['id']; ?>"> <a href="index.php?mode=moderate&amp;submode=movetopic&amp;id=<?php echo $_GET['id']; ?>">
<img src="templates/images/move.gif" alt="move"> <img src="templates/images/move.gif" alt="move">
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<? } ?> <?php } ?>
<div style="clear: both">&nbsp;</div> <div style="clear: both">&nbsp;</div>
</div> </div>
<? require_once('./templates/overall_footer.tpl.php'); ?> <?php require_once('./templates/overall_footer.tpl.php'); ?>