";
$data_print['stop_tag'] = "";
$data_print['default_charset'] = "utf-8";
require_once("config.inc.php");
require_once("include/utils/utils.php");
/** Function to set, character set in the header, as given in include/language/*_lang.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'])) ? vtlib_purify($_GET['record']) : "";
//Added activity mode for events or tasks for Back
if($_GET['module'] == 'Activities')
{
$activity_mode = '&activity_mode='.vtlib_purify($_REQUEST['activity_mode']);
}
$url = $site_URL . "/index.php?module=".vtlib_purify($_GET['module'])."&action=".vtlib_purify($_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, "