Newer
Older
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
48
49
50
51
52
53
54
55
56
57
<?php
include_once 'creds.php';
session_start();
$user = $_SESSION["user"];
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
header("location: login.php");
exit;
}
include_once "siteoptions.php";
?>
<!doctype html>
<html lang="en" class>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><?php echo $SiteName; ?> - Admin</title>
<link rel="stylesheet" href="css/styles.css" media="screen">
</head>
<body>
<ol class="site-nav">
<li class="site-nav__item site-nav__item--homepage">
<a href="index.php"><?php echo $SiteName; ?></a>
</li>
</ol>
<div class="main">
<div class="container container--wide">
<h1>Change Site Identity</h1>
<form action="action-changesitenames.php" method="post">
<p>
Site Name: <input type="text" name="sitename" id="sitename"><br><br>
Subheading: <input type="text" name="subname" id="subname"><br><br>
<input type="submit" value="Submit">
</div>
</div>
</div>
</body>
</html>