";
$data_print['stop_tag'] = "";
$data_print['default_charset'] = "utf-8";
require_once("config.php");
require_once("include/utils.php");
function insert_charset_header()
{
global $app_strings, $default_charset;
$charset = $default_charset;
if(isset($app_strings['LBL_CHARSET']))
{
$charset = $app_strings['LBL_CHARSET'];
}
header('Content-Type: text/html; charset='. $charset);
}
if (!isset($_GET['action']) || !isset($_GET['module'])) {
die("Error: invalid print link");
}
$record = (isset($_GET['record'])) ? $_GET['record'] : "";
//Added activity mode for events or tasks for Back
if($_GET['module'] == 'Activities')
{
$activity_mode = '&activity_mode='.$_REQUEST['activity_mode'];
}
$url = $site_URL . "/index.php?module={$_GET['module']}&action={$_GET['action']}&record=$record$activity_mode";
$lang_crm = (empty($_GET['lang_crm'])) ? $default_language : $_GET['lang_crm'];
$app_strings = return_application_language($lang_crm);
insert_charset_header();
$fp = @fopen($url . "&PHPSESSID=" . $_GET['jt'], "rb") or die("Error opening $url
Is your \$site_URL correct in config.php?");
$get = $page_str = FALSE;
while ($data = fgets($fp, 4096)) {
if (strpos($data, "