Changeset 826 for trunk/Modules/User/Profile.php
- Timestamp:
- Mar 1, 2015, 3:38:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Profile.php
r825 r826 13 13 $Subject = $_POST['subject']; 14 14 $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/')) 19 20 { 20 21 $Output .= ShowMessage(T('Message was sent')); … … 156 157 'Poslední připojení: <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'. 157 158 'Počet přeložených: <a href="TranslationList.php?user='.$UserLine['ID'].'&state=2&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/>'; 160 160 if($UserLine['TeamName'] != '') 161 161 $Output .= 'Člen týmu: <a href="team/?action=team&id='.$UserLine['Team'].'"><strong>'.$UserLine['TeamName'].'</strong></a><br />'; … … 175 175 } 176 176 177 178 177 $Output .= '<br /><fieldset><legend>Text profilu:</legend>'.str_replace("\n", '<br/>', $UserLine['Info']).'</fieldset><br/>'; 179 178 180 179 $Output .= '<table class="Home"><tr>'. 181 182 183 180 '<td>'.$this->ShowLastTranslated().'</td>'. 181 '<td>'.$this->ExportList().'</td>'. 182 '</tr></table>'; 184 183 $Output .= '<br />'.$this->ShowLastForum().'<br />'; 185 184 if($this->System->User->Licence(LICENCE_MODERATOR)) … … 224 223 'Email: <strong>'.$UserLine['Email'].'</strong><br />'; 225 224 $Output .= '<br/><form action="user.php" method="post"><div>'. 226 227 228 229 230 231 232 233 234 235 236 237 238 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>'; 239 238 } 240 239 } else $Output .= ShowMessage('Uživatel nenalezen', MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.