com_google - Joomla Component - Security Release

We are announcing the immediate availability of com_google , the latest version of our com_google component for Joomla! 1.5 and 1.6 web site

IMPORTANT! THIS IS A SECURITY RELEASE; ALL USERS ARE REQUESTED TO UPDATE OR REINSTALL COM_GOOGLE

how to update com_google 1.5


Open com_google\site\google.php file and replace with following code
	
	
	

<?php
/**
* Google Map default controller
*
* @package Joomla.component
* @subpackage Components
* @link http://inetlanka.com
* @license GNU/GPL
* @auth inetlanka web team - [ info@inetlanka.com / inetlankapvt@gmail.com ]
*/

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

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Require specific controller if requested
// Require specific controller if requested
if($controller = JRequest::getWord('controller')) {
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
if (file_exists($path)) {
require_once $path;
} else {
$controller = '';
}
}

// Create the controller
$classname = 'GoogleController'.$controller;
$controller = new $classname();

// Perform the Request task
$controller->execute( JRequest::getVar('task'));

// Redirect if set by the controller
$controller->redirect();

?>

how to update com_google 1.6


Open com_google\site\google.php file and replace with following code
	
	
	

<?php

/**
* Google Map default controller
*
* @package Joomla.component
* @subpackage Components
* @link http://inetlanka.com
* @license GNU/GPL
* @auth inetlanka web team - [ info@inetlanka.com / wapnishantha@gmail.com ]
*/

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

// import joomla controller library
jimport('joomla.application.component.controller');

// Get an instance of the controller prefixed by HelloWorld
$controller = JController::getInstance('Google');

// Perform the Request task
$controller->execute(JRequest::getCmd('task'));

// Redirect if set by the controller
$controller->redirect();

  Joomla 1.5.X Joomla 1.6.X
Download com_google1.5.1 com_google1.6.1
Demo DEMO DEMO