close(); header("Location: registration.php"); exit(); } $demoMode = getenv('DEMO_MODE'); $theme = "automatic"; if (isset($settings['theme'])) { $theme = $settings['theme']; } $updateThemeSettings = false; if (isset($settings['update_theme_setttings'])) { $updateThemeSettings = $settings['update_theme_setttings']; } $colorTheme = "blue"; if (isset($settings['color_theme'])) { $colorTheme = $settings['color_theme']; } $customCss = ""; if (isset($settings['customCss'])) { $customCss = $settings['customCss']; } if (isset($themeValue)) { $cookieExpire = time() + (30 * 24 * 60 * 60); setcookie('theme', $themeValue, [ 'expires' => $cookieExpire, 'samesite' => 'Strict' ]); } $isAdmin = $_SESSION['userId'] == 1; $locale = isset($_COOKIE['user_locale']) ? $_COOKIE['user_locale'] : 'en_US'; $formatter = new IntlDateFormatter( $locale, IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE ); function hex2rgb($hex) { $hex = str_replace("#", "", $hex); if (strlen($hex) == 3) { $r = hexdec(substr($hex, 0, 1) . substr($hex, 0, 1)); $g = hexdec(substr($hex, 1, 1) . substr($hex, 1, 1)); $b = hexdec(substr($hex, 2, 1) . substr($hex, 2, 1)); } else { $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); } return "$r, $g, $b"; } $mobileNavigation = $settings['mobile_nav'] ? "mobile-navigation" : ""; ?> Wallos - Subscription Tracker " id="theme-color" /> > > > > >