Ignore:
Timestamp:
Sep 11, 2013, 10:37:54 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Moved some code from global to system file. System class is now serving as main application class. Now old files which still use ShowPage function need system initialization with $InitSystem = true; before global.php inclusion.
  • Modified: Get rid of some global reference to $System, $Config and $User variables.
  • Modified: Search result functionality moved to application module from action.php file.
File:
1 edited

Legend:

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

    r572 r577  
    55        function SendMail()
    66        {
    7                 global $Config, $User;
    8        
    97                $Output = '';
    108                if(array_key_exists('text', $_POST))
    11                 if($User->Licence(LICENCE_ADMIN))
     9                if($this->System->User->Licence(LICENCE_ADMIN))
    1210                {
    1311                        $Text = $_POST['text'];
     
    1816                                        'Text: <strong>'.$Text.'</strong><br />';
    1917       
    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/'))
    2119                        {
    2220                                $Output .= ShowMessage('Zpráva byla odeslána.');
Note: See TracChangeset for help on using the changeset viewer.