2018-06-05 23:50:03 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
2015-03-27 02:00:01 +01:00
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
echo '<h1 class="text-center mb-5 mt-5 font-weight-normal" style="color: #555;">BLUDIT</h1>';
|
2015-09-08 02:51:48 +02:00
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
echo Bootstrap::formOpen(array());
|
2015-09-08 02:51:48 +02:00
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
|
|
|
'name'=>'tokenCSRF',
|
2018-07-17 19:13:01 +02:00
|
|
|
'value'=>$security->getTokenCSRF()
|
2018-06-05 23:50:03 +02:00
|
|
|
));
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<div class="form-group">
|
2019-01-27 18:07:38 +01:00
|
|
|
<input type="text" value="'.(isset($_POST['username'])?$_POST['username']:'').'" class="form-control form-control-lg" id="jsusername" name="username" placeholder="'.$L->g('Username').'" autofocus>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
2018-06-05 23:50:03 +02:00
|
|
|
';
|
2015-09-08 02:51:48 +02:00
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
echo '
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" class="form-control form-control-lg" id="jspassword" name="password" placeholder="'.$L->g('Password').'">
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
2018-06-05 23:50:03 +02:00
|
|
|
';
|
2015-09-08 02:51:48 +02:00
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
echo '
|
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="checkbox" value="true" id="jsremember" name="remember">
|
|
|
|
<label class="form-check-label" for="jsremember">'.$L->g('Remember me').'</label>
|
2017-11-08 00:00:48 +01:00
|
|
|
</div>
|
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
<div class="form-group mt-4">
|
2018-08-19 17:45:49 +02:00
|
|
|
<button type="submit" class="btn btn-primary btn-lg mr-2 w-100" name="save">'.$L->g('Login').'</button>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
2018-06-05 23:50:03 +02:00
|
|
|
';
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-06-25 23:17:43 +02:00
|
|
|
echo '</form>';
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2019-01-27 18:07:38 +01:00
|
|
|
?>
|