File: D:/HostingSpaces/SBogers10/verrassendveel.komma.pro/wwwroot/admin/php/dispatcher.php
<?php
if(checkLogin())
{
//Log out listener
if(isset($_GET['page'])){
$page = $_GET['page'];
switch($page){
/* MEDIA */
case 'media' :
include './php/media.php';
$contentOutput .= initMedia();
break;
/* MY ACCOUNT */
case 'myaccount' :
include './php/myAccount.php';
$contentOutput .= initMyAccount();
break;
/* TRASH */
case 'trash' :
include './php/trash.php';
$contentOutput .= initTrash();
break;
/* SUPERADMIN */
case 'superadmin' :
include './php/superadmin.php';
$contentOutput .= initSuperAdmin();
break;
/* multipages */
case 'welkom' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('welkom');
break;
case 'winkelaanbod' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('winkelaanbod');
break;
case 'winkelintro' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('winkelintro');
break;
case 'ervaringen' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('ervaringen');
break;
case 'ervaringenintro' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('ervaringenintro');
break;
case 'actueel' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('actueel');
break;
/*case 'impressies' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('impressies');
break;*/
case 'route' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('route');
break;
case 'vestigen' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('vestigen');
break;
case 'banners' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('banners');
break;
case 'headerquotes' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('headerquotes');
break;
case 'themes' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('themes');
break;
case 'themesintro' :
include './php/mp_multipage.php';
$contentOutput .= initMultipage('themesintro');
break;
/* LOGOUT */
case 'logout' :
unset($_SESSION['adminstr']);
//give succes feedback
$_SESSION['feed-msg'] = '<span class="fm-suc"><span class="fm-suc-v">√</span>'.$siteLabels['fm-logoutsucces'].'</span>';
header('location: ../');
break;
default:
/* PAGE NOT FOUND */
}
}
}
else{
//isset forgot-pass?
if(isset($_GET['page'])){
if($_GET['page'] == 'forgot-pass'){
include './php/forgotPass.php';
$contentOutput .= initForgotPass();
}
else{
//else show the loginform
include './php/login.php';
$contentOutput .= initLogin();
}
}
else{
//else show the loginform
include './php/login.php';
$contentOutput .= initLogin();
}
}
?>