Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
sipdm.cesa.co.za /
course /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
classes
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
format
[ DIR ]
drwxr-sr-x
2017-06-22 16:05
publish
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
report
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
templates
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
tests
[ DIR ]
drwxr-sr-x
2017-06-22 16:06
yui
[ DIR ]
drwxr-sr-x
2017-06-22 15:49
admin.php
1.75
KB
-rw-r--r--
2017-06-22 16:05
category.ajax.php
1.24
KB
-rw-r--r--
2017-06-22 16:05
changenumsections.php
2.16
KB
-rw-r--r--
2017-06-22 16:05
completion.js
3.84
KB
-rw-r--r--
2017-06-22 16:05
completion.php
5.29
KB
-rw-r--r--
2017-06-22 16:05
completion_form.php
14.56
KB
-rw-r--r--
2017-06-22 16:05
delete.php
3.55
KB
-rw-r--r--
2017-06-22 16:05
dndupload.js
38.59
KB
-rw-r--r--
2017-06-22 16:05
dndupload.php
1.54
KB
-rw-r--r--
2017-06-22 16:05
dnduploadlib.php
26.53
KB
-rw-r--r--
2017-06-22 16:05
edit.php
9.81
KB
-rw-r--r--
2017-06-22 16:05
edit_form.php
19.9
KB
-rw-r--r--
2017-06-22 16:05
editcategory.php
3.86
KB
-rw-r--r--
2017-06-22 16:05
editsection.php
5.42
KB
-rw-r--r--
2017-06-22 16:05
editsection_form.php
5.47
KB
-rw-r--r--
2017-06-22 16:05
enrol.php
1021
B
-rw-r--r--
2017-06-22 16:05
externallib.php
139.45
KB
-rw-r--r--
2017-06-22 16:05
index.php
2.49
KB
-rw-r--r--
2017-06-22 16:05
info.php
2.66
KB
-rw-r--r--
2017-06-22 16:05
jumpto.php
1.23
KB
-rw-r--r--
2017-06-22 16:05
lib.php
157.56
KB
-rw-r--r--
2017-06-22 16:06
loginas.php
2.68
KB
-rw-r--r--
2017-06-22 16:06
management.php
22.57
KB
-rw-r--r--
2017-06-22 16:06
mod.php
11.16
KB
-rw-r--r--
2017-06-22 16:06
modduplicate.php
1.89
KB
-rw-r--r--
2017-06-22 16:06
modedit.php
7.18
KB
-rw-r--r--
2017-06-22 16:06
modlib.php
32.51
KB
-rw-r--r--
2017-06-22 16:06
moodleform_mod.php
45.24
KB
-rw-r--r--
2017-06-22 16:06
pending.php
5.7
KB
-rw-r--r--
2017-06-22 16:06
recent.php
8.15
KB
-rw-r--r--
2017-06-22 16:06
recent_form.php
6.81
KB
-rw-r--r--
2017-06-22 16:06
renderer.php
103.33
KB
-rw-r--r--
2017-06-22 16:06
report.php
1.34
KB
-rw-r--r--
2017-06-22 16:06
request.php
2.52
KB
-rw-r--r--
2017-06-22 16:06
request_form.php
6.54
KB
-rw-r--r--
2017-06-22 16:06
reset.php
3.54
KB
-rw-r--r--
2017-06-22 16:06
reset_form.php
9.17
KB
-rw-r--r--
2017-06-22 16:06
resources.php
4.82
KB
-rw-r--r--
2017-06-22 16:06
rest.php
7.46
KB
-rw-r--r--
2017-06-22 16:06
scales.php
4.96
KB
-rw-r--r--
2017-06-22 16:06
search.php
4.01
KB
-rw-r--r--
2017-06-22 16:06
switchrole.php
3.84
KB
-rw-r--r--
2017-06-22 16:06
switchrole_form.php
3.19
KB
-rw-r--r--
2017-06-22 16:06
tags.php
2.33
KB
-rw-r--r--
2017-06-22 16:06
tags_form.php
1.51
KB
-rw-r--r--
2017-06-22 16:06
togglecompletion.php
6.28
KB
-rw-r--r--
2017-06-22 16:06
upgrade.txt
1.22
KB
-rw-r--r--
2017-06-22 16:06
user.php
7.68
KB
-rw-r--r--
2017-06-22 16:06
view.php
12.08
KB
-rw-r--r--
2017-06-22 16:06
Save
Rename
<?php if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } require_once($CFG->libdir.'/formslib.php'); require_once($CFG->libdir.'/filelib.php'); require_once($CFG->libdir.'/completionlib.php'); require_once($CFG->libdir.'/gradelib.php'); /** * Default form for editing course section * * Course format plugins may specify different editing form to use */ class editsection_form extends moodleform { function definition() { $mform = $this->_form; $course = $this->_customdata['course']; $mform->addElement('header', 'generalhdr', get_string('general')); $elementgroup = array(); $elementgroup[] = $mform->createElement('text', 'name', '', array('size' => '30', 'maxlength' => '255')); // Get default section name. $defaultsectionname = $this->_customdata['defaultsectionname']; if ($defaultsectionname) { $defaultsectionname = ' [' . $defaultsectionname . ']'; } $elementgroup[] = $mform->createElement('checkbox', 'usedefaultname', '', get_string('sectionusedefaultname') . $defaultsectionname); $mform->addGroup($elementgroup, 'name_group', get_string('sectionname'), ' ', false); $mform->addGroupRule('name_group', array('name' => array(array(get_string('maximumchars', '', 255), 'maxlength', 255)))); $mform->setDefault('usedefaultname', true); $mform->setType('name', PARAM_TEXT); $mform->disabledIf('name','usedefaultname','checked'); /// Prepare course and the editor $mform->addElement('editor', 'summary_editor', get_string('summary'), null, $this->_customdata['editoroptions']); $mform->addHelpButton('summary_editor', 'summary'); $mform->setType('summary_editor', PARAM_RAW); $mform->addElement('hidden', 'id'); $mform->setType('id', PARAM_INT); // additional fields that course format has defined $courseformat = course_get_format($course); $formatoptions = $courseformat->section_format_options(true); if (!empty($formatoptions)) { $elements = $courseformat->create_edit_form_elements($mform, true); } $mform->_registerCancelButton('cancel'); } public function definition_after_data() { global $CFG, $DB; $mform = $this->_form; $course = $this->_customdata['course']; $context = context_course::instance($course->id); if (!empty($CFG->enableavailability)) { $mform->addElement('header', 'availabilityconditions', get_string('restrictaccess', 'availability')); $mform->setExpanded('availabilityconditions', false); // Availability field. This is just a textarea; the user interface // interaction is all implemented in JavaScript. The field is named // availabilityconditionsjson for consistency with moodleform_mod. $mform->addElement('textarea', 'availabilityconditionsjson', get_string('accessrestrictions', 'availability')); \core_availability\frontend::include_all_javascript($course, null, $this->_customdata['cs']); } $this->add_action_buttons(); } /** * Load in existing data as form defaults * * @param stdClass|array $default_values object or array of default values */ function set_data($default_values) { if (!is_object($default_values)) { // we need object for file_prepare_standard_editor $default_values = (object)$default_values; } $editoroptions = $this->_customdata['editoroptions']; $default_values = file_prepare_standard_editor($default_values, 'summary', $editoroptions, $editoroptions['context'], 'course', 'section', $default_values->id); $default_values->usedefaultname = (strval($default_values->name) === ''); parent::set_data($default_values); } /** * Return submitted data if properly submitted or returns NULL if validation fails or * if there is no submitted data. * * @return object submitted data; NULL if not valid or not submitted or cancelled */ function get_data() { $data = parent::get_data(); if ($data !== null) { $editoroptions = $this->_customdata['editoroptions']; // Set name as an empty string if use default section name is checked. if (!empty($data->usedefaultname)) { $data->name = ''; } $data = file_postupdate_standard_editor($data, 'summary', $editoroptions, $editoroptions['context'], 'course', 'section', $data->id); $course = $this->_customdata['course']; foreach (course_get_format($course)->section_format_options() as $option => $unused) { // fix issue with unset checkboxes not being returned at all if (!isset($data->$option)) { $data->$option = null; } } } return $data; } public function validation($data, $files) { global $CFG; $errors = array(); // Availability: Check availability field does not have errors. if (!empty($CFG->enableavailability)) { \core_availability\frontend::report_validation_errors($data, $errors); } return $errors; } }