-
Автор темы
- #1
PHP:
<?php include 'engine/template/ext/head.php'; ?>
<link href="/assets/css/toastr.css" rel="stylesheet"/>
<script src="/assets/js/toastr.js"></script>
<section class="bg-primary" id="statistic-section">
<div class="container">
<div class="row">
<div class="statistic">
<div class="inner">
<h1>Настройки аккаунта</h1>
<div class='col-md-6' style='margin-top:300px;'>
Смена пароля<br><br>
<form method='post'>
<input name='last' placeholder="Старый пароль..." class='form-control' type='text' required/><br>
<input name='new' placeholder="Новый пароль..." class='form-control' type='text' required/>
<br><button type='sumbit' name="changepass" class='btn btn-red'><font color='white'>Изменить пароль</font></button></form>
</div>
<div class='col-md-6' style='margin-top:300px;'>
<?php
if($a['EmailStatus'] == '0')
{
echo "
Привязка Email<br><br>
<form method='post'>
<input name='email' type='email' placeholder='Укажите Email для привязки...' class='form-control' required/><br><img src='/acaptcha.php' />
<div class='col-md-9'><input type='login' name='acaptcha' class='form-control' placeholder='Код Captcha' required></div><br>
<br><button type='sumbit' name='addemail' class='btn btn-red'><font color='white'>Привязать Email</font></button></form>";
}
sscanf($a['EmailStatus'], "%d|%s", $type,$hash);
if($type == '1')
{
echo "
Подтверждени Email<br><br>
<form method='post'>
<input name='email' type='email' value='Почта » ".$a['pEmail']."' disabled class='form-control'/><br>
<input name='codeemail' type='text' placeholder='Код из письма...' class='form-control' required><br>
<button type='sumbit' name='addcode' class='btn btn-red'><font color='white'>Привязать Email</font></button></form>
<br>
Отправить повторное письмо<br><br>
<form method='post'>
<input name='email' type='email' placeholder='Укажите Email' class='form-control'/><br>
<img src='/acaptcha.php' />
<div class='col-md-9'><input type='login' name='acaptcha' class='form-control' placeholder='Код Captcha' required></div>
<button type='sumbit' name='addemail' class='btn btn-red'><font color='white'>Привязать Email</font></button></form>
";
}
if($a['EmailStatus'] == '2')
{
echo "
Смена Email<br><br>
<form method='post'>
<input name='email' type='email' value='Текущая » ".$a['pEmail']."' disabled class='form-control'/><br>
<input name='newemail' type='email' placeholder='Новая почта..' class='form-control' required><br><br><img src='/acaptcha.php' />
<div class='col-md-9'><input type='login' name='acaptcha' class='form-control' placeholder='Код Captcha' required></div><br>
<button type='sumbit' name='newaddemail' class='btn btn-red'><font color='white'>Сменить Email</font></button></form>
<br>
";
}
?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php if (isset($msg)): ?>
<?=$msg;?>
<?php endif;?>
<?php if($_SESSION['getmsg'])
{
echo $_SESSION['getmsg'];
unset($_SESSION['getmsg']);
}?>
<?php include 'engine/template/ext/footer.php';?>
помогите пожалуйста