<?php include 'includes/mysql.funciones.php'; include 'login/class.login.php'; $login = new _login(); $login->iniciar_sesion('AsistenciaRCD'); //Desconfigura todos los valores de sesión $_SESSION = array(); //Obtén parámetros de sesión $params = session_get_cookie_params(); //Borra la cookie actual setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); //Destruye sesión session_destroy(); header('Location: /index.php');
<?php /*------------------------------------------------------------------------- Autor: Ramon Sanchez; Ultima Modificació: (Para Ajax) 27/Julio/2014 ; ---------------------------------------------------------------------------*/ if (isset($_POST['user'], $_POST['pass'])) { include 'includes/mysql.configuracion.php'; include 'includes/mysql.funciones.php'; include 'includes/class.login.php'; //--------------------------------------------------------------------------- $com = new com_mysql(); $cnn = $com->_conectar(HOST, USER, PASS, DATA); //--------------------------------------------------------------------------- $login = new _login(); $login->iniciar_sesion(); //--------------------------------------------------------------------------- $host = $_SERVER['HTTP_HOST']; header('Content-type: application/json'); $user = $_POST['user']; $pass = $_POST['pass']; //La contraseña con hash $urlforall = "/app/gui.main.php"; /*-----------------------------bandera---------------------------------*/ if (isset($_POST['ban'])) { $bandera = htmlentities($_POST['ban']); switch ($bandera) { case 'none': $url = $urlforall; break; default:
<?php include_once 'includes/class.login.php'; include_once 'includes/mysql.funciones.php'; $login = new _login(); $login->iniciar_sesion(); if (isset($_GET['ban'])) { $bandera = htmlentities($_GET['ban']); } else { $bandera = 'none'; } //end if ?> <!DOCTYPE html> <html lang="es"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"> <title>Asistencia - [RCD Resorts]</title> <meta charset="utf-8" /> <link rel="shortcut icon" href="/imagenes/favicon.ico" /> <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/login.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/font-awesome.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/animaciones.css" /> <script src="/scripts/jquery.min.js"></script> <script src="/scripts/jquery.login.js"></script> <script src="/scripts/cargando.js"></script>
<?php include_once '../includes/mysql.configuracion.php'; include_once '../includes/mysql.funciones.php'; include_once '../includes/mssql.configuracion.php'; include_once '../includes/mssql.funciones.php'; include_once '../includes/forms.funciones.php'; include_once '../login/class.login.php'; //-------------------------------------------------------------------------- $login = new _login(); $login->iniciar_sesion('AsistenciaRCD'); //-------------------------------------------------------------------------- $com = new com_mysql(); $cnn = $com->_conectar(HOST, USER, PASS, DATA); //verficar logeado //echo $login->logeado(); if (!$login->logeado()) { $logeado = 0; $id_usuario = 0; $user = ""; } else { $logeado = 1; $id_usuario = $_SESSION['user']; $user = $_SESSION['userSindominio']; } //end if ?> <!Doctype html> <html lang="es">