| 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 | |
|---|
| 6 | require("./SSI.php"); |
|---|
| 7 | |
|---|
| 8 | $count = min(getattr($_GET, 'count', 5), 10); |
|---|
| 9 | $board_id = getattr($_GET, 'board_id'); |
|---|
| 10 | |
|---|
| 11 | if ($board_id) { |
|---|
| 12 | $board_url = IA_SMF_URL.'?board='.$board_id.'.0'; |
|---|
| 13 | } |
|---|
| 14 | else { |
|---|
| 15 | $board_url = IA_SMF_URL; |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | echo '<div class="smf recentTopics">'; |
|---|
| 19 | echo '<div class="toolbar"><a href="'.$board_url.'">Vezi toate topic-urile</a></div>'; |
|---|
| 20 | if (!$board_id) { |
|---|
| 21 | ssi_recentTopics($count); |
|---|
| 22 | } |
|---|
| 23 | else { |
|---|
| 24 | ssi_recentTopicsFromBoard($board_id, $count); |
|---|
| 25 | } |
|---|
| 26 | echo '</div>'; |
|---|
| 27 | |
|---|
| 28 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.