viewtopic.php
// START Edit-Reason
$sql = "SELECT user, text FROM ". edit_text_table ." WHERE postid='". $postrow[$i]['post_id'] ."'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not get edit_text", '', __LINE__, __FILE__, $sql);
}
$edit_text = array();
while($row = $db->sql_fetchrow($result))
{
$edit_text[] = $row;
}
if($edit_text['0']['text'] != '')
{
$template->assign_block_vars('postrow.edit_text', array(
'EDIT_TEXT' => sprintf($lang['edit_text'], htmlentities($edit_text['0']['user']), htmlentities($edit_text['0']['text'])))
);
}
// END Edit-Reason
function_post.php
$editsql = "DELETE FROM ". edit_text_table ." WHERE postid=".$post_id;
if( !$db->sql_query($editsql) )
{
message_die(GENERAL_ERROR, 'Could not delete edit text', '', __LINE__, __FILE__, $editsql);
}
bu satırları silince site açıldı bi eklenti satırımı yoksa phpbb de eksik veritabanı girdilerimi var