-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwelcome.php
More file actions
32 lines (30 loc) · 973 Bytes
/
welcome.php
File metadata and controls
32 lines (30 loc) · 973 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
// This page is the main welcome page that only Loggedin users can access
// This provides options to manage the wiki environment.
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
?>
<!DOCTYPE html>
<?php include_once("menu.php"); ?>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MWAdmin</title>
</head>
<body>
<div class="content">
<h1 class="my-5">Hi, <b><?php echo htmlspecialchars($_SESSION["username"]); ?></b>. Welcome to the MediaWiki Management Interface.</h1>
<p>
<a href="createwiki.php" class="btn btn-dark">Create wiki</a>
<a href="wikilist.php" class="btn btn-primary ml-3">Wiki list</a>
<a href="#" class="btn btn-warning ml-3">Spare</a>
<a href="removewiki.php" class="btn btn-danger ml-3">Remove Wiki</a>
</p>
</div>
</body>
</html>