error_box(_("Invalid URL"),$color);
} else {
$passed_id= (int) $passed_id;
+ $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
/* end globals */
displayHtmlHeader( _("Printer Friendly"), '', false, true );
echo '<frameset rows="60, *">' . "\n";
echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
. urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox)
. '&passed_id=' . $passed_id
+ . '&view_unsafe_images='.$view_unsafe_images
. '" name="bottom_frame" frameborder="0" />' . "\n";
echo "</frameset>\n";
}
function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) {
global $javascript_on;
+ /* hackydiehack */
+ if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) {
+ $view_unsafe_images = false;
+ } else {
+ $view_unsafe_images = true;
+ }
$params = '?passed_ent_id=' . urlencode($passed_ent_id) .
'&mailbox=' . urlencode($mailbox) .
- '&passed_id=' . urlencode($passed_id);
+ '&passed_id=' . urlencode($passed_id).
+ '&view_unsafe_images='. (bool) $view_unsafe_images;
$print_text = _("View Printable Version");