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
/
Edit File:
mod_coolhits.php
<?php /** * @version $Id: mod_coolhits.php 2007-01-11 scherzinger $ * @package Cool Hits Counter * @copyright Copyright (C) 2007 Bruce Scherzinger. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * This 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. */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); global $mosConfig_absolute_path, $mosConfig_live_site; $content = ""; // *** Get Params $source = $params->get( 'source' ); $output = $params->get( 'output' ); $pretext = $params->get( 'pretext' ); $posttext = $params->get( 'posttext' ); if (!$posttext && !$posttext) { $posttext = _VISITORS; } $hitsonly = $params->get( 'hitsonly' ); $position = $params->get( 'position' ); $style = $params->get( 'style' ); $mindigits = intval( $params->get( 'mindigits' ) ); $increase = intval( $params->get( 'increase' ) ); $moduleclass_sfx = $params->get( 'moduleclass_sfx' ); // *** Retrieve DB statisitcs : [1 : Agents/Browsers] if ( $source == 'joomlageneric' ) { $query = "SELECT sum(hits) FROM #__stats_agents WHERE type='1'"; } else if ( $source == 'joomlastats') { $query = "SELECT sum(id) FROM jos_jstats_visits"; } $database->setQuery( $query ); $hits = $database->loadResult(); // *** Correct hit count as needed if ($hits == NULL) { $hits = 0; } $hits = $hits + $increase; // Increase the counter if needed... (use old value, of simulate high traffic...) // *** Split graphic selection into an array - check for randomization if ( $output == 'image' ) { $choice = preg_split('/ /', $style, -1, PREG_SPLIT_OFFSET_CAPTURE); if ( count($choice) > 1 ) // Randomly select one of the provided choices (separated by spaces) $style = trim($choice[rand(1,count($choice)-1)][0]); else // Only one choice $style = $choice[0][0]; } // *** Display hits using graphics $hitcount = $hits; $readout = ""; while ($hits > 0 || $mindigits > 0) { $digit = $hits % 10; if ( $output == 'image' ) { $readout = "<img src=\"$mosConfig_live_site/modules/mod_coolhits/$style/$digit.png\" alt=\"\" />".$readout; } else if ( $output == 'text' ) { $readout = $digit.$readout; } $hits = intval ($hits/10); $mindigits --; } $content .= $readout; // *** Display pre- and post- text if requested if (!$hitsonly) { if ($pretext) $content = $pretext.$content; if ($posttext) $content .= $posttext; } // *** Apply style with or without suffix $content = "<div class='module".$moduleclass_sfx."' style='text-align:$position'>".$content."</div>"."\n"; ?>
Simpan