Add Check Color class

checks html/css color string for valid
eg, hex #, hex alpha #, rgb/rgba, hsl/hsla
This commit is contained in:
Clemens Schwaighofer
2023-01-10 15:43:33 +09:00
parent 737f70fac5
commit 00591deb00
9 changed files with 685 additions and 9 deletions
+1
View File
@@ -690,6 +690,7 @@ class Login
// rgb(), rgba(), hsl(), hsla()
// rgb: nnn.n for each
// hsl: nnn.n for first, nnn.n% for 2nd, 3rd
// Check\Colors::validateColor()
$_SESSION['LANG'] = $res['locale'] ?? 'en';
$_SESSION['DEFAULT_CHARSET'] = $res['encoding'] ?? 'UTF-8';
$_SESSION['DEFAULT_LOCALE'] = $_SESSION['LANG']