+9
index.php
+9
index.php
···
81
81
'setTheme' => array_key_exists('sbs_theme', $_COOKIE) ? $_COOKIE['sbs_theme'] : DEFAULT_THEME,
82
82
'setFont' => array_key_exists('sbs_font', $_COOKIE) ? $_COOKIE['sbs_font'] : DEFAULT_FONT,
83
83
'userAuth' => Flight::get('userAuth'),
84
+
'userPds' => Flight::get('userPds'),
85
+
'userInfo' => Flight::Get('userInfo'),
84
86
'favFeeds' => $favoriteFeeds,
85
87
'pages' => PAGES,
86
88
'links' => LINKS,
···
248
250
]));
249
251
die(1);
250
252
}
253
+
});
254
+
255
+
Flight::route('/logout', function(): void {
256
+
unset($_SESSION['sbs_'.SITE_DOMAIN]);
257
+
unset($_SESSION['sbs_'.SITE_DOMAIN.'_pds']);
258
+
unset($_SESSION['sbs_'.SITE_DOMAIN.'_userinfo']);
259
+
header('Location: https://'.SITE_DOMAIN);
251
260
});
252
261
253
262
Flight::route('/createaccount', function(): void {