<?php

include 'funciones.php';
//usuario y clave pasados por el formulario
$login = $_POST['login'];
$password = $_POST['password'];
//usa la funcion conexiones() que se ubica dentro de funciones.php
if (conexiones($login, $password)) {
    //si es valido accedemos a ingreso.php
    header('Location:index.php');
} else {
    //si no es valido volvemos al formulario inicial
    header('Location: sesion.php');
}
?>

Exemple #2
0
<!DOCTYPE html>
<html lang="en">
<?php 
include 'funciones.php';
//usuario y clave pasados por el formulario
$username = $_POST['username'];
$password = $_POST['password'];
$area = $_POST['area'];
if (conexiones($username, $password, $area)) {
    header('Location: contenido.php?cont=ADD');
} else {
    header('Location: index.php');
}
?>



    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>SB Admin 2 - Bootstrap Admin Theme</title>

    <!-- Bootstrap Core CSS -->
    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
Exemple #3
0
<!DOCTYPE html>
<html lang="en"><head>
<?php 
include 'funciones.php';
//usuario y clave pasados por el formulario
$username = $_POST['username'];
$password = $_POST['password'];
//usa la funcion conexiones() que se ubica dentro de funciones.php
if (conexiones($username, $password)) {
    //si es valido accedemos a ingreso.php
    header('Location: home.php');
} else {
    //si no es valido volvemos al formulario inicial
    header('Location: index.php');
}
?>
    <meta charset="utf-8">
    <title> SEGURIDAD PATRIMONIAL TELNOR</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link rel="stylesheet" type="text/css" href="css/jquery.validate.css">   
    <link href="css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>