// CONTENT NO QUOTED NO IMAGES $html_no_quoted_no_images = MailUtilities::replaceQuotedBlocks($html_no_images, '<div style="color: #777;font-style:italic;padding: 5px 20px"><'.lang('hidden quoted text').'></div>'); $tmppath = ROOT.'/tmp/iq_'.$tmpfile; $handle = fopen($tmppath, 'wb'); if ($handle) { fwrite($handle, $html_no_quoted_no_images); fclose($handle); } // VIEW CONTENT (iframe and links) $remove_images = false; $remove_quoted = false; if (user_config_option('block_email_images') && html_has_images($html_content)) { $remove_images = true; } if ($hide_quoted_text_in_emails && MailUtilities::hasQuotedBlocks($html_content)) { $remove_quoted = true; } $pre = $email->getAccountId() . '_' . logged_user()->getId() . '_' . $email->getId(); $user_token = defined('SANDBOX_URL') ? logged_user()->getTwistedToken() : ''; $content = ""; if ($remove_images) { $content = '<div id="'.$genid.'showImagesLink" style="background-color:#FFFFCC">'.lang('images are blocked').' <a href="#" onclick="og.showMailImages(\''.$pre.'\', \''.gen_id().'\', \''.$genid.'\', \''.$user_token.'\');" style="text-decoration: underline;">'.lang('show images').'</a> </div>'; } if ($remove_images && $remove_quoted) { $tpre = "iq_" . $pre; } else if ($remove_images) { $tpre = "i_" . $pre; } else if ($remove_quoted) {