Code: Selecteer alles
if ( ( $userdata['user_id'] == $poster_id && $post_data['first_post'] == $userdata['user_id'] && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
Code: Selecteer alles
if ( ( $userdata['user_id'] == $poster_id && $post_data['first_post'] == $userdata['user_id'] && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
Code: Selecteer alles
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------------
#
t.*
Code: Selecteer alles
$forum_topic_data['topic_poster'] == $userdata['user_id'] || $userdata['user_level'] >= ADMIN
Code: Selecteer alles
echo "\$forum_topic_data['topic_poster']= '".$forum_topic_data['topic_poster']."'<br />\n";