mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add project_path and login_destination_url
This commit is contained in:
@@ -27,6 +27,7 @@ class plugin_email {
|
|||||||
|
|
||||||
//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'] : '';
|
||||||
|
|
||||||
//set a default template
|
//set a default template
|
||||||
$_SESSION['domain']['template']['name'] = 'default';
|
$_SESSION['domain']['template']['name'] = 'default';
|
||||||
@@ -86,13 +87,15 @@ class plugin_email {
|
|||||||
$view->init();
|
$view->init();
|
||||||
|
|
||||||
//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("login_title", $text['label-username']);
|
$view->assign("login_title", $text['label-username']);
|
||||||
$view->assign("login_username", $text['label-username']);
|
$view->assign("login_username", $text['label-username']);
|
||||||
$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("button_login", $text['button-login']);
|
$view->assign("button_login", $text['button-login']);
|
||||||
$view->assign("favicon", $settings['theme']['favicon']);
|
|
||||||
|
|
||||||
//show the views
|
//show the views
|
||||||
$content = $view->render('username.htm');
|
$content = $view->render('username.htm');
|
||||||
@@ -263,6 +266,9 @@ class plugin_email {
|
|||||||
$view->init();
|
$view->init();
|
||||||
|
|
||||||
//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("login_title", $text['label-verify']);
|
$view->assign("login_title", $text['label-verify']);
|
||||||
$view->assign("login_email_description", $text['label-email_description']);
|
$view->assign("login_email_description", $text['label-email_description']);
|
||||||
$view->assign("login_authentication_code", $text['label-authentication_code']);
|
$view->assign("login_authentication_code", $text['label-authentication_code']);
|
||||||
@@ -270,7 +276,6 @@ class plugin_email {
|
|||||||
$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("button_verify", $text['label-verify']);
|
$view->assign("button_verify", $text['label-verify']);
|
||||||
$view->assign("favicon", $settings['theme']['favicon']);
|
|
||||||
|
|
||||||
//debug information
|
//debug information
|
||||||
//echo "<pre>\n";
|
//echo "<pre>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user