Exemple #1
0
<?php

include_once "../../class/Carrega.class.php";
if (isset($_POST['logout'])) {
    $object = new Logar();
    $object->Logout();
    header('Location:login_page.php');
}
Exemple #2
0
<?php

include_once "../../class/Carrega.class.php";
if (isset($_POST['entrar']) && !empty($_POST['login']) && !empty($_POST['senha'])) {
    $object = new Logar();
    $login = addslashes($_POST['login']);
    $senha = addslashes($_POST['senha']);
    //var_dump($login);
    //var_dump($senha);
    if ($object->Login($login, $senha)) {
        header('Location:index.php');
        //echo "Ok";
        //return true;
    } else {
        //echo "Error";
        header('Location:login_page.php?error');
        //return false;
    }
}
Exemple #3
0
<?php

include_once "../class/Carrega.class.php";
if (isset($_POST['logar']) && !empty($_POST['login']) && !empty($_POST['senha'])) {
    $object = new Logar();
    $object->login($_POST['login'], $_POST['senha']);
    header('Location:print.php');
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 2 | Log in</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.5 -->
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="../plugins/iCheck/square/blue.css">

    <!-- 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]>