Changeset 547 for trunk/Modules/FrontPage/FrontPage.php
- Timestamp:
- Jun 18, 2013, 6:58:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FrontPage/FrontPage.php
r545 r547 1 1 <?php 2 2 3 class FrontPage extends AppModule3 class ModuleFrontPage extends AppModule 4 4 { 5 5 function __construct($System) … … 36 36 function ShowShoutbox() 37 37 { 38 global $ System, $Config, $User, $System;38 global $Config; 39 39 40 $Output = '<strong><a href="'.$System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>'; 41 if($User->Licence(LICENCE_USER)) 42 $Output .= ' <a href="'.$System->Link('/action.php?action=shoutbox').'">Vložit</a>'; 40 $Output = '<strong><a href="'.$this->System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>'; 41 42 if($this->System->User->Licence(LICENCE_USER)) 43 $Output .= ' <a href="'.$this->System->Link('/action.php?action=shoutbox').'">Vložit</a>'; 43 44 $Output .= '<div class="box"><table>'; 44 $DbResult = $ System->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');45 $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30'); 45 46 while($Line = $DbResult->fetch_assoc()) 46 47 $Output .= '<tr><td><strong>'.$Line['UserName'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.