Code: Alles auswählen
<?
define ('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
if (!file_exists($phpbb_root_path . 'extension.inc'))
{
die ('<tt><b>phpBB Fetch All:</b>
$phpbb_root_path is wrong and does not point to your forum.</tt>');
}
include_once ('extension.inc');
include_once ('common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include('mods/phpbb_fetch_all/polls.php');
$poll = phpbb_fetch_poll_bt(1);
if ($poll)
{
echo $poll['vote_text'];
echo '<form method="post" action="' . $phpbb_root_path;
echo 'posting.php?t=' . $poll['topic_id'] . '">';
for ($i = 0; $i < count($poll['options']); $i++)
{
echo '<input type="radio" name="vote_id" value="';
echo $poll['options'][$i]['vote_option_id'] . '">';
echo $poll['options'][$i]['vote_option_text'];
echo '<br>';
}
echo '<input type="hidden" name="topic_id" value="';
echo $poll['topic_id'] . '">';
echo '<input type="hidden" name="mode" value="vote">';
echo '<input type="submit" name="submit" value="Vote">';
}
phpbb_disconnect();
?>Code: Alles auswählen
Warning: Cannot modify header information - headers already sent by (output started at /mnt/blaaa/htdocs/neu/overall_header.php:12) in /mnt/blaaa/htdocs/forum/includes/sessions.php on line 200
Warning: Cannot modify header information - headers already sent by (output started at /mnt/blaaa/htdocs/neu/overall_header.php:12) in /mnt/blaaa/htdocs/forum/includes/sessions.php on line 201
EnzephaloN