<?php include_once "models/user.php"; //Including information about registered users. $cookie = hasCookie($_COOKIE['login'], $users); if ($cookie) { $current_user = $cookie; } $home = "index.php"; $logged = logged($current_user); $allusers = "allusers.php"; $maps = "maps.php"; $about = "Impossible-Octopus-Fitness/Impossible-Octopus-Fitness.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Twitter clone</title> <link rel="icon" href="img/favicon.ico"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/style.css" type="text/css"> <script src="js/sticky_smart_header.js"></script> <script src="js/weather.js"></script> </head> <body> <!--Begin main container--> <div class="container"> <?php include "views/header.php"; ?>
function logout() { destroySessions(); if (hasCookie()) { destroyCookie(); } //send to login page header("Location: " . LOGIN_PAGE); }