Ignore:
Timestamp:
Feb 22, 2015, 11:05:49 PM (9 years ago)
Author:
chronos
Message:
  • Remove: Trailing spaces from end of lines from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/ShoutBox/ShoutBox.php

    r805 r815  
    1313    $this->Dependencies = array('News');
    1414  }
    15  
     15
    1616  function Start()
    1717  {
    1818        $this->System->RegisterPage('shoutbox', 'PageShoutBox');
    1919        $this->System->ModuleManager->Modules['News']->RegisterRSS(array(
    20           'Title' => T('Shoutbox'), 'Channel' => 'shoutbox', 'Callback' => array('PageShoutBox', 'ShowRSS'), 
    21           'Permission' => LICENCE_ANONYMOUS));           
     20          'Title' => T('Shoutbox'), 'Channel' => 'shoutbox', 'Callback' => array('PageShoutBox', 'ShowRSS'),
     21          'Permission' => LICENCE_ANONYMOUS));
    2222    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
    2323      $this->System->ModuleManager->Modules['Search']->RegisterSearch('shoutbox',
    2424      T('Shoutbox'), array('UserName', 'Text'), '`ShoutBox`', $this->System->Link('/shoutbox/?search='));
    2525  }
    26  
     26
    2727  function ShowBox()
    2828  {
     
    3737        $Output .= '</table></div>';
    3838        return($Output);
    39   }   
     39  }
    4040}
    4141
     
    5353                return($Output);
    5454        }
    55        
     55
    5656        function ShowList()
    5757        {
     
    6464                        $SearchQuery = ' AND (`Text` LIKE "%'.$_SESSION['search'].'%")';
    6565                        $Output .= '<div><a href="?search=">'.sprintf(T('Disable filter "%s"'), $_SESSION['search']).'</a></div>';
    66                 } else $SearchQuery = '';                       
     66                } else $SearchQuery = '';
    6767
    6868        $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `ShoutBox` WHERE 1'.$SearchQuery);
     
    7171
    7272                $Output .= '<h3>'.T('Shoutbox').'</h3>'.$PageList['Output'];
    73                 if($this->System->User->Licence(LICENCE_USER)) 
     73                if($this->System->User->Licence(LICENCE_USER))
    7474                        $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>';
    7575                $Output .= '<div class="shoutbox">';
     
    8080                return($Output);
    8181        }
    82        
     82
    8383        function ShowAddForm()
    8484        {
     
    9898                }       else $Output .= ShowMessage('Pro vkládaní zpráv musíte byt registrováni.', MESSAGE_CRITICAL);
    9999                $Output .= $this->ShowList();
    100           return($Output);     
     100          return($Output);
    101101        }
    102        
     102
    103103        function AddFinish()
    104104        {
     
    134134                $Output .= $this->ShowList();
    135135                return($Output);
    136         }       
    137        
     136        }
     137
    138138        function ShowRSS()
    139139        {
Note: See TracChangeset for help on using the changeset viewer.