mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-02-03 21:30:47 +00:00
This is a bulk cleanup of all of the functions that have since been surpassed by their desktop counterparts. A lot of effort went into these original features but the effort that was expended to make the desktop better far exceeded this. I thank the efforts of everyone who helped to make the web version a reality in the first place since it provided the strong base that SabreTools has become. This will still be maintained purely as a way of checking files online as will be required when the WoD DATs are properly recreated.
46 lines
1015 B
PHP
46 lines
1015 B
PHP
<?php
|
|
// This is for a few special cases where we don't want the HTML header
|
|
ob_start();
|
|
?>
|
|
|
|
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
|
|
<head>
|
|
<title>Wizard! Of! The! DATz!</title>
|
|
<link type="text/css" href="css/_master.css" />
|
|
</head>
|
|
|
|
<?php
|
|
|
|
include_once("css/style.php");
|
|
include_once("includes/functions.php");
|
|
|
|
// Connect to the database so it doesn't have to be done in every page
|
|
$link = mysqli_connect('localhost', 'root', '', 'wod');
|
|
if (!$link)
|
|
{
|
|
die('Error: Could not connect: ' . mysqli_error($link));
|
|
}
|
|
|
|
//echo "Connection established!<br/>\n";
|
|
|
|
if (isset($_GET["page"]) && file_exists("pages/".str_replace("../", "", htmlspecialchars($_GET["page"])).".php"))
|
|
{
|
|
include_once "pages/".$_GET["page"].".php";
|
|
}
|
|
else
|
|
{
|
|
echo "<p>
|
|
Welcome to the WoD Revival homepage!
|
|
|
|
<p><a href='admin/'>Access administrative functions (admin/admin)</a></p>";
|
|
}
|
|
|
|
echo "<a href='?page='>Return to home</a>";
|
|
|
|
mysqli_close($link);
|
|
|
|
?>
|
|
|
|
</html>
|