Ignore:
Timestamp:
Aug 13, 2013, 11:31:34 PM (11 years ago)
Author:
chronos
Message:
  • Modified: New RSS channels are now registered by modules itself.
  • Modified: ShoutBox transformed to application module.
File:
1 edited

Legend:

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

    r560 r561  
    8282                        '<tr><td>'.$this->ShowLastTranslated().'</td>'.
    8383                        '<td class="news-box">'.$this->ShowNews().'</td>'.
    84                         '<td>'.$this->ShowShoutBox().'</td>'.
     84                        '<td>'.$this->System->ModuleManager->Modules['ShoutBox']->ShowBox().'</td>'.
    8585                        '</tr></table>';
    8686         return($Output);
    8787  }
    8888
    89   function ShowShoutbox()
    90   {
    91         $Output = '<strong><a href="'.$this->System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>';
    92        
    93         if($this->System->User->Licence(LICENCE_USER))
    94                 $Output .= ' <a href="'.$this->System->Link('/action.php?action=shoutbox').'">Vložit</a>';
    95         $Output .= '<div class="box"><table>';
    96         $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');
    97         while($Line = $DbResult->fetch_assoc())
    98                 $Output .= '<tr><td><strong>'.$Line['UserName'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>';
    99         $Output .= '</table></div>';
    100         return($Output);
    101   }
    102  
    10389  function ShowNews()
    10490  {
Note: See TracChangeset for help on using the changeset viewer.