|
|
@ -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'); ?>
|