/** * Returns the image-tag for the PM image icon */ function privmsgs_attachment_image($privmsg_id) { // Begin PNphpBB2 Module // global $attach_config, $userdata; global $attach_config, $userdata, $phpbb_root_path; // End PNphpBB2 Module $auth = $userdata['user_level'] == ADMIN ? 1 : intval($attach_config['allow_pm_attach']); if (!attachment_exists_db($privmsg_id, PAGE_PRIVMSGS) || !$auth || intval($attach_config['disable_mod']) || $attach_config['topic_icon'] == '') { return ''; } // Begin PNphpBB2 Module // $image = '<img src="' . $attach_config['topic_icon'] . '" alt="" border="0" /> '; $image = '<img src="' . $phpbb_root_path . $attach_config['topic_icon'] . '" alt="" border="0" /> '; // End PNphpBB2 Module return $image; }
function privmsgs_attachment_image($privmsg_id) { global $attach_config, $userdata; $auth = $userdata['user_level'] == ADMIN ? 1 : intval($attach_config['allow_pm_attach']); if (!attachment_exists_db($privmsg_id, PAGE_PRIVMSGS) || !$auth || intval($attach_config['disable_mod']) || $attach_config['topic_icon'] == '') { return ''; } $image = '<img src="' . $attach_config['topic_icon'] . '" alt="" border="0" /> '; return $image; }