stories/app/admin/includes/header.php

30 lines
762 B
PHP
Executable File

<?php
// echo all errors
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include_once("config.php");
include_once("../includes/classes/Post.php");
include_once("../includes/classes/Markdown.php");
if(!$_SESSION["username"]) {
header("Location: login.php");
} else {
$username = $_SESSION["username"];
}
$Parsedown = new Parsedown();
?>
<!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.0">
<title>Win's Personal Feed - Admin</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>