-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.php
47 lines (37 loc) · 1.16 KB
/
news.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] === false){
header("location: login.php");
exit;
}
if($_SESSION['agent'] != $_SERVER['HTTP_USER_AGENT']) {
die('Session MAY have been hijacked');
}
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="description" content="proiect PHP">
<meta name="keywords" content="PHP, Music Magazine, Music Review, Music Interview, Music Tutorials">
<meta name="author" content="Stefana Arina Tabusca">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://fonts.googleapis.com/css?family=Cherry Swash' rel='stylesheet'><title> Musaic Magazine </title>
<link href='https://fonts.googleapis.com/css?family=Emblema One' rel='stylesheet'>
<link rel="stylesheet" type="text/css" href="home.css">
</head>
<body>
<header>
<?php
include('includes/header-logged.php');
?>
</header>
<footer>
<?php
include('includes/footer.php');
?>
</footer>
</body>
<html>