-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit.php
More file actions
33 lines (31 loc) · 722 Bytes
/
Copy pathedit.php
File metadata and controls
33 lines (31 loc) · 722 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
<?php
session_start();
if(!$_SESSION['username']) {
header("Location: ./index.php");
}
if (isset($_GET['type']) && isset($_GET['page'])) {
$page_type = $_GET['type'];
$page = $_GET['page'];
} else {
echo "Page type not defined.";
}
?>
<html>
<head>
<?php include("./header.php"); ?>
<script src="./js/logoslide.js"></script>
<script src="./js/imgPreview.js"></script>
</head>
<div class="container">
<section class="main">
<header role="banner"> <!-- begin content for the page -->
<h1>Welcome</h1>
</header> <!-- end [role="banner"] -->
<?php
include("./slider.php");
include("./pages/$page_type/edit.php");
?>
</section> <!-- end section.main -->
</div> <!-- end div.container -->
</body>
</html>