Ignore:
Timestamp:
Jun 18, 2013, 6:58:22 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Uživatelská podpora přepracována na aplikační modul.
File:
1 edited

Legend:

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

    r545 r547  
    11<?php
    22
    3 class FrontPage extends AppModule
     3class ModuleFrontPage extends AppModule
    44{
    55  function __construct($System)
     
    3636  function ShowShoutbox()
    3737  {
    38         global $System, $Config, $User, $System;
     38        global $Config;
    3939 
    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>';
    4344        $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');
    4546        while($Line = $DbResult->fetch_assoc())
    4647                $Output .= '<tr><td><strong>'.$Line['UserName'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>';
Note: See TracChangeset for help on using the changeset viewer.