Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/Options.php

    r861 r880  
    1717        '<option value="0">'.T('Nowhere').'</option>'.
    1818        '<option value="1"';
    19     if($this->System->User->Redirecting == '1') $Output .= ' selected="selected"';
     19    if ($this->System->User->Redirecting == '1') $Output .= ' selected="selected"';
    2020    $Output .= '>'.T('To untranslated').'</option>';
    2121    $Output .= '<option value="2"';
    22     if($this->System->User->Redirecting == '2') $Output .= ' selected="selected"';
     22    if ($this->System->User->Redirecting == '2') $Output .= ' selected="selected"';
    2323    $Output .= '>'.T('To next translation').'</option>';
    2424    $Output .= '<option value="3"';
    25     if($this->System->User->Redirecting == '3') $Output .= ' selected="selected"';
     25    if ($this->System->User->Redirecting == '3') $Output .= ' selected="selected"';
    2626    $Output .= '>'.T('To previous translation').'</option>';
    2727    $Output .= '</select>';
     
    6060        '<input type="hidden" name="action" value="gointeam"/>'.
    6161        '<select name="id">';
    62     while($LineTeam = $DbResult->fetch_assoc())
     62    while ($LineTeam = $DbResult->fetch_assoc())
    6363    {
    6464      $Output .= '<option value="'.$LineTeam['Id'].'"';
     
    6969    </form>';
    7070    $Output .= '</fieldset>';
    71     return($Output);
     71    return $Output;
    7272  }
    7373
     
    7575  {
    7676    $Output = '';
    77     if(array_key_exists('Email', $_POST))
     77    if (array_key_exists('Email', $_POST))
    7878    {
    7979      $Email = $_POST['Email'];
     
    8484      $Redirecting = $_POST['redirecting'];
    8585      $PreferredVersion = $_POST['ClientVersion'];
    86       if($PreferredVersion == '') $PreferredVersion = null;
     86      if ($PreferredVersion == '') $PreferredVersion = null;
    8787      $Info = $_POST['info'];
    8888
    8989      // Do user want to change password?
    90       if(($OldPass != '') or ($NewPass != '') or ($NewPass2 != ''))
     90      if (($OldPass != '') or ($NewPass != '') or ($NewPass2 != ''))
    9191      {
    92         if($NewPass == $NewPass2)
     92        if ($NewPass == $NewPass2)
    9393        {
    9494          $DbResult = $this->System->Database->query('SELECT `Pass`, '.$this->System->User->CryptPasswordSQL('"'.$OldPass.'"', '`Salt`').' AS `Hash` FROM `User` WHERE `ID`= '.$this->System->User->Id);
    9595          $DbRow = $DbResult->fetch_assoc();
    96           if($DbRow['Hash'] == $DbRow['Pass'])
     96          if ($DbRow['Hash'] == $DbRow['Pass'])
    9797          {
    9898            // Update password
     
    130130      $this->System->User->Load();
    131131    } else $Output .= ShowMessage('Nezadány údaje.', MESSAGE_CRITICAL);
    132     return($Output);
     132    return $Output;
    133133  }
    134134
     
    137137    $this->Title = T('User settings');
    138138    $Output = '';
    139     if($this->System->User->Licence(LICENCE_USER))
     139    if ($this->System->User->Licence(LICENCE_USER))
    140140    {
    141       if(array_key_exists('action', $_GET) and ($_GET['action'] == 'save'))
     141      if (array_key_exists('action', $_GET) and ($_GET['action'] == 'save'))
    142142      {
    143143        $Output .= $this->UserOptionsSave();
     
    145145      $Output .= $this->UserOptionsFrom();
    146146    } else $Output .= ShowMessage('Nejste přihlášený.', MESSAGE_CRITICAL);
    147     return($Output);
     147    return $Output;
    148148  }
    149149}
Note: See TracChangeset for help on using the changeset viewer.