File: D:/HostingSpaces/SBogers59/ferrumbv.nl/wwwroot/app/controllers/c_xhr.class.php
<?php
/**
* Created by PhpStorm.
* User: mike
* Date: 27/10/14
* Time: 12:04
*/
include_once DOCUMENT_ROOT . 'lib/ui/gallery.class.php';
class Xhr extends Controller
{
private $_pageName = '';
public function __construct(){}
// Get images for the enlarged gallery
public function xhrGetImages()
{
// Does the page name exist
if(isset($_GET['page']))
{
$this->_pageName = $_GET['page'];
$sub = $_GET['sub'];
if(empty($sub)) $sub = ' ';
// Read XML to array
$Parser = new XML_Parser($this->_pageName);
$current = $Parser->getCurrent($sub);
$Gallery = new UI_Gallery($this->_pageName);
$data = $Gallery->create($current);
echo $data[1];
}
}
}