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 /
lib /
editor /
tinymce /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxrwxrwx
cli
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
plugins
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
tiny_mce
[ DIR ]
drwxrwxrwx
adminlib.php
7.9
KB
-rwxrwxrwx
all_strings.php
3.43
KB
-rwxrwxrwx
lib.php
9.79
KB
-rwxrwxrwx
module.js
5.94
KB
-rwxrwxrwx
readme_moodle.txt
1.54
KB
-rwxrwxrwx
settings.php
3.06
KB
-rwxrwxrwx
styles.css
514
B
-rwxrwxrwx
subplugins.php
2.08
KB
-rwxrwxrwx
thirdpartylibs.xml
231
B
-rwxrwxrwx
upgrade.txt
1001
B
-rwxrwxrwx
version.php
1.17
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : all_strings.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/>. /** * On-the-fly conversion of Moodle lang strings to TinyMCE expected JS format. * * @package editor_tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define('NO_MOODLE_COOKIES', true); define('NO_UPGRADE_CHECK', true); require('../../../config.php'); require_once("$CFG->dirroot/lib/jslib.php"); require_once("$CFG->dirroot/lib/configonlylib.php"); $lang = optional_param('elanguage', 'en', PARAM_SAFEDIR); $rev = optional_param('rev', -1, PARAM_INT); $PAGE->set_context(context_system::instance()); $PAGE->set_url('/lib/editor/tinymce/extra/strings.php'); if (!get_string_manager()->translation_exists($lang, false)) { $lang = 'en'; $rev = -1; // Do not cache missing langs. } $candidate = "$CFG->cachedir/editor_tinymce/$rev/$lang.js"; $etag = sha1("$lang/$rev"); if ($rev > -1 and file_exists($candidate)) { if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) || !empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { // we do not actually need to verify the etag value because our files // never change in cache because we increment the rev parameter js_send_unmodified(filemtime($candidate), $etag); } js_send_cached($candidate, $etag, 'all_strings.php'); } $string = get_string_manager()->load_component_strings('editor_tinymce', $lang); // Process the $strings to match expected tinymce lang array structure. $result = array(); foreach ($string as $key=>$value) { $parts = explode(':', $key); if (count($parts) != 2) { // Ignore non-TinyMCE strings. continue; } $result[$parts[0]][$parts[1]] = $value; } // Add subplugin strings, accept only those with proper pluginname prefix with colon. foreach (core_component::get_plugin_list('tinymce') as $component => $ignored) { $componentstrings = get_string_manager()->load_component_strings( 'tinymce_' . $component, $lang); foreach ($componentstrings as $key => $value) { if (strpos($key, "$component:") !== 0 and strpos($key, $component.'_dlg:') !== 0) { // Ignore normal lang strings. continue; } $parts = explode(':', $key); if (count($parts) != 2) { // Ignore malformed strings with more colons. continue; } $component = $parts[0]; $string = $parts[1]; $result[$component][$string] = $value; } } $output = 'tinyMCE.addI18n({'.$lang.':'.json_encode($result).'});'; if ($rev > -1) { js_write_cache_file_content($candidate, $output); // verify nothing failed in cache file creation clearstatcache(); if (file_exists($candidate)) { js_send_cached($candidate, $etag, 'all_strings.php'); } } js_send_uncached($output, 'all_strings.php');
Close