72 lines
No EOL
2.2 KiB
PHP
72 lines
No EOL
2.2 KiB
PHP
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
|
|
|
<script>
|
|
// ============================================================================
|
|
// Variables for the view
|
|
// ============================================================================
|
|
|
|
// ============================================================================
|
|
// Functions for the view
|
|
// ============================================================================
|
|
|
|
// ============================================================================
|
|
// Events for the view
|
|
// ============================================================================
|
|
$(document).ready(function() {
|
|
// No events for the view yet
|
|
});
|
|
|
|
// ============================================================================
|
|
// Initialization for the view
|
|
// ============================================================================
|
|
$(document).ready(function() {
|
|
// No initialization for the view yet
|
|
});
|
|
</script>
|
|
|
|
<img class="mx-auto d-block w-25 mb-4" alt="logo" src="<?php echo HTML_PATH_CORE_IMG . 'logo.svg' ?>" />
|
|
<h1 class="text-center text-uppercase mb-4"><?php echo $site->title() ?></h1>
|
|
|
|
<?php
|
|
|
|
echo Bootstrap::formOpen(array('name'=>'login'));
|
|
|
|
echo Bootstrap::formInputHidden(array(
|
|
'name'=>'tokenCSRF',
|
|
'value'=>$security->getTokenCSRF()
|
|
));
|
|
|
|
echo Bootstrap::formFloatingLabels(array(
|
|
'id'=>'username',
|
|
'name'=>'username',
|
|
'type'=>'text',
|
|
'value'=>(isset($_POST['username'])?Sanitize::html($_POST['username']):''),
|
|
'class'=>'form-control-lg',
|
|
'placeholder'=>$L->g('Username')
|
|
));
|
|
|
|
echo Bootstrap::formFloatingLabels(array(
|
|
'id'=>'password',
|
|
'name'=>'password',
|
|
'type'=>'password',
|
|
'value'=>'',
|
|
'class'=>'form-control-lg',
|
|
'placeholder'=>$L->g('Password')
|
|
));
|
|
|
|
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>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<button type="submit" class="btn btn-secondary btn-lg me-2 w-100" name="save">'.$L->g('Login').'</button>
|
|
</div>
|
|
';
|
|
|
|
echo '</form>';
|
|
|
|
echo '<p class="mt-5 text-end">'.$L->g('Powered by Bludit').'</p>'
|
|
|
|
?>
|