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/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];
        }
    }
}