diff --git a/install/tpl/system.ini.master b/install/tpl/system.ini.master index eb709c8da2f5db8332f8bff7087e34c083a857a0..81b33374b312e47d777e3368dc236e34d02b39b9 100644 --- a/install/tpl/system.ini.master +++ b/install/tpl/system.ini.master @@ -41,6 +41,8 @@ new_domain_html=Please contact our support to create a new domain for you. [misc] company_name= +custom_login_text= +custom_login_link= dashboard_atom_url_admin=http://www.ispconfig.org/atom dashboard_atom_url_reseller=http://www.ispconfig.org/atom dashboard_atom_url_client=http://www.ispconfig.org/atom diff --git a/interface/web/admin/form/system_config.tform.php b/interface/web/admin/form/system_config.tform.php index 3810e52bad6f575eb006a7e30c43f89738454687..72618657968a7642d32f8f35ef1607af82877fef 100644 --- a/interface/web/admin/form/system_config.tform.php +++ b/interface/web/admin/form/system_config.tform.php @@ -466,6 +466,22 @@ $form["tabs"]['misc'] = array ( 'default' => '', 'value' => '' ), + 'custom_login_text' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '' + ), + 'custom_login_link' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(http|https):\\/\\/.*|^$/', + 'errmsg'=> 'login_link_error_regex'), + ) + ), 'dashboard_atom_url_admin' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', diff --git a/interface/web/admin/lib/lang/ar_system_config.lng b/interface/web/admin/lib/lang/ar_system_config.lng index 5f71b21e0ab5aca01b1432a289990161fc08ddce..6d3989647d909800af2aadd95a0ccc84e5bd138b 100644 --- a/interface/web/admin/lib/lang/ar_system_config.lng +++ b/interface/web/admin/lib/lang/ar_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/bg_system_config.lng b/interface/web/admin/lib/lang/bg_system_config.lng index a9db3bddaa5bec57878ae4f10d1f736c85eb6fc5..d1e3740cc25612439fae7c12025b1f5f59c2f1a4 100644 --- a/interface/web/admin/lib/lang/bg_system_config.lng +++ b/interface/web/admin/lib/lang/bg_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/br_system_config.lng b/interface/web/admin/lib/lang/br_system_config.lng index 7eb5b8a75a79b0ca8a1abf7c5dca1e60508aa39b..826c823375656023089341fd80795a2e208ba464 100644 --- a/interface/web/admin/lib/lang/br_system_config.lng +++ b/interface/web/admin/lib/lang/br_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/cz_system_config.lng b/interface/web/admin/lib/lang/cz_system_config.lng index 08b243ed11349fc48a80b2f15455b86b184b6d21..73746ba4bbae36dea18f5e1f1a06ea930c3e9564 100644 --- a/interface/web/admin/lib/lang/cz_system_config.lng +++ b/interface/web/admin/lib/lang/cz_system_config.lng @@ -73,5 +73,8 @@ $wb['min_password_length_txt'] = 'Minimálnà délka hesla'; $wb['min_password_strength_txt'] = 'Minimálnà sÃla hesla'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/de_system_config.lng b/interface/web/admin/lib/lang/de_system_config.lng index bbeeb7ab1dff5d66ccb9841086fe0f758ffe2df6..efc4954ed3acdbb58a517162387e9df1ae61287d 100644 --- a/interface/web/admin/lib/lang/de_system_config.lng +++ b/interface/web/admin/lib/lang/de_system_config.lng @@ -73,4 +73,7 @@ $wb['No'] = 'Nein'; $wb['min_password_length_txt'] = 'Minimale Passwortlänge'; $wb['min_password_strength_txt'] = 'Minimale Passwortstärke'; $wb["company_name_txt"] = "Firmenname fuer den Seitentitel"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/el_system_config.lng b/interface/web/admin/lib/lang/el_system_config.lng index d0d285e3bd58d8c70f671173525b8f41202b986d..99e0bd2fcee63405d8999f97c0bc194ebce4f1a2 100644 --- a/interface/web/admin/lib/lang/el_system_config.lng +++ b/interface/web/admin/lib/lang/el_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/en_system_config.lng b/interface/web/admin/lib/lang/en_system_config.lng index 35d6e61d25f48fcf1c3706be3f585da8fe70f011..38f178f9f5ba58672db59073790ca7400e9caa50 100644 --- a/interface/web/admin/lib/lang/en_system_config.lng +++ b/interface/web/admin/lib/lang/en_system_config.lng @@ -81,4 +81,7 @@ $wb["default_slave_dnsserver_txt"] = 'Default Secondary DNS Server'; $wb["default_dbserver_txt"] = 'Default Database Server'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/es_system_config.lng b/interface/web/admin/lib/lang/es_system_config.lng index 488077f134792251b0a82d12e3327faf33878470..0b318f2e857e4d8307fd14b0b653997680215758 100644 --- a/interface/web/admin/lib/lang/es_system_config.lng +++ b/interface/web/admin/lib/lang/es_system_config.lng @@ -78,4 +78,7 @@ $wb['default_slave_dnsserver_txt'] = 'Servidor DNS secundario por defecto'; $wb['default_dbserver_txt'] = 'Servidor de bases de datos por defecto'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/fi_system_config.lng b/interface/web/admin/lib/lang/fi_system_config.lng index 59e73b974fae6e363e74c511073245ee3777ec96..b5440b759351c97fd7daacdbb1d0f02ff4e5e92a 100644 --- a/interface/web/admin/lib/lang/fi_system_config.lng +++ b/interface/web/admin/lib/lang/fi_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/fr_system_config.lng b/interface/web/admin/lib/lang/fr_system_config.lng index 3cee7cb16603f8e9cc11da431ac36d4f84210307..0c41479f0e90850594ab157b47720b3bae75ebfd 100644 --- a/interface/web/admin/lib/lang/fr_system_config.lng +++ b/interface/web/admin/lib/lang/fr_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/hr_system_config.lng b/interface/web/admin/lib/lang/hr_system_config.lng index c6e3ddd55ce1e39fe03b418ed9b172dc404af964..c00a567364e4d472b941609d3bd41651c87d0a36 100644 --- a/interface/web/admin/lib/lang/hr_system_config.lng +++ b/interface/web/admin/lib/lang/hr_system_config.lng @@ -73,6 +73,9 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/hu_system_config.lng b/interface/web/admin/lib/lang/hu_system_config.lng index 3a7b0f0a5819df30668d2808fcc04e357425d090..fac736ee2cf1c62831de34f6c0bda817143d48d1 100644 --- a/interface/web/admin/lib/lang/hu_system_config.lng +++ b/interface/web/admin/lib/lang/hu_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/id_system_config.lng b/interface/web/admin/lib/lang/id_system_config.lng index 3a4bbd4168d8bade3eb54978fc035bf1cbf2c73e..deffe15d056ba49a32620491fc33ae1f3488c7b9 100644 --- a/interface/web/admin/lib/lang/id_system_config.lng +++ b/interface/web/admin/lib/lang/id_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/it_system_config.lng b/interface/web/admin/lib/lang/it_system_config.lng index 3a8dd5e522ddf104b3a141b2e818ab5d897be700..172568dc226a08c23f82b05dda7bede7d1b42e5a 100644 --- a/interface/web/admin/lib/lang/it_system_config.lng +++ b/interface/web/admin/lib/lang/it_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/ja_system_config.lng b/interface/web/admin/lib/lang/ja_system_config.lng index 3f425c84c8a6d09ca4c7e6b7e646dc87057b4efa..6125ea1e822cffbb5e5d9a67065f17df26bd3e6d 100644 --- a/interface/web/admin/lib/lang/ja_system_config.lng +++ b/interface/web/admin/lib/lang/ja_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/nl_system_config.lng b/interface/web/admin/lib/lang/nl_system_config.lng index 40b626b1443049dbba31c56302db1c600d6c2d36..fde5bf94830c6f747d3ba8aa1596cffe7e564af5 100644 --- a/interface/web/admin/lib/lang/nl_system_config.lng +++ b/interface/web/admin/lib/lang/nl_system_config.lng @@ -76,4 +76,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/pl_system_config.lng b/interface/web/admin/lib/lang/pl_system_config.lng index 8fcea461acefa2b5983f8d970260abbc4a865029..74031e4dcbd5566880ac0568ef7558441bb047d7 100644 --- a/interface/web/admin/lib/lang/pl_system_config.lng +++ b/interface/web/admin/lib/lang/pl_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/pt_system_config.lng b/interface/web/admin/lib/lang/pt_system_config.lng index bd81e2bd20b545a7fc5c3d56182d71beedde51a5..43320c4d301b3373f560a84ea69c5577cc7663f2 100644 --- a/interface/web/admin/lib/lang/pt_system_config.lng +++ b/interface/web/admin/lib/lang/pt_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/ro_system_config.lng b/interface/web/admin/lib/lang/ro_system_config.lng index f4c24e2aad45b2e914f720712160ede9892cc23f..b700f30b06ac1ace14d076197f296899476ced09 100644 --- a/interface/web/admin/lib/lang/ro_system_config.lng +++ b/interface/web/admin/lib/lang/ro_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/ru_system_config.lng b/interface/web/admin/lib/lang/ru_system_config.lng index a6ac23ef06323f3b5884522b4990784f62627fbd..00064982f6d10ccb09be9711c18844da1d3fc5c9 100644 --- a/interface/web/admin/lib/lang/ru_system_config.lng +++ b/interface/web/admin/lib/lang/ru_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/se_system_config.lng b/interface/web/admin/lib/lang/se_system_config.lng index 9baac35994e3651839ccedcb860d123398cbdc01..3451c5f6082ce79b85b073c2a0a1c747020de182 100644 --- a/interface/web/admin/lib/lang/se_system_config.lng +++ b/interface/web/admin/lib/lang/se_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minsta lösenordslängd'; $wb['min_password_strength_txt'] = 'Minsta lösenordsstyrka'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/sk_system_config.lng b/interface/web/admin/lib/lang/sk_system_config.lng index be0949fbbe506fa95f8ab671b6cc68a0a07d673c..b5f6687310f28ea3589752ca2d2b67a26fb4823c 100644 --- a/interface/web/admin/lib/lang/sk_system_config.lng +++ b/interface/web/admin/lib/lang/sk_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/lib/lang/tr_system_config.lng b/interface/web/admin/lib/lang/tr_system_config.lng index 32940f763a367f944b9085fa607dd650e8e26524..47fadcb5ef0f4c7b7f8a242d7a022c484349761e 100644 --- a/interface/web/admin/lib/lang/tr_system_config.lng +++ b/interface/web/admin/lib/lang/tr_system_config.lng @@ -73,4 +73,7 @@ $wb['min_password_length_txt'] = 'Minimum password length'; $wb['min_password_strength_txt'] = 'Minimum password strength'; $wb["company_name_txt"] = "Company Name for the page title"; $wb["reseller_can_use_options_txt"] = "Reseller can use the option-tab for websites"; +$wb["custom_login_text_txt"] = "Custom Text on Login-Page"; +$wb["custom_login_link_txt"] = "Custom Link on Login-Page"; +$wb["login_link_error_regex"] = "Invalid Link for Custom Login"; ?> diff --git a/interface/web/admin/templates/system_config_misc_edit.htm b/interface/web/admin/templates/system_config_misc_edit.htm index d5dc139ccac613e034d25879b6af645e4dbc058e..5e2f1914721d6cdbe9e0cd553dd7a467272f6db6 100644 --- a/interface/web/admin/templates/system_config_misc_edit.htm +++ b/interface/web/admin/templates/system_config_misc_edit.htm @@ -14,6 +14,12 @@ <div class="form-group"> <label for="page_title" class="col-sm-3 control-label">{tmpl_var name='company_name_txt'}</label> <div class="col-sm-9"><input type="text" name="company_name" id="company_name" value="{tmpl_var name='company_name'}" size="" maxlength="" class="form-control" /></div></div> + <div class="form-group"> + <label for="page_title" class="col-sm-3 control-label">{tmpl_var name='custom_login_text_txt'}</label> + <div class="col-sm-9"><input type="text" name="custom_login_text" id="custom_login_text" value="{tmpl_var name='custom_login_text'}" size="" maxlength="" class="form-control" /></div></div> + <div class="form-group"> + <label for="page_title" class="col-sm-3 control-label">{tmpl_var name='custom_login_link_txt'}</label> + <div class="col-sm-9"><input type="text" name="custom_login_link" id="custom_login_link" value="{tmpl_var name='custom_login_link'}" size="" maxlength="" class="form-control" /></div></div> <div class="form-group"> <label for="dashboard_atom_url_admin" class="col-sm-3 control-label">{tmpl_var name='dashboard_atom_url_admin_txt'}</label> <div class="col-sm-9"><input type="text" name="dashboard_atom_url_admin" id="dashboard_atom_url_admin" value="{tmpl_var name='dashboard_atom_url_admin'}" size="" maxlength="" class="form-control" /></div></div> diff --git a/interface/web/login/index.php b/interface/web/login/index.php index f2d0e601c3d64b9858c9c3e13fc24bd907a028b0..4df370339665973ed5efb6a31d26230c9f3b0bae 100644 --- a/interface/web/login/index.php +++ b/interface/web/login/index.php @@ -351,6 +351,12 @@ $app->tpl->setVar('base64_logo_txt', $base64_logo_txt); // Title $app->tpl->setVar('company_name', $sys_config['company_name']. ' :: '); +// Custom Login +if ($sys_config['custom_login_text'] != '') { + $custom_login = @($sys_config['custom_login_link'] != '')?'<a href="'.$sys_config['custom_login_link'].'" target="_blank">'.$sys_config['custom_login_text'].'</a>':$sys_config['custom_login_text']; +} +$app->tpl->setVar('custom_login', $custom_login); + $app->tpl_defaults(); $app->tpl->pparse(); diff --git a/interface/web/login/templates/index.htm b/interface/web/login/templates/index.htm index 8d9ff9e516af446538dfd7edc73ec36c923d58d9..9a75a66cbda5003c367ceda39aaa93d34c22a23c 100644 --- a/interface/web/login/templates/index.htm +++ b/interface/web/login/templates/index.htm @@ -25,4 +25,4 @@ <tmpl_if name="pw_lost_show"><button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='pw_lost_txt'}" onClick="document.location.href='password_reset.php';">{tmpl_var name='pw_lost_txt'}</button></tmpl_if> </div> </fieldset> - </form> \ No newline at end of file + </form> diff --git a/interface/web/themes/default/templates/main_login.tpl.htm b/interface/web/themes/default/templates/main_login.tpl.htm index e5fa880e6af125558db14bc2021d437eb3c94a36..19b83734a257b143fd1e1e2e464bf1c8709e47a6 100644 --- a/interface/web/themes/default/templates/main_login.tpl.htm +++ b/interface/web/themes/default/templates/main_login.tpl.htm @@ -32,6 +32,7 @@ </div> <div class="panel-body"> <tmpl_dyninclude name="content_tpl"> + <br><center><small><tmpl_var name="custom_login"></small></center> </div> </div> </div>