/usr/share/cagefs-skeleton/opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos
# coding=utf-8 # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT """Module for work with wp_config.php""" from __future__ import absolute_import, print_function from pathlib import Path from typing import List WP_CONFIG_SUFFIX = 'wp-config.php' def path(abs_wp_path: str) -> Path: """ Return path to wp-config.php file. """ return Path(abs_wp_path, WP_CONFIG_SUFFIX) def read(abs_wp_path: str) -> List[str]: """ Read wp-config.php located in specified WP path. """ with open(path(abs_wp_path), errors='surrogateescape') as f: return f.readlines()
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
billing.py
Edit
bin
Edit
cl_wpos_exceptions.py
Edit
cli_versions
Edit
constants.py
Edit
create_user_uid_dirs.py
Edit
cron.py
Edit
daemon.py
Edit
daemon_base.py
Edit
daemon_config.py
Edit
daemon_redis_lib.py
Edit
daemon_subscription_handler.py
Edit
data_collector_utils.py
Edit
feature_suites
Edit
hooks
Edit
logsetup.py
Edit
migrations
Edit
object_cache
Edit
optimization_features
Edit
papi.py
Edit
parse.py
Edit
php
Edit
redis_configuration_pid_file_cleaner.py
Edit
report_generator.py
Edit
scoped_cache.py
Edit
socket_utils.py
Edit
stats.py
Edit
user
Edit
utils.py
Edit
whmcs_utils.py
Edit
wp_config.py
Edit
wp_utils.py
Edit
wpos_admin.py
Edit
wpos_hooks.py
Edit
wpos_req_scanner.py
Edit