From 4c5c3e9ff0971a4cc3d851eeec35250792412147 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 24 Oct 2020 22:03:05 +0200 Subject: [PATCH] Add browser themeing --- chat.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/chat.php b/chat.php index c1a0eb0..e241790 100644 --- a/chat.php +++ b/chat.php @@ -317,7 +317,16 @@ function credit() : string { } function meta_html() : string { - return ''; + global $db; + $colbg='000000'; + if(!empty($U['bgcolour'])){ + $colbg=$U['bgcolour']; + }else{ + if($db instanceof PDO){ + $colbg=get_setting('colbg'); + } + } + return ''; } function form(string $action, string $do='') : string {