Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_MYBB', 1);
- define('THIS_SCRIPT', rules.php);
- define('RULES_FID', 1207);
- $templatelist = 'rules, rules_row';
- require_once './global.php';
- require_once MYBB_ROOT."inc/class_parser.php";
- add_breadcrumb('Regulamin');
- $parser = new postParser;
- $parser_options = array(
- "allow_html" => 0,
- "allow_mycode" => 1,
- "allow_smilies" => 1,
- "allow_imgcode" => 1,
- "allow_videocode" => 0,
- "filter_badwords" => 1
- );
- $query = $db->query('
- SELECT t.subject, t.tid, p.message
- FROM ' . TABLE_PREFIX . 'threads t
- LEFT JOIN ' . TABLE_PREFIX . 'posts p ON (t.firstpost = p.pid)
- WHERE t.fid = '1207. '
- ORDER BY t.tid DESC ');
- $rows = '';
- while($row = $db->fetch_array($query))
- {
- $message = $parser->parse_message($row['message'], $parser_options);
- $expcolimage = 'collapse' . $collapsedimg['rules' . $row['tid']] . '.gif';
- $expdisplay = $collapsed['rules_' . $row['tid'] . '_e'];
- eval("\$rows .= \"".$templates->get("rules_row")."\";");
- }
- eval("\$template = \"".$templates->get("rules")."\";");
- output_page($template);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement