The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
sdsds
Posted by: dfdfdf | February 8, 2007 @ 1:01pm
PHP Code
[
Download
]
// ayarlar $CFG['forum_id'] = 2; // haber alınacak forum id $CFG['max_topics'] = 10; // haber sayısı // // Recent topic (only show normal topic) // $sql = 'SELECT topic_title, forum_id, topic_id FROM ' . TOPICS_TABLE . ' WHERE forum_id = $CFG['forum_id']; AND topic_status <> 2 AND topic_approved = 1 AND topic_type = 0 ' . $sql_where . ' ORDER BY topic_time DESC'; $result = $db->sql_query_limit($sql, $CFG['max_topics']); while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') ) { // auto auth if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') ) { $template->assign_block_vars('latest_topics', array( 'TITLE' => character_limit($row['topic_title'], $CFG['recent_title_limit']), 'FULL_TITLE' => censor_text($row['topic_title']), 'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']) ) ); } } $db->sql_freeresult($result);
Syntax Highlighting
[
Open in new window
]
Author Comments
deder
Rating
4.44 / 8
338 Votes
http://codebin.yi.org/4
page generated in 0.00 seconds