Changeset 367 for trunk/index.php
- Timestamp:
- Mar 9, 2010, 1:16:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r365 r367 80 80 if($_GET['rss'] == 'shoutbox') 81 81 { 82 $TitleLength = 50;83 mb_internal_encoding('utf-8');82 $TitleLength = 50; 83 mb_internal_encoding('utf-8'); 84 84 $DbResult = $Database->SQLCommand('SELECT UNIX_TIMESTAMP(`Date`) AS `UnixDate`, `User`, `Text` FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 20'); 85 85 while($DbRow = mysql_fetch_assoc($DbResult)) 86 86 { 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 .= '...'; 89 89 $Items[] = array 90 (90 ( 91 91 'Title' => $DbRow['User'].': '.$Title, 92 92 'Link' => $Config['Web']['BaseURL'],
Note:
See TracChangeset
for help on using the changeset viewer.