One Hat Cyber Team
Your IP :
216.73.216.115
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
/
web
/
modules
/
View File Name :
mod_eg_random.php
<?php /** * @package EasyGallery * @copyright (C) 2006 Joomla-addons.org * @author Websmurf * * -------------------------------------------------------------------------------- * All rights reserved. Easy Gallery Component for Joomla! * * This program is free software; you can redistribute it and/or * modify it under the terms of the Creative Commons - Attribution-NoDerivs 2.5 * license as published by the Creative Commons Organisation * http://creativecommons.org/licenses/by-nd/2.5/. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * -------------------------------------------------------------------------------- **/ defined( '_VALID_MOS' ) or die( 'Restricted access' ); $pretext = $params->get( 'pretext' ); $posttext = $params->get( 'posttext' ); $cid = trim($params->get( 'cid' )); if(!empty($pretext)){ echo $pretext . '<br />'; } require($mainframe->getCfg('absolute_path') . '/administrator/components/com_easygallery/configuration.php'); $query = 'SELECT * FROM #__easygallery '; if(!empty($cid)){ $query .= 'WHERE cid IN (' . $cid . ') '; } $query .= 'ORDER BY RAND() LIMIT 0,1'; $database->setQuery($query); $database->loadObject($row); echo $database->getErrorMsg(); $query = 'SELECT id FROM #__menu WHERE link = \'index.php?option=com_easygallery\' AND published = 1 LIMIT 0, 1'; $database->setQuery($query); $_Itemid = $database->loadResult(); echo '<a href="' . sefRelToAbs('index.php?option=com_easygallery&task=view&cid=' . $row->id . '&Itemid=' . $_Itemid) . '"><img src="' . $mainframe->getCfg('live_site') . '/' . $eg_thumbnail_path . '/' . $row->path . '" border="0" /></a>'; if(!empty($posttext)){ echo $posttext; } ?>