Add project_path and login_destination_url
This commit is contained in:
parent
5cac8f61e7
commit
cb32d58f21
|
|
@ -28,6 +28,7 @@ class plugin_database {
|
||||||
|
|
||||||
//pre-process some settings
|
//pre-process some settings
|
||||||
$settings['theme']['favicon'] = !empty($settings['theme']['favicon']) ? $settings['theme']['favicon'] : PROJECT_PATH.'/themes/default/favicon.ico';
|
$settings['theme']['favicon'] = !empty($settings['theme']['favicon']) ? $settings['theme']['favicon'] : PROJECT_PATH.'/themes/default/favicon.ico';
|
||||||
|
$settings['login']['destination'] = !empty($settings['login']['destination']) ? $settings['login']['destination'] : '';
|
||||||
|
|
||||||
//already authorized
|
//already authorized
|
||||||
if (isset($_SESSION['authentication']['plugin']['database']) && $_SESSION['authentication']['plugin']['database']["authorized"]) {
|
if (isset($_SESSION['authentication']['plugin']['database']) && $_SESSION['authentication']['plugin']['database']["authorized"]) {
|
||||||
|
|
@ -96,10 +97,13 @@ class plugin_database {
|
||||||
$view->assign("button_login", $text['button-login']);
|
$view->assign("button_login", $text['button-login']);
|
||||||
|
|
||||||
//assign default values to the template
|
//assign default values to the template
|
||||||
|
$view->assign("project_path", PROJECT_PATH);
|
||||||
|
$view->assign("login_destination_url", $settings['login']['destination']);
|
||||||
|
$view->assign("favicon", $settings['theme']['favicon']);
|
||||||
|
$view->assign("project_path", PROJECT_PATH);
|
||||||
$view->assign("login_logo_width", $login_logo_width);
|
$view->assign("login_logo_width", $login_logo_width);
|
||||||
$view->assign("login_logo_height", $login_logo_height);
|
$view->assign("login_logo_height", $login_logo_height);
|
||||||
$view->assign("login_logo_source", $login_logo_source);
|
$view->assign("login_logo_source", $login_logo_source);
|
||||||
$view->assign("favicon", $settings['theme']['favicon']);
|
|
||||||
|
|
||||||
//add the token name and hash to the view
|
//add the token name and hash to the view
|
||||||
//$view->assign("token_name", $token['name']);
|
//$view->assign("token_name", $token['name']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue