Delete index.php

This commit is contained in:
Selim B 2022-02-26 13:34:26 +01:00 committed by GitHub
parent eb5845fac2
commit 2d9c50f276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,88 +0,0 @@
<?php
session_start();
include("includes/config.inc.php");
require("includes/conn.inc.php");
require("includes/deamon.inc.php");
if(!isset($_GET["page"])) {
header("location: ".$config["home"]."");
} else {
$rPage = $_GET["page"];
}
if(!empty($_COOKIE["loggedincookie"])) {
$_SESSION["username"] = $_COOKIE["loggedincookie"];
}
if($rPage=="logout") {
session_destroy();
session_unset();
setcookie("stayLogged", "", time() - 3600);
header("location: ".$config["url"]."");
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include("templates/head.temp.php"); ?>
</head>
<body>
<?php include("templates/navbar.temp.php"); ?>
<div class="container">
<div class="row">
<?php if($banner["enabled"]=="1") { ?>
<div class="col-sm-12">
<?php include("templates/banner.temp.php"); ?>
</div>
<?php } ?>
<div class="col-sm-12">
<?php include("pages/$rPage.req.php"); ?>
</div>
<!--<div class="col-sm-2"> Don't need a sidebar yet
<?php include("templates/sidebar.temp.php"); ?>
</div>-->
<div class="col-sm-12">
<center>
<pre>.:: Debug Lounge ::.
;Page = <?php echo $rPage; ?>;
.:: End Debug Lounge ::.</pre>
</center>
</div>
</div>
</div>
<?php include("templates/footer.temp.php"); ?>
</body>
</html>