Skip to content

Commit

Permalink
Added removewiki.php and updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
harryajc committed Sep 1, 2021
1 parent 01b309f commit 8b68528
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Please Note: This tool is currently in early development and is not recommend fo

This is a admin management tool for a MediaWiki farm instanace.

Version: 0.2-Alpha
Version: 0.3-Alpha

Requirements
------------------
Expand Down
27 changes: 27 additions & 0 deletions removewiki.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
// 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;
}

// Include config file
require_once "config.php";
?>

<!DOCTYPE html>
<?php include_once("menu.php");?>
<html lang="en">
<head>
<title>Delete Wiki - MWAdmin</title>
</head>
<body>
<div class="content">
<h2>Delect a wiki below</h2>
<p>Please select the wiki you wish to delete</p>
</div>
</body>
</html>

0 comments on commit 8b68528

Please sign in to comment.