This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language | english_name | native_name | |
---|---|---|---|
af | Afrikaans | Afrikaans | |
ar | Arabic | العربية | |
ary | Moroccan Arabic | العربية المغربية | |
as | Assamese | অসমীয়া | |
az | Azerbaijani | Azərbaycan dili | |
azb | South Azerbaijani | گؤنئی آذربایجان | |
bel | Belarusian | Беларуская мова | |
bg_BG | Bulgarian | Български | |
bn_BD | Bengali (Bangladesh) | বাংলা |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# enhance_backup_sync.sh | |
# | |
# cPFence Team | https://cpfence.app | |
# | |
# Description: | |
# This script synchronizes the Enhance backup server's /backups directory with a remote server | |
# for disaster recovery (backup mode) or restores data from the remote server to the local server (restore mode). | |
# | |
# Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dry-run version | |
DAYS=2 | |
SECONDS_OLD=$((DAYS * 86400)) | |
for site in /backups/*; do | |
[ -d "$site" ] || continue | |
current_snapshot=$(readlink "$site/current") | |
echo "Checking site: ${site##*/}" | |
find "$site" -maxdepth 1 -type d -name "snapshot-*" | while read -r snapshot; do | |
if [ "$snapshot" = "$current_snapshot" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Steps To Test WordPress Database Malware Scanning in cPFence | |
1. Access the container of the test WP: | |
su - username | |
cd public_html/ | |
2. Inject test malware into the database: | |
# Run the following command to add a test malware to wp_options table: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp-file-manager | |
file-manager-advanced | |
filester | |
filebird | |
file-manager | |
real-media-library-lite | |
wpide | |
folders | |
fileorganizer | |
media-library-organizer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# BTRFS Backup Script for Enhance Backup Server | |
# | |
# Overview: | |
# This script facilitates the efficient backup of website data stored on an | |
# Enhance Backup Server utilizing the BTRFS filesystem. It performs the | |
# following operations for each website directory: | |
# 1. Synchronizes the live state (`backup-subvolume`) to the destination server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enhance_ClientArea($params) | |
{ | |
$systemurl = Setting::getValue('SystemURL'); | |
$webmailLink = 'https://webmail.enhance.com/'; | |
// Fetch domain IP | |
$domain = $params['domain']; | |
$domainIP = gethostbyname($domain); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Written by: cPFence Team / https://cpfence.app/ | |
# | |
# | |
# Description: | |
# This script is designed to work with the Enhance Control Panel to ensure | |
# that custom OpenLiteSpeed (OLS) configurations persist across vhost rebuilds. | |
# Using a simple freeze/unfreeze mechanism, it allows administrators to lock | |
# their custom configurations and prevent them from being overwritten by the |
NewerOlder