HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/deensekroon.komma-mediadesign.nl/wwwroot/admin/php/dispatcher.php
<?php
if(checkLogin() == 1){
	//Log out listener
	if(defined('URL_PAGE')){
		$page = URL_PAGE;
		
		switch($page){
			/* ORDERS */
			case 'orders' :
				include './php/orders.php';
				$contentOutput .= initOrders();
			break;
			/* PRODUCTS */
			case 'products' :
				include './php/products2.php';
				$contentOutput .= initProducts();
			break;
			case 'discounts' :
				include './php/discounts.php';
				$contentOutput .= initDiscounts();
			break;
			case 'giftcards' :
				include './php/giftcards.php';
				$contentOutput .= initGiftcards();
			break;
			/* CUSTOMERS */
			case 'customers' :
				include './php/customers.php';
				$contentOutput .= initCustomers();
			break;
			/* STOCK */
			case 'stock' :
				include './php/stock.php';
				$contentOutput .= initStock();
			break;
			/* 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;
			case 'landen' :
				include './php/countries.php';
				$contentOutput .= initCountries();
			break;
			
			/* multipages */
			case 'blog' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('blog');
			break;
            case 'actie' :
                include './php/mp_multipage.php';
                $contentOutput .= initMultipage('actie');
                break;
			case 'over' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('over');
			break;
			case 'merken' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('merken');
			break;
			case 'contact' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('contact');
			break;
			case 'faq' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('faq');
			break;
			case 'voorwaarden' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('voorwaarden');
			break;
			case 'banners' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('banners');
			break;
			case 'betalen' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('betalen');
			break;
			case 'levering' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('levering');
			break;
			case 'pers' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('pers');
			break;
			case 'ruilenRetour' :
				include './php/mp_multipage.php';
				$contentOutput .= initMultipage('ruilenRetour');
			break;
			
			
			/* LOGOUT */
			case 'logout' :
				/* TODO 
				if(isset($_COOKIE['dk_autologin'])){
					//unset cookies
					$temp = explode('_',$_SESSION['adminstr']);
					$adminId = $temp[0];
					//delete row in db
					mysql_query('DELETE FROM shop_autologin_tokens WHERE id = '.$adminId);
					//delete cookie
					setcookie( 'dk_autologin');
				}
				*/
				unset($_SESSION['adminstr']);
				//give succes feedback
				$_SESSION['feed-msg'] = '<span class="fm-suc"><span class="fm-suc-v">&radic;</span>'.$siteLabels['fm-logoutsucces'].'</span>';
				header('location: ../');
			break;
			default: 
			/* PAGE NOT FOUND */
				include './php/dashboard.php';
				$contentOutput .= initDashboard();
		}
	}
	else{
		include './php/dashboard.php';
				$contentOutput .= initDashboard();	
	}
}
else{
	//isset forgot-pass?
	if(defined('URL_PAGE')){
		if(URL_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();
	}
}







?>