source: trunk/smf/ia_recenttopics.php @ 1184

Revision 852, 570 bytes checked in by cdleonard@…, 4 years ago (diff)

svn:eol-style native in trunk. Also svn:executable on all scripts

  • Property svn:eol-style set to native
Line 
1<?php
2
3// Display recent topics in a given board.
4// Used by infoarena's macro_smftopics.php
5
6require("./SSI.php");
7
8$count = min(getattr($_GET, 'count', 5), 10);
9$board_id = getattr($_GET, 'board_id');
10
11if ($board_id) {
12    $board_url = IA_SMF_URL.'?board='.$board_id.'.0';
13}
14else {
15    $board_url = IA_SMF_URL;
16}
17
18echo '<div class="smf recentTopics">';
19echo '<div class="toolbar"><a href="'.$board_url.'">Vezi toate topic-urile</a></div>';
20if (!$board_id) {
21    ssi_recentTopics($count);
22}
23else {
24    ssi_recentTopicsFromBoard($board_id, $count);
25}
26echo '</div>';
27
28?>
Note: See TracBrowser for help on using the repository browser.