#9073 added control session
This commit is contained in:
parent
5d6ac202df
commit
bdd6d2bb15
|
@ -31,6 +31,7 @@ global $config;
|
|||
|
||||
require_once $config['homedir'].'/include/functions_register.php';
|
||||
require_once $config['homedir'].'/include/class/WelcomeWindow.class.php';
|
||||
require_once $config['homedir'].'/include/class/TipsWindow.class.php';
|
||||
|
||||
|
||||
if ((bool) is_ajax() === true) {
|
||||
|
@ -109,6 +110,16 @@ try {
|
|||
$welcome = false;
|
||||
}
|
||||
|
||||
try {
|
||||
if (isset($_SESSION['showed_tips_window']) === false) {
|
||||
$tips_window = new TipsWindow();
|
||||
if ($tips_window !== null) {
|
||||
$tips_window->run();
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
|
||||
$double_auth_enabled = (bool) db_get_value('id', 'tuser_double_auth', 'id_user', $config['id_user']);
|
||||
|
||||
if (isset($config['2FA_all_users']) === false) {
|
||||
|
|
|
@ -134,6 +134,7 @@ class TipsWindow
|
|||
return;
|
||||
}
|
||||
|
||||
$_SESSION['showed_tips_window'] = true;
|
||||
ui_require_css_file('tips_window');
|
||||
ui_require_css_file('jquery.bxslider');
|
||||
ui_require_javascript_file('tipsWindow');
|
||||
|
|
Loading…
Reference in New Issue