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 /
survey /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-sr-x
2017-06-22 15:16
classes
[ DIR ]
drwxr-sr-x
2017-06-22 15:27
db
[ DIR ]
drwxr-sr-x
2017-06-22 15:27
lang
[ DIR ]
drwxr-sr-x
2017-06-22 15:16
pix
[ DIR ]
drwxr-sr-x
2017-06-22 15:27
tests
[ DIR ]
drwxr-sr-x
2017-06-22 15:27
download.php
13.5
KB
-rw-r--r--
2017-06-22 15:27
graph.php
28.6
KB
-rw-r--r--
2017-06-22 15:27
index.php
2.96
KB
-rw-r--r--
2017-06-22 15:27
lib.php
33.71
KB
-rw-r--r--
2017-06-22 15:27
mod_form.php
2.99
KB
-rw-r--r--
2017-06-22 15:27
report.php
20.78
KB
-rw-r--r--
2017-06-22 15:27
save.php
2.39
KB
-rw-r--r--
2017-06-22 15:27
styles.css
786
B
-rw-r--r--
2017-06-22 15:27
survey.js
998
B
-rw-r--r--
2017-06-22 15:27
version.php
1.17
KB
-rw-r--r--
2017-06-22 15:27
view.php
6.81
KB
-rw-r--r--
2017-06-22 15:27
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_survey_mod_form extends moodleform_mod { function definition() { global $CFG, $DB; $mform =& $this->_form; $strrequired = get_string('required'); //------------------------------------------------------------------------------- $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'); if (!$options = $DB->get_records_menu("survey", array("template"=>0), "name", "id, name")) { print_error('cannotfindsurveytmpt', 'survey'); } foreach ($options as $id => $name) { $options[$id] = get_string($name, "survey"); } $options = array(''=>get_string('choose').'...') + $options; $mform->addElement('select', 'template', get_string("surveytype", "survey"), $options); $mform->addRule('template', $strrequired, 'required', null, 'client'); $mform->addHelpButton('template', 'surveytype', 'survey'); $this->standard_intro_elements(get_string('customintro', 'survey')); $this->standard_coursemodule_elements(); //------------------------------------------------------------------------------- // buttons $this->add_action_buttons(); } /** * Return submitted data if properly submitted or returns NULL if validation fails or * if there is no submitted data. * * @return stdClass submitted data; NULL if not valid or not submitted or cancelled */ public function get_data() { $data = parent::get_data(); if (!$data) { return false; } 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->completionsubmit)) { $data->completionsubmit = 0; } } return $data; } /** * Add completion rules to form. * @return array */ public function add_completion_rules() { $mform =& $this->_form; $mform->addElement('checkbox', 'completionsubmit', '', get_string('completionsubmit', 'survey')); return array('completionsubmit'); } /** * Enable completion rules * @param stdclass $data * @return array */ public function completion_rule_enabled($data) { return !empty($data['completionsubmit']); } }