|
@@ -58,6 +58,7 @@ class plugin_database {
|
|
|
$settings['theme']['login_logo_width'] = !empty($_SESSION['theme']['login_logo_width']['text']) ? $_SESSION['theme']['login_logo_width']['text'] : 'auto; max-width: 300px';
|
|
|
$settings['theme']['login_logo_height'] = !empty($_SESSION['theme']['login_logo_height']['text']) ? $_SESSION['theme']['login_logo_height']['text'] : 'auto; max-height: 300px';
|
|
|
$settings['theme']['message_delay'] = isset($_SESSION['theme']['message_delay']) ? 1000 * (float) $_SESSION['theme']['message_delay'] : 3000;
|
|
|
+ $settings['theme']['background_video'] = isset($_SESSION['theme']['background_video'][0]) ? $_SESSION['theme']['background_video'][0] : null;
|
|
|
|
|
|
//already authorized
|
|
|
if (isset($_SESSION['authentication']['plugin']['database']) && $_SESSION['authentication']['plugin']['database']["authorized"]) {
|
|
@@ -108,7 +109,8 @@ class plugin_database {
|
|
|
$view->assign("login_logo_height", $settings['theme']['login_logo_height']);
|
|
|
$view->assign("login_logo_source", $settings['theme']['logo']);
|
|
|
$view->assign("message_delay", $settings['theme']['message_delay']);
|
|
|
-// if (!empty($_SESSION['authentication']['plugin']['database']['authorized']) && $_SESSION['authentication']['plugin']['database']['authorized'] == 1 && !empty($_SESSION['username'])) {
|
|
|
+ $view->assign("background_video", $settings['theme']['background_video']);
|
|
|
+ //if (!empty($_SESSION['authentication']['plugin']['database']['authorized']) && $_SESSION['authentication']['plugin']['database']['authorized'] == 1 && !empty($_SESSION['username'])) {
|
|
|
if (!empty($_SESSION['username'])) {
|
|
|
$view->assign("login_password_description", $text['label-password_description']);
|
|
|
$view->assign("username", $_SESSION['username']);
|