OPEN: includes/functions_display.php
FIND:
Code: Select all
global $user, $config;
Code: Select all
global $db;
Code: Select all
// Posted image?
if (!empty($topic_row['topic_posted']) && $topic_row['topic_posted'])
{
$folder_img .= '_mine';
}
Code: Select all
$sql = 'SELECT *
FROM ' . POSTS_TABLE . "
WHERE post_approved = 0 AND poster_id = '" . $user->data['user_id'] . "' AND topic_id = '" . $topic_row['topic_id'] . "'";
$result = $db->sql_query($sql);
if ($result === false)
{
// Posted image?
if (!empty($topic_row['topic_posted']) && $topic_row['topic_posted'])
{
$folder_img .= '_mine';
}
}