Skip to content

Instantly share code, notes, and snippets.

#!/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:
function enhance_ClientArea($params)
{
$systemUrl = Setting::getValue('SystemURL');
// Replace this link with your own master login webmail login link
$webmailLink = 'https://webmail.enhance.com/';
$domain = $params['domain'];
$domainIP = gethostbyname($domain);
$serviceId = $params['serviceid'];
$analyticsURL = "https://{$domain}/traffic-reports";
function enhance_ClientArea($params)
{
$systemUrl = Setting::getValue('SystemURL');
$webmailLink = 'https://webmail.example.com/';
$domain = $params['domain'];
$domainIP = gethostbyname($domain);
$serviceId = $params['serviceid'];
$buttonStyle = 'display: inline-block; padding: 10px 16px; margin: 4px 6px 10px 0; background-color: #0073e6; color: #fff; border: none; border-radius: 5px; font-size: 14px; cursor: pointer; text-decoration: none; transition: background-color 0.3s ease;';
$buttonHover = 'this.style.backgroundColor=\'#005bb5\'';
@cPFence
cPFence / wordpress-language-codes.csv
Created April 18, 2025 16:08 — forked from danielbachhuber/wordpress-language-codes.csv
Language / locale codes used in WordPress
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) বাংলা