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 />
To output the header use: tpl.php?section=header<br />
To output the footer use: tpl.php?section=footer<br />";
}
}