0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
modules
/
mod_googlesearch_cse
/
[
Home
]
File: helper.php
<?php /** * googleSearch module - default.php * Author: kksou * Copyright (C) 2006-2009. kksou.com. All Rights Reserved * Website: http://www.kksou.com/php-gtk2 * v1.5 Jan 3, 2009 */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); class modGoogleSearch_cse_Helper { static function getList(&$params) { global $mainframe; $db = JFactory::getDBO(); $user = JFactory::getUser(); $userId = (int) $user->get('id'); $db = JFactory::getDBO(); $db->setQuery("SELECT * FROM #__googleSearch_cse_conf LIMIT 1"); $rows = $db->loadObjectList(); $r = $rows[0]; return $r; } static function getItemid(&$params) { global $mainframe; $db = JFactory::getDBO(); $user = JFactory::getUser(); $userId = (int) $user->get('id'); $db = JFactory::getDBO(); $db->setQuery("SELECT id FROM #__menu where link LIKE 'index.php?option=com_googlesearchcse&view=googleSearch%' LIMIT 1"); $Itemid = $db->loadResult(); return $Itemid; } }
©
2018.