<?php if(!defined('master_script')) die();

/**
 * Copyright (C) Nico Wenig
 * All rights reserved
 *
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @filesource
 */



/**
 * Get catalogue XML
 *
 * @category   Extension (news-pages)
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @version	   2009-05-29
 */
	
	$database_folder = $system_data['folder']['database'] . 'news/';
	
	if(isset($_GET['catalogue']) && is_file($database_folder . $_GET['catalogue'])) {
		$news_catalogue_xml = simplexml_load_file($database_folder . $_GET['catalogue']);
		if(count($news_catalogue_xml->page) == 0) unset($news_catalogue_xml);
	}

?>