Changeset 367 for trunk/index.php


Ignore:
Timestamp:
Mar 9, 2010, 1:16:51 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Generování RSS kanálu kecátka.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r365 r367  
    8080  if($_GET['rss'] == 'shoutbox')
    8181  {
    82   $TitleLength = 50;
    83   mb_internal_encoding('utf-8');
     82    $TitleLength = 50;
     83    mb_internal_encoding('utf-8');
    8484    $DbResult = $Database->SQLCommand('SELECT UNIX_TIMESTAMP(`Date`) AS `UnixDate`, `User`, `Text` FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 20');
    8585    while($DbRow = mysql_fetch_assoc($DbResult))
    8686    {
    87     $Title = mb_substr($DbRow['text'], 0, $TitleLength);
    88     if(mb_strlen($Title) == $TitleLength) $Title .= '...';
     87      $Title = mb_substr($DbRow['Text'], 0, $TitleLength);
     88      if(mb_strlen($Title) == $TitleLength) $Title .= '...';
    8989      $Items[] = array
    90     (
     90      (
    9191        'Title' => $DbRow['User'].': '.$Title,
    9292        'Link' =>  $Config['Web']['BaseURL'],
Note: See TracChangeset for help on using the changeset viewer.