<?php namespace App\Admin; use App\Session; use App\Admin as AdminClass; require "../../config.php"; require_once "../../vendor/autoload.php"; session_start(); session_regenerate_id(); if (isset($_SESSION['user_id']) && isset($_SESSION['user_name'])) { $hello = "Hello " . SESSION::GetKey('user_name'); } else { die("Unauthorized user"); } ?> <html> <head> <title>Admin page</title> <link rel="stylesheet" type="text/css" href="../../public/css/normalize.css" /> <link rel="stylesheet" type="text/css" href="../../public/css/style.css" /> </head> <body> <div class="wrapper adm"> <h1><?php echo $hello; ?> </h1> <form action="" method="get"> <button type="submit" name="logout" >Logout</button>