PHP Classes

File: uploady/login.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/login.php   Download  
File: uploady/login.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: Update of uploady/login.php
Date: 4 months ago
Size: 2,809 bytes


Class file image Download
include_once 'session.php';
APP_PATH . 'logic/loginLogic.php';

<?php include_once APP_PATH . 'components/header.php'; ?>

<div class="container pb-5 pt-5">
    <div class="row justify-content-center text-center">
        <div class="col-sm-12 col-md-8 col-lg-4">
            <div class="card">
                <div class="card-header">
                    <b><?= $lang["general"]['login_title'] ?></b>
                <div class="card-body container text-left">
                    <?php if (isset($error)) : ?>
<?= $utils->alert($error, 'danger', 'times-circle'); ?>
<?php endif; ?>
<form method="POST" id="login_form">
                        <div class="mb-3">
                            <input type="text" class="form-control" name="username" placeholder="<?= $lang["general"]['enter_username']; ?>">
                        <div class="mb-3">
                            <input type="password" class="form-control" name="password" placeholder="<?= $lang["general"]['enter_password']; ?>">
                        <?php if ($settings->getSettingValue('recaptcha_status') == true) : ?>
<input type="hidden" name="recaptcha_response" id="recaptchaResponse">
                        <?php endif; ?>
<a class="d-block small m-3" href="forgot-password.php"><?= $lang["general"]['forget_password']; ?></a>
                        <div class="text-center">
                            <button type="submit" class="btn btn-primary">
                                <?= $lang["general"]['login_button']; ?>
                <div class="card-footer mb-0">
                    <a href="<?= $utils->siteUrl('/signup.php'); ?>">
                        <?= $lang["general"]['signup_cta_msg']; ?>

<?php if ($settings->getSettingValue('recaptcha_status') == true) : ?>
<script src="<?php echo $settings->getSettingValue('recaptcha_site_key'); ?>"></script>
        grecaptcha.ready(function() {
            grecaptcha.execute('<?php echo $settings->getSettingValue('recaptcha_site_key'); ?>', {
                action: 'login_form'
            }).then(function(token) {
                var recaptchaResponse = document.getElementById('recaptchaResponse');
                recaptchaResponse.value = token;
<?php endif; ?>

<?php include_once 'components/footer.php'; ?>