source: trunk/smf/ia_recentposts.php @ 1184

Revision 852, 469 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 posts in a topic.
4// Used by infoarena's macro_smftopic.php
5
6require("./SSI.php");
7
8$count = min(getattr($_GET, 'count', 5), 10);
9$topic_id = getattr($_GET, 'topic_id');
10
11if (!$topic_id) {
12    echo 'Expecting topic_id';
13    return;
14}
15
16echo '<div class="smf recentPosts">';
17echo '<div class="toolbar"><a href="'.IA_SMF_URL.'?topic='.$topic_id.'.0">Vezi intreg topic-ul</a></div>';
18ssi_recentPostsFromTopic($topic_id, $count);
19echo '</div>';
20
21?>
Note: See TracBrowser for help on using the repository browser.