mfg
Markus

hab ich schon hier geschriebensaerdnaer hat geschrieben:bzw. wenn man die änderungen an der constants gemacht hat und diese dann auch in den includes ordner hochgeladen hat...
ah
keine Ahnung!iphar hat geschrieben:Ist es möglich, dass man den Namen des Users, der eine Frage vorgeschlagen hat, nicht nur im Admin-Bereich, sondern auch im Forum sieht?
Bei mir kommt das } jedoch erst viel später, siehe posting.php.#-----[ FIND ]------------------------------------------
#
$topic_id = $post_info['topic_id'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// BEGINN Quiz Hack
$auth_answer = false;
if ( $mode == 'reply' && $userdata['session_logged_in'] && $post_info['topic_quiz'] == 1 )
{
include($phpbb_root_path . 'includes/quiz.'.$phpEx);
if ( $quiz->check_answer_auth($topic_id, $userdata) )
{
$auth_answer = true;
$post_data['quiz_answer'] = !empty($answer) ? $answer : '';
}
}
// END Quiz Hack
Code: Alles auswählen
Warning: Empty regular expression in /mnt/ls6/13/770/00000014/htdocs/xtasy/includes/functions_post.php on line 113
Warning: Missing argument 21 for submit_post() in /mnt/ls6/13/770/00000014/htdocs/xtasy/includes/functions_post.php on line 222
Allgemeiner Fehler
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near ' 1, )' at line 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon , topic_quiz) VALUES ('Quiz Frage #1 ...', 2, 1054502890, 24, 0, 0, 0, , 1, )
Line : 266
File : /mnt/ls6/13/770/00000014/htdocs/xtasy/includes/functions_post.php
Code: Alles auswählen
WHERE $where_sql";
if ( $result = $db->sql_query($sql) )
{
if ( $row = $db->sql_fetchrow($result) )
{
if ( $row['last_post_time'] > 0 && ( $current_time - $row['last_post_time'] ) < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
else if ( $mode == 'editpost' )
{
remove_search_post($post_id);
}
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
// BEGINN Quiz Hack
$quiz_sql1 = !empty($post_data['topic_quiz']) ? ', topic_quiz' : '';
$quiz_sql2 = !empty($post_data['topic_quiz']) ? ', 1' : '';
// END Quiz Hack
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon $quiz_sql1) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $quiz_sql2, $MsgIcon)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, $quiz_sql2 = $MsgIcon WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ( $mode == 'newtopic' )
{
$topic_id = $db->sql_nextid();
}
}
$edited_sql = ( $mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post'] ) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
$sql = $sql = ( $mode != "editpost" ) ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_icon) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $MsgIcon)" : "UPDATE " . POSTS_TABLE . " SET enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . ", post_icon = $MsgIcon WHERE post_id = $post_id";
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ( $mode != 'editpost' )
{
$post_id = $db->sql_nextid();
}
// BEGINN Quiz Hack
$quiz_sql1 = !empty($post_data['quiz_answer']) ? ', quiz_answer' : '';
$quiz_sql2 = !empty($post_data['quiz_answer']) ? ( ", '" . $post_data['quiz_answer'] . "'" ) : '';
// END Quiz Hack
$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text, $quiz_sql1) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message' $quiz_sql2)" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
// LOG MOD
if ( $mode == 'editpost' )
{
add_to_log ( $userdata['user_id'], 'edit', 'p', $post_id, $oldvalue, $newvalue, $userdata['user_level'] );
}