PHP 7.0 compatibility (short tags replaced by normal)

This commit is contained in:
2018-02-04 13:36:19 +01:00
parent 2a335e9c6c
commit 75e3e43a5f
26 changed files with 225 additions and 225 deletions

View File

@@ -1,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>';