update installer to use default theme (#1626)

added support to allow install to use the theme's default settings and
reduce the number of php errors during the installer due to missing
settings
This commit is contained in:
Mafoo
2016-06-08 14:31:45 +01:00
committed by FusionPBX
parent 4605117d51
commit aa98a4f3a6
3 changed files with 83 additions and 60 deletions

View File

@@ -869,6 +869,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
box-shadow: none;
<?php
/* then set */
$shadow_inset = $shadow_outset = '';
if ($_SESSION['theme']['input_shadow_inner_color_focus']['text'] != '') {
$inner_color = $_SESSION['theme']['input_shadow_inner_color_focus']['text'];
$shadow_inset = "0 0 3px ".$inner_color." inset";
@@ -944,6 +945,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
box-shadow: none;
<?php
/* then set */
$shadow_inset = $shadow_outset = '';
if ($_SESSION['theme']['login_input_shadow_inner_color_focus']['text'] != '') {
$inner_color = $_SESSION['theme']['login_input_shadow_inner_color_focus']['text'];
$shadow_inset = "0 0 3px ".$inner_color." inset";