<?php include "../confic/sessiones.php"; include "../confic/coneccion.php"; include "../confic/coneccion_bd.php"; $objs = new sessiones(); $objs->init(); $objBd = new bd(); $user = isset($_SESSION['user']) ? $_SESSION['user'] : null; if ($user == "") { header("location:../loguin.php?n=error1"); } ?> <!DOCTYPE html> <html lang="en"> <head> <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>Agencia - Grupo Torres</title> <!-- Bootstrap Core CSS --> <link href="../css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="../css/agency.css" rel="stylesheet">
<?php include "confic/sessiones.php"; $objS = new sessiones(); $objS->init(); $user = isset($_SESSION['user']) ? $_SESSION['user'] : null; if ($user != null) { header("location:backend/backend.php"); } else { } $erro = isset($_GET["n"]) ? $_GET["n"] : null; ?> <!DOCTYPE html> <html lang="en"> <head> <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>Agencia - Grupo Torres</title> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="css/agency.css" rel="stylesheet">
<?php require "sessiones.php"; $objS = new sessiones(); $objS->init(); $objS->destroy(); header("location:../index.php");