Sindbad~EG File Manager

Current Path : /var/www/ispania.gr/plugins/system/rslibro/
Upload File :
Current File : /var/www/ispania.gr/plugins/system/rslibro/helper.php

<?php
/**
 * @package RSLibro!
 * @copyright (C) 2016 www.rsjoomla.com
 * @license GPL, http://www.gnu.org/licenses/gpl-3.0.html
 */

defined('_JEXEC') or die;

class RSLibroHelper
{
	public static function getDefaultSiteTemplate() {
		$db 	= JFactory::getDBO();
		$query 	= $db->getQuery(true);

		$query->select('*')
			->from($db->qn('#__template_styles'))
			->where($db->qn('client_id') . ' = 0 AND ' . $db->qn('home') . ' = 1');

		$db->setQuery($query);
		$default_template = $db->loadObject();
		
		return $default_template;
	}
	
	public static function escapeHTML($string) {
		return htmlentities($string, ENT_QUOTES, 'utf-8');
	}
}

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