if (! sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET) ) {
$passed_ent_id = '';
}
+sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM);
/* end globals */
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
} else {
$passed_id= (int) $passed_id;
$view_unsafe_images = (bool) $_GET['view_unsafe_images'];
+ sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM);
/* end globals */
displayHtmlHeader( _("Printer Friendly"), '', false, true );
echo '<frameset rows="60, *">' . "\n";
. urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox)
. '&passed_id=' . $passed_id
. '&view_unsafe_images='.$view_unsafe_images
+ . '&show_html_default='.$show_html_default
. '" name="bottom_frame" frameborder="0" />' . "\n";
echo "</frameset>\n";
}
?>
-</html>
\ No newline at end of file
+</html>
* @param int $passed_id
*/
function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) {
- global $javascript_on;
+ global $javascript_on, $show_html_default;
/* hackydiehack */
if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) {
}
$params = '?passed_ent_id=' . urlencode($passed_ent_id) .
'&mailbox=' . urlencode($mailbox) .
- '&passed_id=' . urlencode($passed_id).
- '&view_unsafe_images='. (bool) $view_unsafe_images;
+ '&passed_id=' . urlencode($passed_id) .
+ '&view_unsafe_images='. (bool) $view_unsafe_images .
+ '&show_html_default=' . $show_html_default;
$print_text = _("View Printable Version");