Sindbad~EG File Manager

Current Path : /var/www/ispania.gr/components/com_rsdirectory/controllers/
Upload File :
Current File : /var/www/ispania.gr/components/com_rsdirectory/controllers/mapsearch.php

<?php
/**
 * @package	RSDirectory!
 * @copyright	(c) 2013 - 2021 RSJoomla!
 * @link		https://www.rsjoomla.com
 * @license	GNU General Public License http://www.gnu.org/licenses/gpl-3.0.en.html
 */

// No direct access.
defined('_JEXEC') or die('Restricted access');

/**
 * Map Search controller.
 */
class RSDirectoryControllerMapSearch extends JControllerForm {
	/**
     * Get the necessery data. 
     *
     * @access public
     */
    public function getDataAjax() {
		
		// Stop the script if the token is invalid.
        $this->checkToken();
            
		// Get the Map Search model.
		$model = $this->getModel('MapSearch');
		
		echo json_encode( $model->getItems() );
		
		JFactory::getApplication()->close();
	}
		
	/**
	 * Get the info window for a certain entry.
	 *
	 * @access public
	 */
	public function getInfoWindow() {
		
		// Stop the script if the token is invalid.
        $this->checkToken();
		
		$view  = $this->getView('radius', 'html');
		$model = $this->getModel('MapSearch');
		$view->setModel($model, true);
		$view->setLayout('window');
		$view->display();
		
		JFactory::getApplication()->close();
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists