Quiz Hack
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
schalt mal den debug mode an...
Code: Alles auswählen
SQL Error : 1064 You have an error in your SQL syntax near ') VALUES ('test', 2, 1035016223, 5, 0, 0, 0, 1, )' at line 1
INSERT INTO DAG_phpBB2_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, ) VALUES ('test', 2, 1035016223, 5, 0, 0, 0, 1, )
Line : 291
File : /home2/clixnet.de/www/teamforum/includes/functions_post.php
mal schauen
1. Dieser Server ist echt plöd. Bekomme ständig Fehler, das die Datenbankverbindung nicht geklappt hat. Wie wäre es mal mit nem prov-wechsel?
2.
So .. ich habe bei $quiz_sql2 auch schon '' hinzugefügt ... logischerweise bringt das nix, da ja auch $quiz_sql1 fehlt ... nur wieso?
Greetz bOOt
2.
Code: Alles auswählen
// 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, $MsgIcon, '$quiz_sql2')" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $MsgIcon WHERE topic_id = $topic_id"; // ADDED $quiz_sql1 AND $quiz_sql2 BY Quiz Hack
Greetz bOOt
1. Dieser Server ist echt plöd. Bekomme ständig Fehler, das die Datenbankverbindung nicht geklappt hat. Wie wäre es mal mit nem prov-wechsel?
2.
So .. ich habe bei $quiz_sql2 auch schon '' hinzugefügt ... logischerweise bringt das nix, da ja auch $quiz_sql1 fehlt ... nur wieso?
Greetz bOOt
2.
Code: Alles auswählen
// 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, $MsgIcon, '$quiz_sql2')" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $MsgIcon WHERE topic_id = $topic_id"; // ADDED $quiz_sql1 AND $quiz_sql2 BY Quiz Hack
Greetz bOOt