Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/modules/pages.module.php
<?php

(!defined('IN_PowerBB')) ? die() : '';

$CALL_SYSTEM			=	array();
$CALL_SYSTEM['PAGES'] 	= 	true;

include('common.php');

define('CLASS_NAME','PowerBBAdsPageMOD');

class PowerBBAdsPageMOD
{
	function run()
	{
		global $PowerBB;

		if ($PowerBB->_GET['show'])
		{
			$this->_ShowPage();
		}
		else
		{
			$PowerBB->functions->error($PowerBB->_CONF['template']['lang']['path_not_true']);
		}

		$PowerBB->functions->GetFooter();
	}

	function _ShowPage()
	{
		global $PowerBB;

		$PowerBB->functions->ShowHeader();

		$PowerBB->_GET['id'] = $PowerBB->functions->CleanVariable($PowerBB->_GET['id'],'intval');

		if (empty($PowerBB->_GET['id']))
		{
			$PowerBB->functions->error($PowerBB->_CONF['template']['lang']['path_not_true']);
		}

		$PageArr 			= 	array();
		$PageArr['where'] 	= 	array('id',$PowerBB->_GET['id']);

		$PowerBB->_CONF['template']['GetPage'] = $PowerBB->pages->GetPageInfo($PageArr);

		if (!$PowerBB->_CONF['template']['GetPage'])
		{
			$PowerBB->functions->error($PowerBB->_CONF['template']['lang']['pagenotavailable']);
		}

		$PowerBB->template->display('show_page');
	}
}

?>
Return current item: PBBoard