Changeset 561 for trunk/Modules/FrontPage
- Timestamp:
- Aug 13, 2013, 11:31:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/FrontPage/FrontPage.php
r560 r561 82 82 '<tr><td>'.$this->ShowLastTranslated().'</td>'. 83 83 '<td class="news-box">'.$this->ShowNews().'</td>'. 84 '<td>'.$this->S howShoutBox().'</td>'.84 '<td>'.$this->System->ModuleManager->Modules['ShoutBox']->ShowBox().'</td>'. 85 85 '</tr></table>'; 86 86 return($Output); 87 87 } 88 88 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 103 89 function ShowNews() 104 90 {
Note:
See TracChangeset
for help on using the changeset viewer.