Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 3.147.74.100
54 Domain
7.3.33
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
analytics /
core /
Plugin /
[ HOME SHELL ]
Name
Size
Permission
Action
Dimension
[ DIR ]
drwxr-xr-x
API.php
4.12
KB
-rw-r--r--
AggregatedMetric.php
612
B
-rw-r--r--
ArchivedMetric.php
5.58
KB
-rw-r--r--
Archiver.php
5.64
KB
-rw-r--r--
Categories.php
1.99
KB
-rw-r--r--
ComponentFactory.php
4.94
KB
-rw-r--r--
ComputedMetric.php
8.45
KB
-rw-r--r--
ConsoleCommand.php
1.43
KB
-rw-r--r--
Controller.php
41.92
KB
-rw-r--r--
ControllerAdmin.php
16.01
KB
-rw-r--r--
Dependency.php
5.98
KB
-rw-r--r--
LogTablesProvider.php
3.11
KB
-rw-r--r--
Manager.php
52.91
KB
-rw-r--r--
Menu.php
11.54
KB
-rw-r--r--
MetadataLoader.php
3.73
KB
-rw-r--r--
Metric.php
6.41
KB
-rw-r--r--
PluginException.php
1.11
KB
-rw-r--r--
ProcessedMetric.php
2.27
KB
-rw-r--r--
ReleaseChannels.php
2.55
KB
-rw-r--r--
Report.php
35.26
KB
-rw-r--r--
ReportsProvider.php
9.3
KB
-rw-r--r--
RequestProcessors.php
630
B
-rw-r--r--
Segment.php
12.75
KB
-rw-r--r--
SettingsProvider.php
7.15
KB
-rw-r--r--
Tasks.php
5.37
KB
-rw-r--r--
ThemeStyles.php
5.82
KB
-rw-r--r--
ViewDataTable.php
21.71
KB
-rw-r--r--
Visualization.php
33.17
KB
-rw-r--r--
WidgetsProvider.php
4.53
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ArchivedMetric.php
<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ namespace Piwik\Plugin; use Piwik\Archive\DataTableFactory; use Piwik\Columns\Dimension; use Piwik\Common; use Piwik\DataTable; use Piwik\Metrics\Formatter; use Piwik\Piwik; class ArchivedMetric extends Metric { const AGGREGATION_COUNT = 'count(%s)'; const AGGREGATION_COUNT_PREFIX = 'nb_'; const AGGREGATION_SUM = 'sum(%s)'; const AGGREGATION_SUM_PREFIX = 'sum_'; const AGGREGATION_MAX = 'max(%s)'; const AGGREGATION_MAX_PREFIX = 'max_'; const AGGREGATION_MIN = 'min(%s)'; const AGGREGATION_MIN_PREFIX = 'min_'; const AGGREGATION_UNIQUE = 'count(distinct %s)'; const AGGREGATION_UNIQUE_PREFIX = 'nb_uniq_'; const AGGREGATION_COUNT_WITH_NUMERIC_VALUE = 'sum(if(%s > 0, 1, 0))'; const AGGREGATION_COUNT_WITH_NUMERIC_VALUE_PREFIX = 'nb_with_'; /** * @var string */ private $aggregation; /** * @var int */ protected $idSite; private $name = ''; private $type = ''; private $translatedName = ''; private $documentation = ''; private $dbTable = ''; private $category = ''; private $query = ''; /** * @var Dimension */ private $dimension; public function __construct(Dimension $dimension, $aggregation = false) { if (!empty($aggregation) && strpos($aggregation, '%s') === false) { throw new \Exception(sprintf('The given aggregation for %s.%s needs to include a %%s for the column name', $dimension->getDbTableName(), $dimension->getColumnName())); } $this->setDimension($dimension); $this->setDbTable($dimension->getDbTableName()); $this->aggregation = $aggregation; } public function getAggregation() { return $this->aggregation; } public function setDimension($dimension) { $this->dimension = $dimension; return $this; } public function getDimension() { return $this->dimension; } public function setCategory($category) { $this->category = $category; return $this; } public function getCategoryId() { return $this->category; } public function setDbTable($dbTable) { $this->dbTable = $dbTable; return $this; } public function setDocumentation($documentation) { $this->documentation = $documentation; return $this; } public function setTranslatedName($name) { $this->translatedName = $name; return $this; } public function setType($type) { $this->type = $type; return $this; } public function setName($name) { $this->name = $name; return $this; } public function setQuery($query) { $this->query = $query; return $this; } public function getName() { return $this->name; } public function format($value, Formatter $formatter) { switch ($this->type) { case Dimension::TYPE_BOOL: return $formatter->getPrettyNumber($value); case Dimension::TYPE_ENUM: return $formatter->getPrettyNumber($value); case Dimension::TYPE_MONEY: return $formatter->getPrettyMoney($value, $this->idSite); case Dimension::TYPE_FLOAT: return $formatter->getPrettyNumber((float) $value, $precision = 2); case Dimension::TYPE_NUMBER: return $formatter->getPrettyNumber($value); case Dimension::TYPE_DURATION_S: return $formatter->getPrettyTimeFromSeconds($value, $displayAsSentence = true); case Dimension::TYPE_DURATION_MS: $val = round(($value / 1000), ($value / 1000) > 60 ? 0 : 2); return $formatter->getPrettyTimeFromSeconds($val, $displayAsSentence = true); case Dimension::TYPE_PERCENT: return $formatter->getPrettyPercentFromQuotient($value); case Dimension::TYPE_BYTE: return $formatter->getPrettySizeFromBytes($value); } return $value; } public function getType() { return $this->type; } public function getTranslatedName() { if (!empty($this->translatedName)) { return Piwik::translate($this->translatedName); } return $this->translatedName; } public function getDependentMetrics() { return array($this->getName()); } public function getDocumentation() { return $this->documentation; } public function getDbTableName() { return $this->dbTable; } public function getQuery() { if ($this->query) { return $this->query; } $column = $this->dbTable . '.' . $this->dimension->getColumnName(); if ($this->dimension->getSqlSegment()) { $column = str_replace($this->dimension->getDbTableName(), $this->dbTable, $this->dimension->getSqlSegment()); } if (!empty($this->aggregation)) { return sprintf($this->aggregation, $column); } return $column; } public function beforeFormat($report, DataTable $table) { $this->idSite = DataTableFactory::getSiteIdFromMetadata($table); if (empty($this->idSite)) { $this->idSite = Common::getRequestVar('idSite', 0, 'int'); } return !empty($this->idSite); // skip formatting if there is no site to get currency info from } }
Close