Changeset 577 for trunk/Modules/User/Profile.php
- Timestamp:
- Sep 11, 2013, 10:37:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Profile.php
r572 r577 5 5 function SendMail() 6 6 { 7 global $Config, $User;8 9 7 $Output = ''; 10 8 if(array_key_exists('text', $_POST)) 11 if($ User->Licence(LICENCE_ADMIN))9 if($this->System->User->Licence(LICENCE_ADMIN)) 12 10 { 13 11 $Text = $_POST['text']; … … 18 16 'Text: <strong>'.$Text.'</strong><br />'; 19 17 20 if(@mail($Email, $Subject, $Text, 'From: '.$ Config['Web']['AdminEmail'].'\nReply-To: '.$Config['Web']['AdminEmail'].'\nX-Mailer: PHP/'))18 if(@mail($Email, $Subject, $Text, 'From: '.$this->System->Config['Web']['AdminEmail'].'\nReply-To: '.$this->System->Config['Web']['AdminEmail'].'\nX-Mailer: PHP/')) 21 19 { 22 20 $Output .= ShowMessage('Zpráva byla odeslána.');
Note:
See TracChangeset
for help on using the changeset viewer.