rendered paste body// admin/panel/index.php
<?php
if ($_SESSION['loggedIn'] != true) {
header('Location: /personal');
}
elseif (!isset($_GET['edit'])) {
include('panel.php');
}
else {
switch ($_GET['edit']) {
case 'about':
include('about.php');
break;
case 'archive':
include('archive.php');
break;
case 'contact':
include('contact.php');
break;
case 'hardware':
include('hardware.php');
break;
case 'knowledge':
include('knowledge.php');
break;
case 'links':
include('links.php');
break;
case 'partners':
include('partners.php');
break;
}
}
?>