Ignore:
Timestamp:
Mar 1, 2015, 3:38:19 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Removed generation of user level to images as files. Level images ware replaced by HTML progress bar.
  • Modified: User XP level and translated count is now calculated during every translation save operation rather then calculated in user list and group view page show.
  • Fixed: Wrong indentation in some files.
File:
1 edited

Legend:

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

    r825 r826  
    1313      $Subject = $_POST['subject'];
    1414      $Output = 'Email: <strong>'.$Email.'</strong><br />'.
    15           'Předmět: <strong>'.$Subject.'</strong><br />'.
    16           'Text: <strong>'.$Text.'</strong><br />';
    17 
    18       if(@mail($Email, $Subject, $Text, 'From: '.$this->System->Config['Web']['AdminEmail'].'\nReply-To: '.$this->System->Config['Web']['AdminEmail'].'\nX-Mailer: PHP/'))
     15        'Předmět: <strong>'.$Subject.'</strong><br />'.
     16        'Text: <strong>'.$Text.'</strong><br />';
     17
     18      if(@mail($Email, $Subject, $Text, 'From: '.$this->System->Config['Web']['AdminEmail'].
     19        '\nReply-To: '.$this->System->Config['Web']['AdminEmail'].'\nX-Mailer: PHP/'))
    1920      {
    2021        $Output .= ShowMessage(T('Message was sent'));
     
    156157        'Poslední připojení: <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'.
    157158        'Počet přeložených: <a href="TranslationList.php?user='.$UserLine['ID'].'&amp;state=2&amp;group=0" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />'.
    158         'Úroveň: <strong>'.$XP['Level'].'</strong><br/>'.
    159         'Zkušenost: '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>';
     159        'Úroveň: <strong>'.$XP['Level'].'</strong> zkušenost: '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>';
    160160      if($UserLine['TeamName'] != '')
    161161        $Output .= 'Člen týmu: <a href="team/?action=team&amp;id='.$UserLine['Team'].'"><strong>'.$UserLine['TeamName'].'</strong></a><br />';
     
    175175      }
    176176
    177 
    178177    $Output .= '<br /><fieldset><legend>Text profilu:</legend>'.str_replace("\n", '<br/>', $UserLine['Info']).'</fieldset><br/>';
    179178
    180179    $Output .= '<table class="Home"><tr>'.
    181         '<td>'.$this->ShowLastTranslated().'</td>'.
    182         '<td>'.$this->ExportList().'</td>'.
    183         '</tr></table>';
     180      '<td>'.$this->ShowLastTranslated().'</td>'.
     181      '<td>'.$this->ExportList().'</td>'.
     182      '</tr></table>';
    184183    $Output .= '<br />'.$this->ShowLastForum().'<br />';
    185184    if($this->System->User->Licence(LICENCE_MODERATOR))
     
    224223          'Email: <strong>'.$UserLine['Email'].'</strong><br />';
    225224      $Output .= '<br/><form action="user.php" method="post"><div>'.
    226           'Napsat E-mail:'.
    227           '<input type="text" name="email" value="'.$UserLine['Email'].'" /><br/>'.
    228           'Předmět:'.
    229           '<input type="text" name="subject" value="'.$this->System->Config['Web']['Title'].'" />'.
    230           '<br />'.
    231           '<textarea name="text" rows="20" cols="62">'.
    232           ''."\n".
    233           'S pozdravem '.$this->System->User->Name."\n".
    234           '--------------------------------------------------------'."\n".
    235           $this->System->Config['Web']['Title'].' '.$this->System->Config['Web']['Host'].$this->System->Link('/')."\n".
    236           '</textarea><br/>'.
    237           '<input type="submit" value="Odeslat" />'.
    238           '</div></form></fieldset>';
     225        'Napsat E-mail:'.
     226        '<input type="text" name="email" value="'.$UserLine['Email'].'" /><br/>'.
     227        'Předmět:'.
     228        '<input type="text" name="subject" value="'.$this->System->Config['Web']['Title'].'" />'.
     229        '<br />'.
     230        '<textarea name="text" rows="20" cols="62">'.
     231        ''."\n".
     232        'S pozdravem '.$this->System->User->Name."\n".
     233        '--------------------------------------------------------'."\n".
     234        $this->System->Config['Web']['Title'].' '.$this->System->Config['Web']['Host'].$this->System->Link('/')."\n".
     235        '</textarea><br/>'.
     236        '<input type="submit" value="Odeslat" />'.
     237        '</div></form></fieldset>';
    239238      }
    240239    } else $Output .= ShowMessage('Uživatel nenalezen', MESSAGE_CRITICAL);
Note: See TracChangeset for help on using the changeset viewer.