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/spire.komma-mediadesign.nl/wwwroot/kms/client/dispatcher.php
<?php

/*

	This page is included by index.php
	Guides the user to the right page in case of a client page

*/

if(defined('URL_PAGE')) $page = URL_PAGE;

// switch static client pages
if(isset($page))
{
	switch($page)
	{
		case 'nieuws':
			$found = TRUE;
			$template->setData('page_name','news');
			$template->load(DOCUMENT_ROOT.'client/controllers/c_news.php', '');
		break;
		case 'awards':
			$found = TRUE;
			$template->setData('page_name','awards');
			$template->load(DOCUMENT_ROOT.'client/controllers/c_awards.php', '');
		break;
		case 'categorieen':
			$found = TRUE;
			$template->setData('page_name','categories');
			$template->load(DOCUMENT_ROOT.'client/controllers/c_categories.php', 'Categorie&euml;n - '.SITE_NAME);	
		break;
		case 'vacatures':
			$found = TRUE;
			$template->setData('page_name','vacatures');
			$template->load(DOCUMENT_ROOT.'client/controllers/c_vacancy.php', '');
		break;
        case 'homebanners':
            $found = TRUE;
            $template->setData('page_name','homebanner');
            $template->load(DOCUMENT_ROOT.'client/controllers/c_banners.php', '');
            break;
        case 'wheretobuy':
            $found = TRUE;
            $template->setData('page_name','wheretobuy');
            $template->load(DOCUMENT_ROOT.'client/controllers/c_where_to_buy.php', '');
            break;
        case 'mobilesupport':
            $found = TRUE;
            $template->setData('page_name','mobilesupport');
            $template->load(DOCUMENT_ROOT.'client/controllers/c_mobile_support.php', '');
            break;
		case 'tools':
			$found = true;
			$template->setData('page_name','tools');
			$template->load(DOCUMENT_ROOT.'client/controllers/c_tools.php', '');
		break;

        case 'producten':
            $found = TRUE;
            $template->setData('page_name','products');
            $_SESSION['prod_info']['catId'] = NULL;
            $_SESSION['prod_info']['tableName'] = NULL;
            $_SESSION['prod_info']['pageId'] = 6;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
        break;

        // Product categories:
        case 'systemcooling':
            $found = TRUE;
            $template->setData('page_name','producten_systemcooling');

            $_SESSION['prod_info']['catId'] = 8;
            $_SESSION['prod_info']['tableName'] = 'page_systemcooling_items';
            $_SESSION['prod_info']['pageId'] = 7;
            $_SESSION['prod_info']['linkname'] = 'systemcooling';
            $_SESSION['prod_info']['label'] = 'System Cooling';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php','');
        break;
        case 'fans':
            $found = TRUE;
            $template->setData('page_name','producten_enclosures');
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_enclosures.php','');
            break;
        case 'powersupply':
            $found = TRUE;
            $template->setData('page_name','producten_powersupply');

            $_SESSION['prod_info']['catId'] = 7;
            $_SESSION['prod_info']['tableName'] = 'page_powersupply_items';
            $_SESSION['prod_info']['pageId'] = 8;
            $_SESSION['prod_info']['linkname'] = 'powersupply';
            $_SESSION['prod_info']['label'] = 'Power Supply';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
        break;
        case 'cpucoolers':
            $found = TRUE;
            $template->setData('page_name','producten_cpucoolers');

            $_SESSION['prod_info']['catId'] = 3;
            $_SESSION['prod_info']['tableName'] = 'page_cpucoolers_items';
            $_SESSION['prod_info']['pageId'] = 9;
            $_SESSION['prod_info']['linkname'] = 'cpucoolers';
            $_SESSION['prod_info']['label'] = 'CPU Coolers';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'pccases':
            $found = TRUE;
            $template->setData('page_name','producten_pccases');

            $_SESSION['prod_info']['catId'] = 2;
            $_SESSION['prod_info']['tableName'] = 'page_pccases_items';
            $_SESSION['prod_info']['pageId'] = 10;
            $_SESSION['prod_info']['linkname'] = 'pccases';
            $_SESSION['prod_info']['label'] = 'Computer Cases';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'pcaccessories':
            $found = TRUE;
            $template->setData('page_name','producten_pc_accessories');

            $_SESSION['prod_info']['catId'] = 1;
            $_SESSION['prod_info']['tableName'] = 'page_pcaccessories_items';
            $_SESSION['prod_info']['pageId'] = 11;
            $_SESSION['prod_info']['linkname'] = 'pcaccessories';
            $_SESSION['prod_info']['label'] = 'PC Accessories';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'tabletpc':
            $found = TRUE;
            $template->setData('page_name','producten_tabletpc');

            $_SESSION['prod_info']['catId'] = 9;
            $_SESSION['prod_info']['tableName'] = 'page_tabletpc_items';
            $_SESSION['prod_info']['pageId'] = 16;
            $_SESSION['prod_info']['linkname'] = 'tabletpc';
            $_SESSION['prod_info']['label'] = 'Tablet PC';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'ergonomics':
            $found = TRUE;
            $template->setData('page_name','producten_ergonomics');

            $_SESSION['prod_info']['catId'] = 10;
            $_SESSION['prod_info']['tableName'] = 'page_ergonomics_items';
            $_SESSION['prod_info']['pageId'] = 18;
            $_SESSION['prod_info']['linkname'] = 'ergonomics';
            $_SESSION['prod_info']['label'] = 'Ergonomics';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'led':
            $found = TRUE;
            $template->setData('page_name','producten_led');

            $_SESSION['prod_info']['catId'] = 11;
            $_SESSION['prod_info']['tableName'] = 'page_led_items';
            $_SESSION['prod_info']['pageId'] = 19;
            $_SESSION['prod_info']['linkname'] = 'led';
            $_SESSION['prod_info']['label'] = 'LED';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', '');
            break;
        case 'mobileaccessories':
            $found = TRUE;
            $template->setData('page_name','producten_mobile_accessories');

            $_SESSION['prod_info']['catId'] = 6;
            $_SESSION['prod_info']['tableName'] = 'page_mobileaccessories_items';
            $_SESSION['prod_info']['pageId'] = 12;
            $_SESSION['prod_info']['linkname'] = 'mobileaccessories';
            $_SESSION['prod_info']['label'] = 'Mobile Accessories';
            $_SESSION['prod_info']['doclabel'] = TRUE;
            $template->load(DOCUMENT_ROOT.'client/controllers/products/c_products.php', $_SESSION['prod_info']['label'].' | Producten | '.SITE_NAME);
            break;
        case 'product-registration':
            $template->load(DOCUMENT_ROOT.'client/controllers/c_product_reg.php', 'Product Registration | '.SITE_NAME);
            break;
        case 'newsletter':
            $template->load(DOCUMENT_ROOT.'client/controllers/c_newsletter.php', 'Newsletter | '.SITE_NAME);
            break;
    }
}