Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_PHPBB', true);
- $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : 'forum/phpBB3/';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include($phpbb_root_path . 'common.' . $phpEx);
- include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
- include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
- error_reporting(E_ALL);
- require_once ('konfiguration.php');
- $db = new mysqli(
- MYSQL_HOST,
- MYSQL_BENUTZER,
- MYSQL_KENNWORT,
- MYSQL_DATENBANK
- );
- if ($db->connect_error) {
- die('Connect Error (' . $mysqli->connect_errno . ') '
- . $mysqli->connect_error);
- }
- if(!$result = $db->query('SELECT * FROM phpbb_posts WHERE post_id=1')) {
- die('Query failed: ' . $db->error);
- }
- $posts_row = $result->fetch_assoc();
- echo $post_text = nl2br($posts_row['post_text']);
- $bbcode = new bbcode(base64_encode($bbcode_bitfield));
- $bbcode->bbcode_second_pass($post_text, $posts_row['bbcode_uid'], $posts_row['bbcode_bitfield']);
- echo $post_text = smiley_text($post_text);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement