%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/lightco1/www/administrator/components/com_chatnox/views/chatnox/
Upload File :
Create Path :
Current File : //home1/lightco1/www/administrator/components/com_chatnox/views/chatnox/view.html.php

<?php
/**
* @version		$Id: view.html.php 
* @package		Joomla
* @subpackage	ChatNox
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or other free or open source software licenses. See COPYRIGHT.php for copyright notices and details.
*/

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

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the Geo component
 *
 * @static
 * @package	Joomla
 * @subpackage	Chatnox
 * @since 1.0
 * @author Chatnox Dev
 */
class ChatnoxViewChatnox extends JViewLegacy
{
    var $chatnox  = "";
	function display($tpl = null)
	{
		global $mainframe;
		$db		=& JFactory::getDBO();
		$user 	=& JFactory::getUser();
		$query = "select * from #__chatnox limit 1";

		$options = array();
		$db->setQuery($query);
		$options["chatnox_id"] = 0;
		$options["chatnox_groupid"] = "";

		if($result = $db->query())
		{
			$rows = $db->getNumRows();
			if($rows != 0)
			{
				$chatnox_data = $db->loadAssocList();
				$options["chatnox_id"] = $chatnox_data[0]["id"];
				$options["chatnox_groupid"] = $chatnox_data[0]["group_id"];
			}
		} 

		$this->assignRef('options',	$options);
		parent::display($tpl);
	} 
}

Zerion Mini Shell 1.0