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.223.209.114
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 : MetadataLoader.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 Exception; use Piwik\Piwik; use Piwik\Version; /** * @see core/Version.php */ require_once PIWIK_INCLUDE_PATH . '/core/Version.php'; /** * Loads plugin metadata found in the following files: * - piwik.json */ class MetadataLoader { const PLUGIN_JSON_FILENAME = 'plugin.json'; /** * The name of the plugin whose metadata will be loaded. * * @var string */ private $pluginName; /** * Constructor. * * @param string $pluginName Name of the plugin to load metadata. */ public function __construct($pluginName) { $this->pluginName = $pluginName; } /** * Loads plugin metadata. @see Plugin::getInformation. * * @return array */ public function load() { $defaults = $this->getDefaultPluginInformation(); $plugin = $this->loadPluginInfoJson(); // use translated plugin description if available if ($defaults['description'] != Piwik::translate($defaults['description'])) { unset($plugin['description']); } // look for a license file $licenseFile = $this->getPathToLicenseFile(); if(!empty($licenseFile)) { $plugin['license_file'] = $licenseFile; } return array_merge( $defaults, $plugin ); } public function hasPluginJson() { $hasJson = $this->loadPluginInfoJson(); return !empty($hasJson); } private function getDefaultPluginInformation() { $descriptionKey = $this->pluginName . '_PluginDescription'; return array( 'description' => $descriptionKey, 'homepage' => 'https://matomo.org/', 'authors' => array(array('name' => 'Matomo', 'homepage' => 'https://matomo.org/')), 'license' => 'GPL v3+', 'version' => Version::VERSION, 'theme' => false, 'require' => array() ); } /** * It is important that this method works without using anything from DI * @return array|mixed */ public function loadPluginInfoJson() { $path = $this->getPathToPluginJson(); return $this->loadJsonMetadata($path); } public function getPathToPluginJson() { $path = $this->getPathToPluginFolder() . '/' . self::PLUGIN_JSON_FILENAME; return $path; } private function loadJsonMetadata($path) { if (!file_exists($path)) { return array(); } $json = file_get_contents($path); if (!$json) { return array(); } $info = json_decode($json, $assoc = true); if (!is_array($info) || empty($info) ) { throw new Exception("Invalid JSON file: $path"); } return $info; } /** * @return string */ private function getPathToPluginFolder() { return \Piwik\Plugin\Manager::getPluginDirectory($this->pluginName); } /** * @return null|string */ public function getPathToLicenseFile() { $prefixPath = $this->getPathToPluginFolder() . '/'; $licenseFiles = array( 'LICENSE', 'LICENSE.md', 'LICENSE.txt' ); foreach ($licenseFiles as $licenseFile) { $pathToLicense = $prefixPath . $licenseFile; if (is_file($pathToLicense) && is_readable($pathToLicense)) { return $pathToLicense; } } return null; } }
Close