diff --git a/front/index.php b/front/index.php index 6272222a..1a1993bc 100644 --- a/front/index.php +++ b/front/index.php @@ -5,6 +5,25 @@ if ($_REQUEST['action'] == 'logout') { session_destroy(); header('Location: /pialert/index.php'); } +// ################################### + // ## Login settings locale start + // ################################### + if (file_exists('../db/setting_darkmode')) { + $ENABLED_DARKMODE = True; + } + foreach (glob("../db/setting_skin*") as $filename) { + $pia_skin_selected = str_replace('setting_','',basename($filename)); + } + if (strlen($pia_skin_selected) == 0) {$pia_skin_selected = 'skin-blue';} + + foreach (glob("../db/setting_language*") as $filename) { + $pia_lang_selected = str_replace('setting_language_','',basename($filename)); + } + if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';} + require 'php/templates/language/'.$pia_lang_selected.'.php'; +// ################################### + // ## Login settings locale end + // ################################### // ################################################## // ## Login Processing start // ################################################## @@ -103,24 +122,23 @@ if ($ENABLED_DARKMODE === True) {
Sign in to start your session
- -