Changeset 296 for trunk/action.php
- Timestamp:
- Dec 28, 2009, 11:57:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r295 r296 200 200 } 201 201 202 function ShoutBoxView() 203 { 204 global $Database; 205 206 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `shoutbox`'); 207 $DbRow = mysql_fetch_row($DbResult); 208 $PageList = GetPageList($DbRow[0]); 209 210 echo('<h3>Shoutbox</h3>'); 211 echo($PageList['Output']); 212 if(Licence(LICENCE_USER)) echo(' <a href="action.php?action=shoutbox">Vložit</a>'); 213 echo('<div class="shoutbox">'); 214 $ID = $Database->SQLCommand('SELECT * FROM shoutbox ORDER BY ID DESC '.$PageList['SQLLimit']); 215 while($Line = mysql_fetch_assoc($ID)) 216 echo('<div><strong>'.$Line['user'].'</strong>: '.htmlspecialchars($Line['text']).'</div>'); 217 echo('</div>'); 218 echo($PageList['Output']); 219 } 220 202 221 ShowPage(); 203 222 … … 211 230 else if($Action == 'delete') Delete(); 212 231 else if($Action == 'dbkit') DatabaseKit(); 232 else if($Action == 'ShoutBoxView') ShoutBoxView(); 213 233 214 234 ShowFooter();
Note:
See TracChangeset
for help on using the changeset viewer.