bludit/bl-kernel/admin/views/login.php

37 lines
1.1 KiB
PHP
Raw Normal View History

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',
'value'=>$security->getTokenCSRF()
2018-06-05 23:50:03 +02:00
));
echo '
<div class="form-group">
<input type="text" value="'.(isset($_POST['username'])?$_POST['username']:'').'" class="form-control form-control-lg" id="jsusername" name="username" placeholder="'.$L->g('Username').'">
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">
<button type="submit" class="btn btn-primary mr-2 w-100 text-" 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
2018-06-05 23:50:03 +02:00
?>