PHP 7.0 compatibility (short tags replaced by normal)
This commit is contained in:
@@ -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'); ?>
|
||||
Reference in New Issue
Block a user