One Hat Cyber Team
Your IP :
216.73.217.131
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
cxs2
/
app
/
libs
/
Discover
/
CMS
/
View File Name :
CommonComponent.php
<?php /** * CommonComponent, Common Component * * @copyright Copyright (c) 2007 DotRoll Kft. (http://www.dotroll.com) * @author Zoltán Istvanovszki <zoltan.istvanovszki@dotroll.com> * @since 2017.06.15. * @package CXS_2.0 */ namespace Discover\CMS; abstract class CommonComponent extends \Discover\CommonComponent { /** * CMS type * * @var string */ protected $type; /** * Plugins version * * @var array */ protected $pluginsVersion = []; /** * Version * * @var string */ protected $version; /** * cPanel user * * @var string */ protected $hash; /** * Print cms instances */ protected function printInstances() { $additional = "{$this->type} ({$GLOBALS['maxInstance']} / {$GLOBALS['iInstance']}) "; $GLOBALS['lineLegthHash'] += \strlen($additional); echo $additional; } /** * Print percentage */ protected function printPercentage() { $this->cleanLine(); $this->printStr("Check {$this->hash} " . \round($GLOBALS['iHash'] * 100 / $GLOBALS['maxHash']) . " % ({$GLOBALS['maxHash']} / {$GLOBALS['iHash']}) "); } /** * * @param string $line */ protected function printStr(string $line) { echo $line; $GLOBALS['lineLegthHash'] += \strlen($line); } /** * Clean print line */ protected function cleanLine() { echo "\r"; if (!empty($GLOBALS['lineLegthHash'])) { echo \str_repeat(' ', $GLOBALS['lineLegthHash']) . "\r"; } $GLOBALS['lineLegthHash'] = 0; echo "\r"; } }