Skip to content

Commit

Permalink
Merge pull request #1779 from nilsteampassnet/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
nilsteampassnet committed Jun 3, 2017
2 parents 4778493 + dd49bd3 commit 8fd89fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@
<li class="menu_150" style="padding:4px; text-align:left;"><i class="fa fa-bars fa-fw"></i>&nbsp;'.$LANG['admin_actions_title'].'
<ul class="menu_250" style="text-align:left;">
<li id="but_pickfiles_photo"><i class="fa fa-camera fa-fw"></i> &nbsp;'.$LANG['upload_new_avatar'].'</li>';
if (!isset($_SESSION['settings']['duo']) || $_SESSION['settings']['duo'] == 0) echo '
if (!isset($_SESSION['settings']['duo']) || $_SESSION['settings']['duo'] == 0) {
echo '
<li id="but_change_password"><i class="fa fa-key fa-fw"></i> &nbsp;'.$LANG['index_change_pw'].'</li>';
}
echo '
<li id="but_change_psk"><i class="fa fa-lock fa-fw"></i> &nbsp;'.$LANG['menu_title_new_personal_saltkey'].'</li>
<li id="but_reset_psk"><i class="fa fa-eraser fa-fw"></i> &nbsp;'.$LANG['personal_saltkey_lost'].'</li>
Expand Down Expand Up @@ -157,7 +159,7 @@
<div id="filelist_photo" style="display:none;"></div>';

// if DUOSecurity enabled then changing PWD is not allowed
if (!isset($_SESSION['settings']['duo']) || $_SESSION['settings']['duo'] == 0)
if (!isset($_SESSION['settings']['duo']) || $_SESSION['settings']['duo'] == 0) {
echo '
<div id="div_change_password" style="display:none; padding:5px;" class="ui-widget ui-state-default">
<div style="text-align:center;margin:5px;padding:3px;" id="change_pwd_complexPw" class="ui-widget ui-state-active ui-corner-all"></div>
Expand All @@ -171,6 +173,7 @@
<span class="button" id="button_change_pw">'.$LANG['index_change_pw_button'].'</span>&nbsp;
<span id="password_change_wait" style="display:none;"><i class="fa fa-cog fa-spin"></i>&nbsp;'.$LANG['please_wait'].'</span>
</div>';
}

//change the saltkey dialogbox
echo '
Expand Down

0 comments on commit 8fd89fc

Please sign in to comment.