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.131.37.82
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 /
Access /
[ HOME SHELL ]
Name
Size
Permission
Action
Role
[ DIR ]
drwxr-xr-x
CapabilitiesProvider.php
3.85
KB
-rw-r--r--
Capability.php
690
B
-rw-r--r--
Role.php
431
B
-rw-r--r--
RolesProvider.php
1.43
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RolesProvider.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\Access; use Piwik\Access\Role\Admin; use Piwik\Access\Role\View; use Piwik\Access\Role\Write; use Piwik\Piwik; use Exception; class RolesProvider { /** * @return Role[] */ public function getAllRoles(): array { return array( new View(), new Write(), new Admin() ); } /** * Returns the list of the existing Access level. * Useful when a given API method requests a given access Level. * We first check that the required access level exists. * * @return string[] */ public function getAllRoleIds(): array { $ids = array(); foreach ($this->getAllRoles() as $role) { $ids[] = $role->getId(); } return $ids; } public function isValidRole(string $roleId): bool { $roles = $this->getAllRoleIds(); return \in_array($roleId, $roles, true); } /** * @param $roleId * @throws Exception */ public function checkValidRole(string $roleId): void { if (!$this->isValidRole($roleId)) { $roles = $this->getAllRoleIds(); throw new Exception(Piwik::translate("UsersManager_ExceptionAccessValues", [implode(", ", $roles), $roleId])); } } }
Close