-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
34 lines (29 loc) · 759 Bytes
/
header.php
File metadata and controls
34 lines (29 loc) · 759 Bytes
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
<?php
ini_set("error_reporting","E_ALL & ~E_NOTICE");
session_start();
require 'config.php';
$db = mysqli_connect($dbhost,$dbuser,$dbpassword,$dbdatabase);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title><?php echo $config_blogname; ?> </title>
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
</head>
<body>
<div id="header">
<h1><?php echo $config_blogname;?></h1>
<a href="index.php">Home</a>|
<a href="viewcat.php">Categories</a>|
<?php
if(isset($_SESSION['USERNAME'])==TRUE){
echo "<a href='logout.php'>logout</a>|";
echo "<a href='addentry.php'>add entry</a>|";
echo "<a href='addcat.php'>add category</a>";
}else{
echo "<a href='login.php'>login</a>";
}
?>
</div>
<div id="main">