Changeset 852 for trunk/Modules/Forum/Forum.php
- Timestamp:
- Jan 17, 2016, 10:25:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Forum/Forum.php
r851 r852 57 57 '<td><a href="'.$this->System->Link('/forum/?Thread='.$DbRow['Thread']).'">'.HumanDate($DbRow['Date']).'</a></td>'. 58 58 '<td><a href="'.$this->System->Link('/user/?user='.$DbRow['UserId']).'">'.$DbRow['UserName'].'</a></td>'. 59 '<td>'. htmlspecialchars($Parser->qparse($DbRow['Text'])).'</td>'.59 '<td>'.$Parser->qparse(htmlspecialchars($DbRow['Text'])).'</td>'. 60 60 '</tr>'; 61 61 } … … 152 152 $Output .= '<div><a href="'.$this->System->Link('/forum/?Thread='.$Line['Thread']).'">'. 153 153 htmlspecialchars($Line['ThreadName']).'</a><br /><strong>'.$Line['UserName']. 154 '</strong> ('.HumanDate($Line['Date']).'): '. htmlspecialchars($parser->qparse($Line['Text'])).'</div> ';154 '</strong> ('.HumanDate($Line['Date']).'): '.$parser->qparse(htmlspecialchars($Line['Text'])).'</div> '; 155 155 $Output .= '</div>'.$PageList['Output']; 156 156 return($Output); … … 181 181 182 182 $parser = new HTML_BBCodeParser2(array('filters' => array('Basic','Extended','Images','Links','Lists','Email'))); 183 // echo $parser->qparse('[youtube]http://www.youtube.com/watch?v=hwgO6p2Jh-A[/youtube][img]http://www.bbcode.org/images/lubeck_small.jpg[/img]normal [i][b]bold[/b][/i] [img]http://imageshack.com/a/img203/7462/6ctg.jpg[/img] and normal again');184 183 185 184 if(array_key_exists('search', $_GET)) $_SESSION['search'] = $_GET['search']; … … 212 211 $Output .= '<div><span style="float:right;">'.$edit.' ('.HumanDate($Line['Date']). 213 212 ')</span><strong>'.$Line['UserName'].'</strong>: '.str_replace("\n", '<br />', 214 htmlspecialchars($parser->qparse($Line['Text']))).' </div> ';213 $parser->qparse(htmlspecialchars($Line['Text']))).' </div> '; 215 214 } 216 215 $Output .= '</div>'.$PageList['Output']; … … 321 320 'Title' => htmlspecialchars($DbRow['ThreadText']).' - '.$DbRow['UserName'].': ', 322 321 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/forum/?Thread='.$DbRow['Thread']), 323 'Description' => htmlspecialchars($parser->qparse($DbRow['Text'])),322 'Description' => $parser->qparse(htmlspecialchars($DbRow['Text'])), 324 323 'Time' => $DbRow['UnixDate'], 325 324 );
Note:
See TracChangeset
for help on using the changeset viewer.