Ignore:
Timestamp:
Aug 13, 2013, 10:47:43 PM (11 years ago)
Author:
chronos
Message:
  • Modified: On user profile page show last translations and user exports.
File:
1 edited

Legend:

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

    r549 r560  
    8989  function ShowShoutbox()
    9090  {
    91         global $Config;
    92  
    9391        $Output = '<strong><a href="'.$this->System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>';
    9492       
     
    117115  function ShowLastTranslated()
    118116  {
    119         global $Config;
    120  
    121117        $Count = 40;
    122118        $Output = '<strong>Poslední překlady:</strong>';
    123         //'<div class="NewsBox">';
    124119 
    125120        $GroupListQuery = 'SELECT `Group`.* FROM `Group`';
     
    135130                                        $DbRow['Id'].' AS `Group`, "'.addslashes($DbRow['Name']).'" AS `GroupName`, `T`.`Take` FROM `'.
    136131                                        $DbRow['TablePrefix'].'` AS `T`'.
    137                                         ' WHERE (`T`.`Complete` = 1) AND (`T`.`Language` != '.$Config['OriginalLanguage'].') ORDER BY `T`.`ModifyTime` DESC LIMIT '.
     132                                        ' WHERE (`T`.`Complete` = 1) AND (`T`.`Language` != '.$this->System->Config['OriginalLanguage'].') ORDER BY `T`.`ModifyTime` DESC LIMIT '.
    138133                                        $Count.') AS `T`';
    139134                }
     
    159154  function ShowWelcome()
    160155  {
    161         global $Config;
    162  
    163156        // Cookies have to be used before any text is sent to output
    164157        if(!array_key_exists('HideWelcome', $_COOKIE)) $_COOKIE['HideWelcome'] = 0;
     
    182175        // Echo text even if it is hidden because of caching by external searching engines
    183176        return('<div style="'.$HideWelcome.'">'.
    184                         '<div id="bannertitle">'.$Config['Web']['Title'].'</div>'.
     177                        '<div id="bannertitle">'.$this->System->Config['Web']['Title'].'</div>'.
    185178                        'Otevřený webový systém pro překládání textů ze hry World of Warcraft (WoW).<br />'.
    186179                        '<ul>'.
Note: See TracChangeset for help on using the changeset viewer.