Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.138.179.120
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
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 /
ifk /
web /
prado4.3.2 /
Security /
Permissions /
[ HOME SHELL ]
Name
Size
Permission
Action
IPermissions.php
1.2
KB
-rw-r--r--
TPermissionEvent.php
3.9
KB
-rw-r--r--
TPermissionsAction.php
12.11
KB
-rw-r--r--
TPermissionsBehavior.php
5.51
KB
-rw-r--r--
TPermissionsConfigurationBehav...
3.73
KB
-rw-r--r--
TPermissionsManager.php
34.08
KB
-rw-r--r--
TUserOwnerRule.php
1.18
KB
-rw-r--r--
TUserPermissionsBehavior.php
2.91
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TPermissionEvent.php
<?php /** * TPermissionEvent class file * * @author Brad Anderson <belisoful@icloud.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Security\Permissions; use Prado\Exceptions\TConfigurationException; use Prado\TPropertyValue; use Prado\Security\TAuthorizationRule; /** * TPermissionEvent class * * TPermissionEvent links a permission to dynamic events to check permission. * This class acts as a data container object for the Permission, Description, * and module preset rules. Preset Rules can be turned off from the * TPermissionManager with setting setAutoPresetRules to false. * This class works with {@link \Prado\Security\Permissions\TPermissionsBehavior} * to register the Permission, Description, and Preset Rules and also to * link the dynamic events to check user permission. * * @author Brad Anderson <belisoful@icloud.com> * @since 4.2.0 */ class TPermissionEvent extends \Prado\TComponent { /** @var string permission */ private $_name; /** @var string short description of the permission */ private $_description; /** @var string[] dynamic events */ private $_events; /** @var \Prado\Security\TAuthorizationRule[] the preset rules from the module */ private $_rules; /** * Constructs the class. All permission names are made lower case. * @param string $permissionName the permission name linked to the dynamic events. * @param string $description short description of the permission * @param string|string[] $events the events that the permission is linked. * @param null|\Prado\Security\TAuthorizationRule[] $rules default rules from the module. */ public function __construct($permissionName = '', $description = '', $events = [], $rules = null) { $this->setName($permissionName); $this->setDescription($description); $this->setEvents($events); $this->setRules($rules); } /** * @return string the permission name */ public function getName() { return $this->_name; } /** * @param string $permissionName the permission name */ public function setName($permissionName) { $this->_name = strtolower(TPropertyValue::ensureString($permissionName)); } /** * @return string the permission description */ public function getDescription() { return $this->_description; } /** * @param string $description the permission description */ public function setDescription($description) { $this->_description = TPropertyValue::ensureString($description); } /** * @return string[] the dynamic events tied to the permission */ public function getEvents() { return $this->_events; } /** * this will take an array of string dynamic events, or a ',' comma separated * list of dynamic events * @param null|string|string[] $events the dynamic events tied to the permission */ public function setEvents($events) { if (is_string($events)) { $events = array_map('trim', explode(',', $events)); } elseif ($events !== null && !is_array($events)) { throw new TConfigurationException('permissions_events_invalid', is_object($events) ? get_class($events) : $events); } $this->_events = array_map('strtolower', array_filter($events ?? [])); } /** * these are the preset rules for when registering the permission name. * @return \Prado\Security\TAuthorizationRule[] the preset permission rules */ public function getRules() { return $this->_rules; } /** * these are the preset rules for when registering the permission name. * @param null|\Prado\Security\TAuthorizationRule|\Prado\Security\TAuthorizationRule[] $rules the preset permission rules */ public function setRules($rules) { if ($rules instanceof TAuthorizationRule) { $rules = [$rules]; } if ($rules !== null && !is_array($rules)) { throw new TConfigurationException('permissions_rules_invalid', is_object($rules) ? get_class($rules) : $rules); } $this->_rules = $rules ?? []; } }
Close