continuo sin hacerlo funcionar...
Código PHP:
<?php
if(isset($_GET['salir'])){
session_start();
setcookie('*****', '');
$_SESSION['*****'] = '';
session_unset();
session_destroy();
$_SESSION = array();
header('Location: http://'.$_SERVER['HTTP_HOST'].'/login.php');
exit;
} elseif(strcmp(trim($user->userData['usuario']), 'Administrador') == 0) {
include_once('functions.inc.php');
include_once('header_p.php');
include_once('footer_p.php');
} else {
echo "<script>alert('No tienes privilegios para acceder a esta zona.'); window.location='index.php';</script>";
exit;
}
?>