ok
Direktori : /home/pequenacapitolio/www/administrador/ |
Current File : /home/pequenacapitolio/www/administrador/index.php |
<?php include "../conexao.php"; ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); if(isset($_SESSION["adm"])){ header("Location: entrada.php"); } if (isset($_POST["login"]) && isset($_POST["senha"])) { $clienteQuery = $conn->query("SELECT * FROM usuarios WHERE `login` = '".$_POST["login"]."' AND senha = '".MD5($_POST["senha"])."';"); $dataCliente = $clienteQuery->fetchAll(PDO::FETCH_ASSOC); if(sizeof($dataCliente) != 0){ $_SESSION["adm"] = $dataCliente[0]; header("Location: entrada.php"); } } if (isset($_GET["sair"]) && $_GET["sair"] == "sim"){ $_SESSION["adm"] = null; } ?> <!DOCTYPE html> <html style="background-image: url(img_site/bckground.jpg);background-repeat: no-repeat;background-size: cover"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>ÁREA DE GESTÃO DE CONTEÚDO FASTBUILDER 4.0</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.7 --> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css"> <!-- Font Awesome --> <!-- <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"> --> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <!-- Ionicons --> <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css"> <link rel="shortcut icon" href="../images/favicon.png"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <!-- Google Font --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> </head> <body class="hold-transition login-page" style="background: transparent;"> <div class="col-md-12" style="background: transparent;text-align: center"> <p style="font-size: 32px;color: #0a94c5;font-weight: 700">Olá! Seja bem vindo de volta ;)</p> <div class="col-md-12" style="background: transparent;text-align: center;margin-bottom: 4%"> <div class="col-md-4"></div> <div class="col-md-4" style="padding: 0"> <div class="col-md-2" style="padding: 0;height: 10px;border-bottom: 1px solid #41535d"></div> <div class="col-md-8" style="padding: 0"><p style="font-size: 16px;color: #fff;margin-bottom: 4%;padding:0">POSICIONAMENTO CORPORATIVO DIGITAL</p></div> <div class="col-md-2" style="padding: 0;height: 10px;border-bottom: 1px solid #41535d"></div> </div> <div class="col-md-4"></div> </div> </div> <div class="login-box" style="margin: 5% auto"> <div class="col-md-12" style="height: 150px"> <div class="login-box-body" style="border-radius: 5px;"> <div class="login-logo"> <a><img src="img_site/logo_aw.png" alt="logo" style="max-height:44px;"></a> </div> <p class="login-box-msg" style="font-size: 12px !important;color: #000;">ÁREA DE GESTÃO DE CONTEÚDO FASTBUILDER 4.0</p> <form action="index.php" method="post"> <div class="form-group has-feedback"> <input type="usuario" class="form-control" name="login" placeholder="Usuário"> <span class="fas fa-user-shield form-control-feedback" style="line-height: 2.5;"></span> </div> <div class="form-group has-feedback"> <input type="password" class="form-control" name="senha" placeholder="Senha"> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="row"> <!-- /.col --> <div class="col-xs-4" style="margin-left: 62%;background: #3ca6b6"> <button type="submit" class="btn btn-primary btn-block btn-flat" style="background: transparent;border: 0">Entrar</button> </div> <!-- /.col --> </div> </form> </div> <div class="col-md-12" style="margin-top: 11%;text-align: center;padding-left: 17%;padding-right: 17%"> <a href="https://web.whatsapp.com/send?l=pt_BR&phone=5535991198216" target="_black" style="font-size: 16px;transition: .1s ease;background-color: transparent;color: #ffffff;text-transform: uppercase;display: flex;justify-content: center;align-items: center;border-radius: 50px;border: solid 1px #bfe4ed;height: 40px;cursor: pointer;">Falar com a AdaptWeb</a> </div> <div class="col-md-12" style="margin-top: 11%;text-align: center"> <div class="col-md-3" style="height: 50px;padding: 0"> <a href="https://www.instagram.com/adaptweb.oficial/" target="_black"><img src="img_site/icon_IG.png" style="height: 40px;width: 40px"></a> <!-- <div class="col-md-2"></div> <div class="col-md-8" style="height: 50px;background: #048ecf;border-radius: 100%"></div> <div class="col-md-2"></div> --> </div> <div class="col-md-3" style="height: 50px;padding: 0"> <a href="https://www.facebook.com/adaptweb.oficial/" target="_black"><img src="img_site/icon_face.png" style="height: 40px;width: 40px"></a> <!-- <div class="col-md-2"></div> <div class="col-md-8" style="height: 50px;background: #048ecf;border-radius: 100%"></div> <div class="col-md-2"></div> --> </div> <div class="col-md-3" style="height: 50px;padding: 0"> <a href="https://www.linkedin.com/uas/login?session_redirect=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2F11785172%2Fadmin" target="_black"><img src="img_site/icon_in.png" style="height: 40px;width: 40px"></a> <!-- <div class="col-md-2"></div> <div class="col-md-8" style="height: 50px;background: #048ecf;border-radius: 100%"></div> <div class="col-md-2"></div> --> </div> <div class="col-md-3" style="height: 50px;padding: 0"> <a href="https://www.adaptweb.com.br/" target="_black"><img src="img_site/icon_url.png" style="height: 40px;width: 40px"></a> <!-- <div class="col-md-2"></div> <div class="col-md-8" style="height: 50px;background: #048ecf;border-radius: 100%"></div> <div class="col-md-2"></div> --> </div> </div> </div> <!-- /.login-logo --> <!-- /.login-box-body --> </div> <!-- /.login-box --> <!-- jQuery 3 --> <script src="bower_components/jquery/dist/jquery.min.js"></script> <!-- Bootstrap 3.3.7 --> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <!-- iCheck --> <script src="plugins/iCheck/icheck.min.js"></script> <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' /* optional */ }); }); </script> </body> </html>