Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
l.v.e-manager /
utils /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-09-04 11:50
downgrades
[ DIR ]
drwxr-xr-x
2026-09-04 11:42
activate
2.3
KB
-rwxr-xr-x
2026-08-11 11:38
autorestore.py
11.18
KB
-rwxr-xr-x
2026-08-11 11:38
cache_phpdata.py
7.27
KB
-rwxr-xr-x
2026-08-11 11:38
cache_rubygems.py
1.42
KB
-rwxr-xr-x
2026-08-11 11:38
clinfo.php
216
B
-rw-r--r--
2026-08-11 11:38
cloudlinux-awp-installer.py
5.29
KB
-rwxr-xr-x
2026-08-11 11:38
cloudlinux-cli-user.py
491
B
-rwxr-xr-x
2026-08-11 11:38
cloudlinux-cli.py
490
B
-rwxr-xr-x
2026-08-11 11:38
cloudlinux-selector.py
654
B
-rwxr-xr-x
2026-08-11 11:38
cloudlinux-xray.py
807
B
-rwxr-xr-x
2026-08-11 11:38
cloudlinux_cli.py
48.11
KB
-rw-r--r--
2026-08-11 11:38
cloudlinux_cli_user.py
19.98
KB
-rw-r--r--
2026-08-11 11:38
cpanel_api.py
11.39
KB
-rw-r--r--
2026-08-11 11:38
create_translate_template.py
505
B
-rwxr-xr-x
2026-08-11 11:38
delete-isp-plugin.sh
318
B
-rwxr-xr-x
2026-08-11 11:38
dynamicui.py
4.53
KB
-rwxr-xr-x
2026-08-11 11:38
dynamicui_base.py
565
B
-rw-r--r--
2026-08-11 11:38
dynamicui_cpanel.py
3.05
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_da.py
2.44
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_plesk.py
1.25
KB
-rw-r--r--
2026-08-11 11:38
fix-nodejs-environments.py
3.59
KB
-rwxr-xr-x
2026-08-11 11:38
generate_locale_files_for_plesk.py
2.97
KB
-rwxr-xr-x
2026-08-11 11:38
install-cpanel-plugin.sh
1.38
KB
-rwxr-xr-x
2026-08-11 11:38
install-plesk-plugin.sh
1.8
KB
-rwxr-xr-x
2026-08-11 11:38
installsupergrp.sh
991
B
-rwxr-xr-x
2026-08-11 11:38
libcagefs.py
7.61
KB
-rw-r--r--
2026-08-11 11:38
libcloudlinux.py
38.66
KB
-rw-r--r--
2026-08-11 11:38
libsupport.py
2.45
KB
-rw-r--r--
2026-08-11 11:38
node_wrapper
272
B
-rwxr-xr-x
2026-08-11 11:38
npm_wrapper
1.69
KB
-rwxr-xr-x
2026-08-11 11:38
plesk-cgi.sh
3.15
KB
-rwxr-xr-x
2026-08-11 11:38
plesk_nginx_php_sync.py
5.87
KB
-rw-r--r--
2026-08-11 11:38
python_wrapper
572
B
-rwxr-xr-x
2026-08-11 11:38
set_env_vars.py
4.57
KB
-rwxr-xr-x
2026-08-11 11:38
sync_locales.py
2.97
KB
-rwxr-xr-x
2026-08-11 11:38
ui_package_installer.py
4.93
KB
-rw-r--r--
2026-08-11 11:38
Save
Rename
#!/opt/cloudlinux/venv/bin/python3 -bb # coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import print_function from __future__ import division from __future__ import absolute_import import sys import os import cldetectlib as detect import json SOURCE_PATH = '/usr/share/l.v.e-manager/' LOCALES_SOURCE_PATH = SOURCE_PATH + 'commons/spa-resources/i18n/' PLESK_LOCALES_DIR = SOURCE_PATH + 'plesk/plib/modules/plesk-lvemanager/resources/locales/' DEFAULT_SOURCE_LANG_JSON = LOCALES_SOURCE_PATH + 'en-en.json' # Phrases below wee need only to translate of the Custom Buttons # in other cases SPA will be translated using JSON-s from i18n/ ORIGINAL_PHRASES = ['CloudLinux Manager', 'PHP Selector', 'Resource Usage', 'X-Ray', 'AccelerateWP'] class Locales(object): """ Generate locales for Plesk custom buttons """ @staticmethod def add_locale_file(source_lang_json, out_file, template): """ Add single locale file for Plesk :param source_lang_json: json file from i18n/ :param out_file: generated file :param template: template used to generate file :return: None """ content_array = [] if not os.path.isfile(source_lang_json): source_lang_json = DEFAULT_SOURCE_LANG_JSON # use english lang if no translation with open(source_lang_json, 'r') as f: json_content = json.loads(f.read()) for phrase in ORIGINAL_PHRASES: content_array.append(' \'{}\' => \'{}\'' .format(phrase, json_content.get(phrase, phrase))) with open(out_file, 'w') as f: translations = ',\n'.join(content_array) f.write(template.format(translations)) def generate_locales(self, template): """ Generate required locales for Plesk. :param template: string: Template for rendering of new localization files. :return: None """ if not os.path.isdir(PLESK_LOCALES_DIR): os.makedirs(PLESK_LOCALES_DIR) for locale in os.listdir(LOCALES_SOURCE_PATH): filename = '{}/{}'.format(LOCALES_SOURCE_PATH, locale) if os.path.isfile(filename) and filename.endswith('.json'): locale = locale.split('.')[0] source_lang_json = LOCALES_SOURCE_PATH + locale + '.json' plesk_locale = "{}-{}".format(locale.split('-')[0], locale.split('-')[-1].upper()) out_file = PLESK_LOCALES_DIR + plesk_locale + '.php' self.add_locale_file(source_lang_json, out_file, template) def main(self): if detect.is_plesk(): template = '<?php\n $messages = array(\n{}\n);\n' self.generate_locales(template) else: sys.exit('This script should be run only on Plesk') if __name__ == '__main__': Locales().main()