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/promic.komma-mediadesign.nl/wwwroot/datasource.php
<?php

    session_start();
    header('Content-Type: text/xml;charset=utf-8');
    
    $base = substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));
	
	if($_GET['swfaddress'] == '/' || $_GET['swfaddress'] == ''){
		$file_name = "home";
	}else{
		$file_name = $_GET['swfaddress'];
		
		if(substr($file_name, 0, 1) != "/"){
			$file_name = '/'.$file_name;
		}
		if(substr($file_name, -1) != "/"){
			$file_name = $file_name.'/';
		}
		
		$file_name = substr($file_name, 1, -1);
		$file_name = str_replace("/","-",$file_name);

	}
	
    $file = '/product_data/' . $file_name;
		
	if(file_exists($_SERVER['DOCUMENT_ROOT'].$file . '.php')) {
        include($file . '.php');
        $content = '';
    } else {
        $content = '<p><!-- Status(404 Not Found) -->Page not found.</p>';
    }
    echo($content);
    
?>