One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
sam
/
public_html
/
web2_old
/
modules
/
mod_search
/
Edit File:
helper.php
<?php /** * @version $Id: helper.php 5369 2006-10-08 00:36:33Z Jinx $ * @package Joomla * @copyright Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved. * @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'); class modSearchHelper { function renderInputField($params) { $button = $params->get('button', ''); $imagebutton = $params->get('imagebutton', ''); $button_pos = $params->get('button_pos', 'left'); $button_text = $params->get('button_text', JText::_('Search')); $width = intval($params->get('width', 20)); $text = $params->get('text', JText::_('search...')); $set_Itemid = intval($params->get('set_itemid', 0)); $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $output = '<input name="searchword" id="mod_search_searchword" maxlength="20" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'" onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />'; if ($button) { if ($imagebutton) { $img = JAdminMenus::ImageCheck('searchButton.gif', '/images/M_images/', NULL, NULL, $button_text, $button_text, 0); $button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'"/>'; } else { $button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'"/>'; } } switch ($button_pos) { case 'top' : $button = $button.'<br/>'; $output = $button.$output; break; case 'bottom' : $button = '<br/>'.$button; $output = $output.$button; break; case 'right' : $output = $output.$button; break; case 'left' : default : $output = $button.$output; break; } return $output; } function getItemid(&$params) { $set_Itemid = intval($params->get('set_itemid', 0)); // set Itemid id for links if ($set_Itemid) { // use param setting $itemid = $set_Itemid; } else { $menu = &JMenu::getInstance(); $items = $menu->getItems('link', 'index.php?option=com_search'); $itemid = isset($items[0]) ? $items[0]->id : '0'; } return $itemid; } }
Simpan