Changeset 297 for trunk/index.php
- Timestamp:
- Dec 28, 2009, 2:32:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r294 r297 1 1 <?php 2 2 3 include ('includes/global.php');3 include_once('includes/global.php'); 4 4 5 5 function ShowNews() … … 10 10 $DbResult = $Database->SQLCommand('SELECT news.Time, user.user, news.Text FROM news JOIN user ON user.ID = news.User ORDER BY Time DESC LIMIT 10'); 11 11 while($DbRow = mysql_fetch_assoc($DbResult)) 12 $Output .= '<div><strong>'.$DbRow['user'].' ('.date('d.m.Y', MysqlDateTimeToTime($DbRow['Time'])).')</strong> <br />'.$DbRow['Text'].'</div>';12 $Output .= '<div><strong>'.$DbRow['user'].' ('.date('d.m.Y', MysqlDateTimeToTime($DbRow['Time'])).')</strong> <br />'.$DbRow['Text'].'</div>'; 13 13 $Output .= '</div>'; 14 14 return($Output); … … 22 22 $DbResult = $Database->SQLCommand('SELECT date,user.user,text FROM log JOIN user ON user.ID = log.User WHERE type = 1 ORDER BY date DESC LIMIT 20'); 23 23 while($DbRow = mysql_fetch_assoc($DbResult)) 24 $Output .= '<strong>'.$DbRow['user'].' ('.date('d.m.Y', MysqlDateTimeToTime($DbRow['date'])).')</strong>24 $Output .= '<strong>'.$DbRow['user'].' ('.date('d.m.Y', MysqlDateTimeToTime($DbRow['date'])).')</strong> 25 25 '.$DbRow['text'].' <br />'; 26 26 $Output .= '</div>';
Note:
See TracChangeset
for help on using the changeset viewer.