Seite 2 von 2

Verfasst: 07.03.2006 16:32
von cYbercOsmOnauT

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------
#
$sql  = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";

#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['user_id'] == 2 )
{
  $user_ip = '00000000';
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Natürlich musst Du die 2 mit der user_id des Users austauschen, dessen IP nicht gespeichert werden soll.

Gruß,
Tekin