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 /
admin /
settings /
[ HOME SHELL ]
Name
Size
Permission
Action
appearance.php
18.55
KB
-rwxrwxrwx
badges.php
3.77
KB
-rwxrwxrwx
courses.php
16.77
KB
-rwxrwxrwx
development.php
6.58
KB
-rwxrwxrwx
frontpage.php
5.55
KB
-rwxrwxrwx
grades.php
14.89
KB
-rwxrwxrwx
language.php
1.57
KB
-rwxrwxrwx
location.php
1.73
KB
-rwxrwxrwx
mnet.php
3
KB
-rwxrwxrwx
plugins.php
26.63
KB
-rwxrwxrwx
security.php
12.18
KB
-rwxrwxrwx
server.php
23.37
KB
-rwxrwxrwx
subsystems.php
3.88
KB
-rwxrwxrwx
top.php
3.28
KB
-rwxrwxrwx
users.php
9.69
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : users.php
<?php // This file defines settingpages and externalpages under the "users" category $ADMIN->add('users', new admin_category('accounts', new lang_string('accounts', 'admin'))); $ADMIN->add('users', new admin_category('roles', new lang_string('permissions', 'role'))); if ($hassiteconfig or has_capability('moodle/user:create', $systemcontext) or has_capability('moodle/user:update', $systemcontext) or has_capability('moodle/user:delete', $systemcontext) or has_capability('moodle/role:manage', $systemcontext) or has_capability('moodle/role:assign', $systemcontext) or has_capability('moodle/cohort:manage', $systemcontext) or has_capability('moodle/cohort:view', $systemcontext)) { // speedup for non-admins, add all caps used on this page if (empty($CFG->loginhttps)) { $securewwwroot = $CFG->wwwroot; } else { $securewwwroot = str_replace('http:','https:',$CFG->wwwroot); } // stuff under the "accounts" subcategory $ADMIN->add('accounts', new admin_externalpage('editusers', new lang_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete'))); $ADMIN->add('accounts', new admin_externalpage('userbulk', new lang_string('userbulk','admin'), "$CFG->wwwroot/$CFG->admin/user/user_bulk.php", array('moodle/user:update', 'moodle/user:delete'))); $ADMIN->add('accounts', new admin_externalpage('addnewuser', new lang_string('addnewuser'), "$securewwwroot/user/editadvanced.php?id=-1", 'moodle/user:create')); $ADMIN->add('accounts', new admin_externalpage('profilefields', new lang_string('profilefields','admin'), "$CFG->wwwroot/user/profile/index.php", 'moodle/site:config')); $ADMIN->add('accounts', new admin_externalpage('cohorts', new lang_string('cohorts', 'cohort'), $CFG->wwwroot . '/cohort/index.php', array('moodle/cohort:manage', 'moodle/cohort:view'))); // stuff under the "roles" subcategory // "userpolicies" settingpage $temp = new admin_settingpage('userpolicies', new lang_string('userpolicies', 'admin')); if ($ADMIN->fulltree) { if (!during_initial_install()) { $context = context_system::instance(); $otherroles = array(); $guestroles = array(); $userroles = array(); $creatornewroles = array(); $defaultteacherid = null; $defaultuserid = null; $defaultguestid = null; $roles = role_fix_names(get_all_roles(), null, ROLENAME_ORIGINALANDSHORT); foreach ($roles as $role) { $rolename = $role->localname; switch ($role->archetype) { case 'manager': $creatornewroles[$role->id] = $rolename; break; case 'coursecreator': break; case 'editingteacher': $defaultteacherid = isset($defaultteacherid) ? $defaultteacherid : $role->id; $creatornewroles[$role->id] = $rolename; break; case 'teacher': $creatornewroles[$role->id] = $rolename; break; case 'student': break; case 'guest': $defaultguestid = isset($defaultguestid) ? $defaultguestid : $role->id; $guestroles[$role->id] = $rolename; break; case 'user': $defaultuserid = isset($defaultuserid) ? $defaultuserid : $role->id; $userroles[$role->id] = $rolename; break; case 'frontpage': break; default: $creatornewroles[$role->id] = $rolename; $otherroles[$role->id] = $rolename; break; } } if (empty($guestroles)) { $guestroles[0] = new lang_string('none'); $defaultguestid = 0; } if (empty($userroles)) { $userroles[0] = new lang_string('none'); $defaultuserid = 0; } $restorersnewrole = $creatornewroles; $restorersnewrole[0] = new lang_string('none'); $temp->add(new admin_setting_configselect('notloggedinroleid', new lang_string('notloggedinroleid', 'admin'), new lang_string('confignotloggedinroleid', 'admin'), $defaultguestid, ($guestroles + $otherroles))); $temp->add(new admin_setting_configselect('guestroleid', new lang_string('guestroleid', 'admin'), new lang_string('guestroleid_help', 'admin'), $defaultguestid, ($guestroles + $otherroles))); $temp->add(new admin_setting_configselect('defaultuserroleid', new lang_string('defaultuserroleid', 'admin'), new lang_string('configdefaultuserroleid', 'admin'), $defaultuserid, ($userroles + $otherroles))); $temp->add(new admin_setting_configselect('creatornewroleid', new lang_string('creatornewroleid', 'admin'), new lang_string('creatornewroleid_help', 'admin'), $defaultteacherid, $creatornewroles)); $temp->add(new admin_setting_configselect('restorernewroleid', new lang_string('restorernewroleid', 'admin'), new lang_string('restorernewroleid_help', 'admin'), $defaultteacherid, $restorersnewrole)); // release memory unset($otherroles); unset($guestroles); unset($userroles); unset($creatornewroles); unset($restorersnewrole); } $temp->add(new admin_setting_configcheckbox('autologinguests', new lang_string('autologinguests', 'admin'), new lang_string('configautologinguests', 'admin'), 0)); $temp->add(new admin_setting_configmultiselect('hiddenuserfields', new lang_string('hiddenuserfields', 'admin'), new lang_string('confighiddenuserfields', 'admin'), array(), array('description' => new lang_string('description'), 'city' => new lang_string('city'), 'country' => new lang_string('country'), 'webpage' => new lang_string('webpage'), 'icqnumber' => new lang_string('icqnumber'), 'skypeid' => new lang_string('skypeid'), 'yahooid' => new lang_string('yahooid'), 'aimid' => new lang_string('aimid'), 'msnid' => new lang_string('msnid'), 'firstaccess' => new lang_string('firstaccess'), 'lastaccess' => new lang_string('lastaccess'), 'mycourses' => new lang_string('mycourses'), 'groups' => new lang_string('groups'), 'suspended' => new lang_string('suspended', 'auth'), ))); // Select fields to display as part of user identity (only to those // with moodle/site:viewuseridentity). // Options include fields from the user table that might be helpful to // distinguish when adding or listing users ('I want to add the John // Smith from Science faculty'). // Username is not included as an option because in some sites, it might // be a security problem to reveal usernames even to trusted staff. // Custom user profile fields are not currently supported. $temp->add(new admin_setting_configmulticheckbox('showuseridentity', new lang_string('showuseridentity', 'admin'), new lang_string('showuseridentity_desc', 'admin'), array('email' => 1), array( 'idnumber' => new lang_string('idnumber'), 'email' => new lang_string('email'), 'phone1' => new lang_string('phone'), 'phone2' => new lang_string('phone2'), 'department' => new lang_string('department'), 'institution' => new lang_string('institution'), ))); $temp->add(new admin_setting_configtext('maxusersperpage', new lang_string('maxusersperpage','admin'), new lang_string('configmaxusersperpage','admin'), 100, PARAM_INT)); $temp->add(new admin_setting_configcheckbox('enablegravatar', new lang_string('enablegravatar', 'admin'), new lang_string('enablegravatar_help', 'admin'), 0)); $temp->add(new admin_setting_configtext('gravatardefaulturl', new lang_string('gravatardefaulturl', 'admin'), new lang_string('gravatardefaulturl_help', 'admin'), 'mm')); } $ADMIN->add('roles', $temp); if (is_siteadmin()) { $ADMIN->add('roles', new admin_externalpage('admins', new lang_string('siteadministrators', 'role'), "$CFG->wwwroot/$CFG->admin/roles/admins.php")); } $ADMIN->add('roles', new admin_externalpage('defineroles', new lang_string('defineroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/manage.php", 'moodle/role:manage')); $ADMIN->add('roles', new admin_externalpage('assignroles', new lang_string('assignglobalroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=".$systemcontext->id, 'moodle/role:assign')); $ADMIN->add('roles', new admin_externalpage('checkpermissions', new lang_string('checkglobalpermissions', 'role'), "$CFG->wwwroot/$CFG->admin/roles/check.php?contextid=".$systemcontext->id, array('moodle/role:assign', 'moodle/role:safeoverride', 'moodle/role:override', 'moodle/role:manage'))); } // end of speedup
Close