saerdnaer hat geschrieben:poste bitte folgende zeilen aus deiner includes/functions_post.php
die zeile die mit function prepare_post(
und die zeile die mit function submit_post(
beginnt...
außerdem brauch ich aus der includes/quiz.php auch noch die zeilen die mit prepare_post(
und mit submit_post(
beginnen
ah
Hi Saerdnaer,
sorry für die verspätete Antwort.
Hier nun die Zeilen aus der /includes/functions_post.php:
Code: Alles auswählen
//
// Prepare a message for posting
//
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length, &$max_vote, &$hide_vote, &$tothide_vote)
{
global $board_config, $userdata, $lang, $phpEx, $phpbb_root_path;
und
Code: Alles auswählen
//
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$max_vote, &$hide_vote, &$tothide_vote)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
Nun die Zeilen aus der /includes/quiz.php:
Code: Alles auswählen
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
if ( $error_msg != '' )
{
$this->notify_admin('Quiz Bot error while make_post():<br/>' . $error_msg);
return false;
}
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("'", "''", $username), str_replace("'", "''", $subject), str_replace("'", "''", $message), $poll_title, $poll_options, $poll_length);
if ( $error_msg != '' )
{
$this->notify_admin('Quiz Bot error while make_post():<br/>' . $error_msg);
return false;
}
Danke!
Peter