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/PvdBoogaard/indoorski.nl/backup/oude-site/cms/includes/pages/external.php
<?php
/**
 * This file contains the iwp_page_external class
 *
 * @version $Id$
 * 
 *
 * @package IWP
 * @subpackage IWP_FrontEnd
 */

/**
 * IWP Frontend Error Page Class
 * This class extends the iwp_engine abstract class.
 * This class handles the actions for displaying the header or footer on non-IWP pages
 *
 * @package IWP
 * @subpackage IWP_FrontEnd
 */


class iwp_page_external extends iwp_engine {
	/**
	 * Calls the parent constructor
	 *
	 * @return void Doesn't return anything
	 */
	public function __construct(){
		parent::__construct();
	}

	/**
	 * This function displays a external page
	 *
	 * @return void Doesn't return anything
	 */
	public function ShowPage(){
		$this->controller->SetContent('%%SplitTemplate%%');
		$html = $this->controller->ShowTemplate('external', true);

		$header = $footer = '';

		list($header, $footer) = explode('%%SplitTemplate%%', $html);

		if(@$_GET['section'] == 'footer') {
			die($footer);
		}elseif(@$_GET['section'] == 'header') {
			die($header);
		}

		echo "This file output the header/footer of the current template based upon the GET request.<br />
		The requests can be made like this:<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To output the header use: tpl.php?section=header<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To output the footer use: tpl.php?section=footer<br />";
	}

}