diff --git a/data/web/admin.php b/data/web/admin.php index 292c996c..79bce8e3 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -510,6 +510,10 @@ $tfa_data = get_tfa(); $ui_texts = customize('get', 'ui_texts'); ?>
+
+ + +
diff --git a/data/web/inc/functions.customize.inc.php b/data/web/inc/functions.customize.inc.php index e3d8c64d..a6999f39 100644 --- a/data/web/inc/functions.customize.inc.php +++ b/data/web/inc/functions.customize.inc.php @@ -98,10 +98,12 @@ function customize($_action, $_item, $_data = null) { ); break; case 'ui_texts': + $title_name = $_data['title_name']; $main_name = $_data['main_name']; $apps_name = $_data['apps_name']; $help_text = $_data['help_text']; try { + $redis->set('TITLE_NAME', htmlspecialchars($title_name)); $redis->set('MAIN_NAME', htmlspecialchars($main_name)); $redis->set('APPS_NAME', htmlspecialchars($apps_name)); $redis->set('HELP_TEXT', $help_text); @@ -178,6 +180,7 @@ function customize($_action, $_item, $_data = null) { break; case 'ui_texts': try { + $data['title_name'] = ($title_name = $redis->get('TITLE_NAME')) ? $title_name : 'mailcow UI'; $data['main_name'] = ($main_name = $redis->get('MAIN_NAME')) ? $main_name : 'mailcow UI'; $data['apps_name'] = ($apps_name = $redis->get('APPS_NAME')) ? $apps_name : 'mailcow Apps'; $data['help_text'] = ($help_text = $redis->get('HELP_TEXT')) ? $help_text : false; diff --git a/data/web/inc/header.inc.php b/data/web/inc/header.inc.php index eb096cc3..e7f4a6a1 100644 --- a/data/web/inc/header.inc.php +++ b/data/web/inc/header.inc.php @@ -4,7 +4,7 @@ -mailcow UI +<?=$UI_TEXTS['title_name'];?>