PHP Classes

File: app/index.php

Recommend this page to a friend!
  Classes of VITOR GABRIEL M. DANTAS   Pleiades   app/index.php   Download  
File: app/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Pleiades
Application to implement an issue-tracking system
Author: By
Last change:
Date: 4 months ago
Size: 3,306 bytes
 

Contents

Class file image Download
<?php
session_start
();
require
__DIR__.'./config.php';
include
__DIR__.'./scripts/status.php';
if(isset(
$_SESSION['DataAccount']['id'])){
   
header("Location: ../pages/System.php");
    exit();
}
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <title><?= $SERVER_NAME; ?> - Login</title>
        <meta name="description" content="Pagina principal do Pleiades">
        <meta name="author" content="Vitor G. Dantas">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" type="image/png" href="/assets/base/favicon.png"/>
        <link rel="stylesheet" href="/styles/style.css"/>
        <link rel="stylesheet" href="/vendor/twbs/bootstrap/dist/css/bootstrap.css"/>
        <link rel="stylesheet" href="/vendor/fortawesome/font-awesome/css/all.css"/>
    </head>
    <body>
        <div class="bannerindex puff-in-center">
            <nav class="mainmenu" align="center">
                <img src="/assets/base/index_logo.png" alt="indexlogo"/>
                <p><?= $SERVER_NAME.' <cite>'.$SYSTEM_VERSION; ?></cite> <span class="badge rounded-pill text-bg-warning">Beta</span></p>
            </nav>
            <div class="msg" align="center">
                <?php
                   
if(isset($_SESSION['Msg'])){
                        echo
$_SESSION['Msg'];
                        unset(
$_SESSION['Msg']);
                    }
                    else{
                        unset(
$_SESSION['Msg']);
                    }
               
?>
</div>
            <section class="formlogin" align="center">
                <form action="scripts/login.php" method="POST">
                    <div class="formmodel" align="left">
                        <label for="loginuser"><i class="fa-solid fa-at"></i> Email</label>
                        <input class="form-control" name="loginuser" id="loginuser" type="email" placeholder="Login" maxlength="100" required/>
                        <label for="loginpass"><i class="fa-solid fa-key"></i> Senha</label>
                        <input class="form-control" name="loginpass" id="loginpass" type="password" placeholder="********" minlength="8" maxlength="32" required/>
                    </div>
                    <button type="submit" class="css-button-rounded--sky"><i class="fa-solid fa-right-to-bracket"></i> Entrar</button>
                </form>
            </section>
            <div class="systemsupport" align="center">
                <h6>Se você não possui acesso ao seu login, entre em contato com o administrador do seu servidor!</h6>
                <h6>Caso você tenha um convite criptografado, você pode criar sua conta <a href="pages/Create_Account.php">aqui!</a></h6>
            </div>
        </div>
        <footer align="center">
            <a href="https://github.com/r0t1v/pleiades" target="blank"><i class="fa-brands fa-github"></i></a>
            <a href="https://github.com/r0t1v/pleiades/wiki" target="blank"><i class="fa-solid fa-book-open"></i></a>
        </footer>
        <script type="text/javascript" src="/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.js"></script>
        <script type="text/javascript" src="/vendor/fortawesome/font-awesome/js/all.js"></script>
    </body>
</html>