<?php ST::deployTemplate('heads/ui_timepicker.inc'); RenderEngine::MenuChanger(); $model = new users_model(); $getUser = $model->getUserByToken($_GET['t']); empty($getUser) ? die("Bad request") : true; $ctrl = new auth_controller(); !is_int($ctrl->makeThisUserApproved($getUser['id'])) ? die("Bad request & already Approved") : true; ?> <div class='container'> <div class=' col-md-offset-2 col-md-8 block-border-shadow'> <div class='col-md-offset-2 col-md-8'> <form class='form-horizontal' method='post'> <div class='form-group'> <h4>Подтверждение регистрации для пользователя: <?php echo $getUser["login"]; ?> </h4> </div> <div class='form-group'> <p>Добро пожаловать в систему, <?php echo $getUser["fio"]; ?> </p> </div> <div class='form-group'> <p>Ваша учетная запись<b> <?php echo $getUser["login"]; ?>
<?php ST::deployTemplate('heads/ui_timepicker.inc'); RenderEngine::MenuChanger(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { ST::makeDebug($_POST); $ctrl = new auth_controller(); ST::makeDebug($ctrl->debugRegister()); } echo "<div class='container'>\n <div class=' col-md-offset-2 col-md-8 block-border-shadow'>"; //если сквозная аутентификация проверяем по таблице, без ввода //show fields echo "<div class='col-md-offset-3 col-md-6'>"; echo "<h4>Генератор</h4>"; echo "<form action='' class='form-horizontal' method='post'>"; echo "<div class='form-group'>"; echo "<label>Логин</label><input class='form-control' name='login'>"; echo "</div>"; echo "<div class='form-group'>"; echo "<label>Пароль</label><input class='form-control' type='password' name='password1'>"; echo "</div>"; echo "<div class='form-group'>"; echo "<label>Повторите пароль</label><input class='form-control' type='password' name='password2'>"; echo "</div>"; echo "<div class='form-group'>"; echo "<button class='btn btn-default'>Войти</button>"; echo "</div>"; echo "</form>"; echo "</div>";